Files
wireguard_webadmin/templates/routing_templates/list.html
2026-01-16 14:31:04 -03:00

43 lines
1.5 KiB
HTML

{% extends "base.html" %}
{% load i18n %}
{% block content %}
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>{% trans 'Name' %}</th>
<th>{% trans 'WireGuard Instance' %}</th>
<th>{% trans 'Route Type' %}</th>
<th class="text-center">{% trans 'Default' %}</th>
<th class="text-center">{% trans 'Updated' %}</th>
<th class="text-center"><i class="far fa-edit"></i></th>
</tr>
</thead>
<tbody>
{% for template in routing_templates %}
<tr>
<td>{{ template.name }}</td>
<td>{{ template.wireguard_instance }}</td>
<td>{{ template.get_route_type_display }}</td>
<td class="text-center">
{% if template.default_template %}
<i class="fas fa-check text-success" title="{% trans 'Default Template' %}"></i>
{% endif %}
</td>
<td class="text-center">{{ template.updated|date:"SHORT_DATE_FORMAT" }}</td>
<td class="text-center" style="width: 1%; white-space: nowrap;">
<a href="/routing-templates/manage/?uuid={{ template.uuid }}" title="{% trans 'Edit' %}"><i class="far fa-edit"></i></a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<div class="row">
<div class="col-md-12">
<a href="/routing-templates/manage/" class="btn btn-primary"><i class="fas fa-plus"></i> {% trans 'Add Routing Template' %}</a>
</div>
</div>
{% endblock %}