|
|
- <!DOCTYPE html>
- <head>
- <title>DHCP web-viewer</title>
- </head>
- <html>
- <body>
- <a href="/">отчет по занятым хостам в динамическом адресном пространстве</a>
- <h1>Статические адреса</h1>
- <br /><br />
- <form action="/hosts" name="add_hosts" method="post">
- <input type="submit" value="Submit">
- <table border="1">
- <caption>Таблица аренды статических адресов </caption>
- <tr>
- <th>IP адрес</th>
- <th>Имя хоста</th>
- <th>Mac адрес</th>
- <th>арендован</th>
- <th>Освободить <br> адрес</th>
- <th>Удалить из <br> импорта</th>
- </tr>
- %for a in A:
- <tr>
- <td><a target="_blank" href="http://{{a[0]}}">{{a[0]}}</a></td>
- <td>{{a[1]}}</td>
- <td>{{a[2]}}</td>
- <td align="center">
- %if a[3]== '-':
- <font size="5" color="red" face="Arial">-</font>
- %elif a[3] == '+':
- <font size="5" color="green" face="Arial">+</font>
- %end
- </td>
- <td align="center"><input type="checkbox" name="remove_host" value={{a[2]}} /></td>
- <td align="center"><input type="checkbox" name="remove_import" value={{a[2]}} /></td>
- %end
- </tr>
- %end
- </table>
- </body>
- </html>
|