45 lines
No EOL
1.8 KiB
HTML
45 lines
No EOL
1.8 KiB
HTML
{% extends 'administrator/_layout.auth.html' %}
|
|
|
|
{% set title="Datacenters" %}
|
|
|
|
{% set subtitle="Edit datacenter" %}
|
|
|
|
{% block content %}
|
|
<form action="{{ url_for('administrator.datacenters_edit', dc_id=datacenter.id) }}" method="post">
|
|
<table class="table table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<th>ID</th>
|
|
<td>{{ datacenter.id }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Code</th>
|
|
<td><input type="text" name="code" value="{{ datacenter.code }}" class="form-control" /></td>
|
|
</tr>
|
|
<tr>
|
|
<th>Name</th>
|
|
<td><input type="text" name="name" value="{{ datacenter.name }}" class="form-control" /></td>
|
|
</tr>
|
|
<tr>
|
|
<th>Country</th>
|
|
<td><input type="text" name="country" value="{{ datacenter.country }}" class="form-control" /></td>
|
|
</tr>
|
|
<tr>
|
|
<th>City</th>
|
|
<td><input type="text" name="city" value="{{ datacenter.city }}" class="form-control" /></td>
|
|
</tr>
|
|
<tr>
|
|
<th>Status</th>
|
|
<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 %} |