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/scopes.html | |
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/scopes.html')
-rw-r--r-- | ogcp/templates/scopes.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ogcp/templates/scopes.html b/ogcp/templates/scopes.html index 95d527a..751272d 100644 --- a/ogcp/templates/scopes.html +++ b/ogcp/templates/scopes.html @@ -23,6 +23,8 @@ <div class="dropdown-menu" aria-labelledby="dropdownMenuButton"> <input class="btn btn-light dropdown-item {% block nav_client_add %}{% endblock %}" type="submit" value="{{ _('Add client') }}" form="scopesForm" formaction="{{ url_for('action_client_add') }}" formmethod="get"> + <input class="btn btn-light dropdown-item {% block nav_clients_import %}{% endblock %}" type="submit" value="{{ _('Import clients') }}" + form="scopesForm" formaction="{{ url_for('action_clients_import_get') }}" formmethod="get"> <input class="btn btn-light dropdown-item {% block nav_client_delete %}{% endblock %}" type="submit" value="{{ _('Delete client') }}" form="scopesForm" formaction="{{ url_for('action_client_delete') }}" formmethod="get"> </div> |