console/SWSCloudCore/templates/administrator/ips/create.html

57 lines
1.8 KiB
HTML

{% extends 'administrator/_layout.auth.html' %}
{% set title="Infrastructure" %}
{% set subtitle="New IP" %}
{% block content %}
<form method="post" action="{{ url_for('administrator.ips_create') }}">
<table class="table table-bordered">
<tbody>
<tr>
<th>Data center</th>
<th>
<select name="datacenter">
{% for item in datacenters['items'] %}
<option value="{{ item.id }}">{{ item.name }}</option>
{% endfor %}
</select>
</th>
</tr>
<tr>
<td>Server</td>
<td>
<select name="server">
{% for item in servers['items'] %}
<option value="{{ item.id }}">{{ item.hostname }}</option>
{% endfor %}
</select>
</td>
</tr>
<tr>
<th>IPv4</th>
<th><input type="text" name="ipv4" value="" /></th>
</tr>
<tr>
<th>IPv4 gateway</th>
<th><input type="text" name="ipv4_gateway" value="" /></th>
</tr>
<tr>
<th>IPv6</th>
<th><input type="text" name="ipv6" value="" /></th>
</tr>
<tr>
<th>IPv6 gateway</th>
<th><input type="text" name="ipv6_gateway" value="" /></th>
</tr>
<tr>
<th>&nbsp;</th>
<th>
<input type="submit" value="Add" />
<input type="reset" />
</th>
</tr>
</tbody>
</table>
</form>
{% endblock %}