2019-01-22 06:00:49 +00:00
|
|
|
{% load i18n %}
|
2023-08-09 06:20:18 +00:00
|
|
|
{% load bootstrap_icons %}
|
2019-01-22 06:00:49 +00:00
|
|
|
{% if request.user.is_superuser %}
|
2021-07-07 11:12:38 +00:00
|
|
|
<a href="#AddFixedNet6" type="button" class="btn btn-success float-end" data-bs-toggle="modal">
|
2023-08-09 06:20:18 +00:00
|
|
|
<span aria-hidden="true">{% bs_icon 'plus' %} </span>
|
2019-01-22 06:00:49 +00:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<!-- Modal pool -->
|
2019-11-07 07:33:36 +00:00
|
|
|
<div class="modal fade" id="AddFixedNet6" tabindex="-1" role="dialog" aria-labelledby="AddFixedNet6Label" aria-hidden="true">
|
2019-01-22 06:00:49 +00:00
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
2020-05-19 16:53:54 +00:00
|
|
|
<h5 class="modal-title">{% trans "Add IPV6 Fixed Address" %}</h5>
|
2021-07-07 11:12:38 +00:00
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
2019-01-22 06:00:49 +00:00
|
|
|
</div>
|
2020-05-26 13:18:38 +00:00
|
|
|
<form method="post" action="" role="form" aria-label="Add IPV6 Fixed Address form">{% csrf_token %}
|
2019-01-22 06:00:49 +00:00
|
|
|
<div class="modal-body">
|
2021-07-07 11:12:38 +00:00
|
|
|
<div class="row">
|
2020-05-19 16:53:54 +00:00
|
|
|
<label class="col-sm-4 col-form-label">{% trans "Subnet Pool" %}</label>
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<input type="text" readonly class="form-control" name="subnet" value="{{ ipv6_network }}" required pattern="[0-9\/\.]+">
|
2019-01-22 06:00:49 +00:00
|
|
|
</div>
|
2020-05-19 16:53:54 +00:00
|
|
|
</div>
|
2021-07-07 11:12:38 +00:00
|
|
|
<div class="row">
|
2020-05-19 16:53:54 +00:00
|
|
|
<label class="col-sm-4 col-form-label">{% trans "ID" %}</label>
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<input type="text" class="form-control" name="id" required pattern="[0-9a-fA-F\/\:]+">
|
2019-01-22 06:00:49 +00:00
|
|
|
</div>
|
2020-05-19 16:53:54 +00:00
|
|
|
</div>
|
2021-07-07 11:12:38 +00:00
|
|
|
<div class="row">
|
2020-05-19 16:53:54 +00:00
|
|
|
<label class="col-sm-4 col-form-label">{% trans "Name" %}</label>
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<input type="text" class="form-control" name="name" pattern="[a-zA-Z0-9_]+">
|
2019-01-22 06:00:49 +00:00
|
|
|
</div>
|
2020-05-19 16:53:54 +00:00
|
|
|
</div>
|
2021-07-07 11:12:38 +00:00
|
|
|
<div class="row">
|
2020-05-19 16:53:54 +00:00
|
|
|
<label class="col-sm-4 col-form-label">{% trans "Address" %}</label>
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<input type="text" class="form-control" name="address" required pattern="[a-fA-F0-9\/\:]+">
|
2019-01-22 06:00:49 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-05-19 16:53:54 +00:00
|
|
|
<div class="modal-footer">
|
|
|
|
<input name="family" value="ipv6" hidden/>
|
2021-07-07 11:12:38 +00:00
|
|
|
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">{% trans "Close" %}</button>
|
2019-01-22 06:00:49 +00:00
|
|
|
<button type="submit" class="btn btn-primary" name="modify_fixed_address">{% trans "Create" %}</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div> <!-- /.modal-content -->
|
|
|
|
</div> <!-- /.modal-dialog -->
|
|
|
|
</div> <!-- /.modal -->
|
|
|
|
{% endif %}
|