mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-22 10:01:45 +00:00
Display the next available IP address that will be automatically assigned when adding a new client. Helps admins know what client IP to provide when configuring client connections back to this server. Signed-off-by: Frederico Gomes <fredericojfgomes@gmail.com> [sunil: Turn the IP address styling into a form element] [sunil: Update the comment style for consistency] [sunil: Update the label for clarity] Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
35 lines
788 B
HTML
35 lines
788 B
HTML
{% extends "base.html" %}
|
|
{% comment %}
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
{% endcomment %}
|
|
|
|
{% load bootstrap %}
|
|
{% load i18n %}
|
|
|
|
{% block content %}
|
|
|
|
<h3>{{ title }}</h3>
|
|
|
|
<form class="form form-add-client" method="post">
|
|
{% csrf_token %}
|
|
|
|
{{ form|bootstrap }}
|
|
|
|
{% if next_ip %}
|
|
<div class="form-group">
|
|
<label for="id_next_ip" class="control-label">
|
|
{% trans "IP address that will be assigned to this client" %}
|
|
</label>
|
|
<div>
|
|
<input type="text" id="id_next_ip" class="form-control"
|
|
value="{{ next_ip }}" disabled="disabled">
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<input type="submit" class="btn btn-primary"
|
|
value="{% trans "Add Client" %}"/>
|
|
</form>
|
|
|
|
{% endblock %}
|