From 09884080c359b32576cf2c0a3128b481f5566932 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Tue, 12 Apr 2022 17:32:07 +0200 Subject: 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; } --- ogcp/templates/actions/import_clients.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ogcp/templates/actions/import_clients.html (limited to 'ogcp/templates/actions') 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 %} + +

{{_('Import clients')}}

+ +{{ wtf.quick_form(form, + action=url_for('action_clients_import_post'), + method='post', + button_map={'submit': 'primary'}, + extra_classes="mx-5") }} + +{% endblock %} -- cgit v1.2.3-18-g5258