FreedomBox/plinth/modules/wireguard/templates/wireguard_add_client.html
Frederico Gomes b0a841c63a
wireguard: Show next available client IP in Add Client form
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>
2026-01-28 13:05:51 -08:00

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 %}