41 lines
1.5 KiB
HTML
41 lines
1.5 KiB
HTML
|
{% extends 'administrator/_layout.auth.html' %}
|
||
|
|
||
|
{% block title %}Servers{% endblock %}
|
||
|
|
||
|
{% block subtitle %}new server{% endblock %}
|
||
|
|
||
|
{% block content %}
|
||
|
<form action="{{ url_for('administrator.servers_create') }}" method="post">
|
||
|
<table class="table table-bordered">
|
||
|
<tr>
|
||
|
<th>Datacenter</th>
|
||
|
<td>
|
||
|
<select name="datacenter_id" class="form-control">
|
||
|
{% for dc in datacenters['items'] %}
|
||
|
<option value="{{ dc.id }}">{{ dc.name }}</option>
|
||
|
{% endfor %}
|
||
|
</select>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th>IP</th>
|
||
|
<td><input type="text" name="ip" value="" class="form-control"></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th>Hostname</th>
|
||
|
<td><input type="text" name="hostname" value="" class="form-control" /></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th>Status</th>
|
||
|
<td>
|
||
|
<select name="status" class="form-control">
|
||
|
<option value="0">Inactive</option>
|
||
|
<option value="1">Active</option>
|
||
|
</select>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<input type="submit" value="Create server" class="btn btn-success" />
|
||
|
<a href="{{ url_for('administrator.servers_index') }}">Cancel</a>
|
||
|
</form>
|
||
|
{% endblock %}
|