Add form for editing NAT addresses
This commit is contained in:
parent
8b8c675759
commit
5262c64244
5 changed files with 60 additions and 3 deletions
|
@ -10,7 +10,7 @@
|
|||
<dd>definicije obsegov IP
|
||||
<dt><a href="{{ url_for('rules.index') }}">Urejanje pravil</a>
|
||||
<dd>pravila za posredovanje prometa
|
||||
<dt><a href="{{ url_for('config.edit', name='nat') }}">NAT</a>
|
||||
<dt><a href="{{ url_for('nat.index') }}">NAT</a>
|
||||
<dd>javni naslovi za pisarniška omrežja
|
||||
<dt><a href="{{ url_for('config.edit', name='netmap') }}">Netmap</a>
|
||||
<dd>statične 1:1 preslikave naslovov za strežniška omrežja
|
||||
|
|
19
web/templates/nat/index.html
Normal file
19
web/templates/nat/index.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
<p>
|
||||
Urejate naslove NAT za pisarniška omrežja.
|
||||
|
||||
<form id="request" method="POST">
|
||||
<table>
|
||||
<tbody>
|
||||
{% for office, address in nat.items() %}
|
||||
<tr>
|
||||
<td><label for="{{ office }}">{{ office }}</label>
|
||||
<td><input id="{{ office }}" name="{{ office }}" value="{{ address }}" />
|
||||
{% endfor %}
|
||||
</table>
|
||||
<p><button id="submit" type="submit">Shrani</button>
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue