2017-09-13 09:36:20 +00:00
|
|
|
{% extends "base.htm" %}
|
2017-09-18 14:31:17 +00:00
|
|
|
{% block title %}Modifica rete • estus{% endblock %}
|
2017-09-13 09:36:20 +00:00
|
|
|
{% block content %}
|
2017-09-20 10:01:07 +00:00
|
|
|
<div class="page-header">
|
|
|
|
<h1>
|
|
|
|
{% if action == "add" %}
|
|
|
|
Aggiungi rete
|
|
|
|
{% elif action == "show" %}
|
|
|
|
Modifica rete
|
|
|
|
{% endif %}
|
|
|
|
</h1>
|
|
|
|
</div>
|
2017-09-21 07:29:49 +00:00
|
|
|
<form class="form-inline" method="post">
|
2017-09-18 14:31:17 +00:00
|
|
|
<input class="form-control" type="text" placeholder="Nome rete" name="nome" {% if net %}value="{{ net.nome }}"{% endif %}>
|
|
|
|
<input class="form-control" type="text" placeholder="Network IP" name="network_ip" {% if net %}value="{{ net.network_ip }}"{% endif %}>
|
2017-09-22 09:20:31 +00:00
|
|
|
<input class="form-control" type="text" placeholder="Subnet mask (/XX)" pattern="/?[0-9][0-9]?" name="subnet" {% if net %}value="{{ net.subnet }}"{% endif %}>
|
2017-09-18 14:31:17 +00:00
|
|
|
<input class="form-control" type="text" placeholder="DNS primario" name="primary_dns" {% if net %}value="{{ net.primary_dns }}"{% endif %}>
|
|
|
|
<input class="form-control" type="text" placeholder="DNS secondario" name="secondary_dns" {% if net %}value="{{ net.secondary_dns }}"{% endif %}>
|
2017-09-13 09:36:20 +00:00
|
|
|
<input class="btn btn-primary" type="submit">
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|