41 lines
1.4 KiB
HTML
41 lines
1.4 KiB
HTML
|
{% extends 'administrator/_layout.auth.html' %}
|
||
|
|
||
|
{% block title %}Servers{% endblock %}
|
||
|
|
||
|
{% block subtitle %}Edit server{% endblock %}
|
||
|
|
||
|
{% block content %}
|
||
|
<table class="table table-bordered">
|
||
|
<tr>
|
||
|
<th>ID</th>
|
||
|
<td nowrap>{{ server.id }}</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th>Datacenter</th>
|
||
|
<td><a href="{{ url_for('administrator.datacenters_edit', dc_id=server.datacenter.id|string) }}">{{ server.datacenter.name }}</a></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th>Created</th>
|
||
|
<td>{{ server.created }}</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th>IP</th>
|
||
|
<td><input type="text" name="ip" value="{{ server.ip }}" class="form-control"></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th>Hostname</th>
|
||
|
<td><input type="text" name="hostname" value="{{ server.hostname }}" class="form-control" /></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th>Status</th>
|
||
|
<td>
|
||
|
<select name="status" class="form-control">
|
||
|
<option value="0" {% if server.status == 0 %}selected{% endif %}>Inactive</option>
|
||
|
<option value="1" {% if server.status == 1 %}selected{% endif %}>Active</option>
|
||
|
</select>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<input type="submit" value="Save changes" class="btn btn-success" />
|
||
|
<a href="{{ url_for('administrator.servers') }}">Cancel</a>
|
||
|
{% endblock %}
|