65 lines
2.3 KiB
HTML
65 lines
2.3 KiB
HTML
{% extends 'administrator/_layout.auth.html' %}
|
|
|
|
{% block title %}IPs{% endblock %}
|
|
|
|
{% block subtitle %}Edit IP{% endblock %}
|
|
|
|
{% block content %}
|
|
<form method="post" action="{{ url_for('administrator.ips_edit', ip_id=ip.id) }}">
|
|
<input type="hidden" name="ip_id" value="{{ ip.id }}" />
|
|
<table class="table table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>Data center</th>
|
|
<th>{{ ip.datacenter_id }}</th>
|
|
</tr>
|
|
<tr>
|
|
<th>Server</th>
|
|
<th>
|
|
<select name="server">
|
|
{% for item in servers['items'] %}
|
|
{% if ip.server.id == item.id %}
|
|
<option value="{{ item.id }}" selected>{{ item.hostname }}</option>
|
|
{% else %}
|
|
<option value="{{ item.id }}" >{{ item.hostname }}</option>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</select>
|
|
</th>
|
|
</tr>
|
|
<tr>
|
|
<th>IPv4</th>
|
|
<th><input type="text" name="ipv4" value="{{ ip.ipv4 }}" /></th>
|
|
</tr>
|
|
<tr>
|
|
<th>IPv4 gateway</th>
|
|
<th><input type="text" name="ipv4_gateway" value="{{ ip.ipv4_gateway }}" /></th>
|
|
</tr>
|
|
<tr>
|
|
<th>IPv6</th>
|
|
<th><input type="text" name="ipv6" value="{{ ip.ipv6 }}" /></th>
|
|
</tr>
|
|
<tr>
|
|
<th>IPv6 gateway</th>
|
|
<th><input type="text" name="ipv6_gateway" value="{{ ip.ipv6_gateway }}" /></th>
|
|
</tr>
|
|
<tr>
|
|
<th>Status</th>
|
|
<th>
|
|
<select name="status">
|
|
<option value="0" {% if ip.status == 0 %}selected{% endif %}>Free</option>
|
|
<option value="1" {% if ip.status == 1 %}selected{% endif %}>Busy</option>
|
|
</select>
|
|
</th>
|
|
</tr>
|
|
<tr>
|
|
<th> </th>
|
|
<th>
|
|
<input type="submit" value="Save" />
|
|
<input type="reset" />
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</form>
|
|
{% endblock %}
|