33 lines
No EOL
1.3 KiB
HTML
33 lines
No EOL
1.3 KiB
HTML
{% extends 'administrator/_layout.auth.html' %}
|
|
|
|
{% block title %}Datacenters{% endblock %}
|
|
|
|
{% block subtitle %}Edit datacenter{% endblock %}
|
|
|
|
{% block content %}
|
|
<form action="{{ url_for('administrator.datacenters_edit', dc_id=datacenter.id) }}" method="post">
|
|
<table class="table table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Name</th>
|
|
<th>Status</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>{{ datacenter.id }}</td>
|
|
<td><input type="text" name="name" value="{{ datacenter.name }}" class="form-control" /></td>
|
|
<td>
|
|
<select name="status" class="form-control">
|
|
<option value="0" {% if datacenter.status == 0 %}selected{% endif %}>Inactive</option>
|
|
<option value="1" {% if datacenter.status == 1 %}selected{% endif %}>Active</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<input type="submit" value="Save changes" class="btn btn-success" />
|
|
<a href="{{ url_for('administrator.datacenters') }}">Cancel</a>
|
|
</form>
|
|
{% endblock %} |