diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-04-12 17:32:07 +0200 |
---|---|---|
committer | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-04-19 16:03:41 +0200 |
commit | 09884080c359b32576cf2c0a3128b481f5566932 (patch) | |
tree | 6e3ee5b8441e4977e09826c6747f3db25307af99 /ogcp/templates/actions | |
parent | 87270dc8dfca246f54c5f0ccaa3f3d3e98020a2d (diff) |
Add import clients action
Add import clients form with required inputs: room and dhcpd.conf.
This permits users to rapidly add large amounts of clients to a room
using dhcpd.conf's syntax. Users can copy full dhcpd.conf files to the
text area and the parser only matches lines with the following format as
clients:
host dummy {hardware ethernet 12:34:56:78:90:ab; fixed-address 192.168.1.55; }
Diffstat (limited to 'ogcp/templates/actions')
-rw-r--r-- | ogcp/templates/actions/import_clients.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ogcp/templates/actions/import_clients.html b/ogcp/templates/actions/import_clients.html new file mode 100644 index 0000000..fc852d3 --- /dev/null +++ b/ogcp/templates/actions/import_clients.html @@ -0,0 +1,19 @@ +{% extends 'scopes.html' %} +{% import "bootstrap/wtf.html" as wtf %} + +{% set sidebar_state = 'disabled' %} +{% set btn_back = true %} + +{% block nav_client %}active{% endblock %} +{% block nav_clients_import %}active{% endblock %} +{% block content %} + +<h1 class="m-5">{{_('Import clients')}}</h1> + +{{ wtf.quick_form(form, + action=url_for('action_clients_import_post'), + method='post', + button_map={'submit': 'primary'}, + extra_classes="mx-5") }} + +{% endblock %} |