mirror of
https://github.com/eduardogsilva/routerfleet.git
synced 2025-08-04 18:24:29 +02:00
79 lines
No EOL
3.6 KiB
HTML
79 lines
No EOL
3.6 KiB
HTML
{% extends 'base.html' %}
|
|
|
|
|
|
{% block content %}
|
|
<div class='row'>
|
|
<div class='col-lg-12'>
|
|
<div class="card card-primary card-outline">
|
|
{% if page_title %}
|
|
<div class="card-header">
|
|
<h3 class="card-title">{{ page_title }}</h3>
|
|
</div>
|
|
{% endif %}
|
|
<div class="card-body">
|
|
{% include 'router_manager/router_nav_tabs.html' %}
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<th>Name</th>
|
|
<th>Type</th>
|
|
<th>Address</th>
|
|
<th>Enabled</th>
|
|
<th>Status</th>
|
|
<th>Groups</th>
|
|
<th>Authentication</th>
|
|
<th></th>
|
|
</thead>
|
|
<tbody>
|
|
{% for router in router_list %}
|
|
<tr>
|
|
<td>{{ router.name }}</td>
|
|
<td>{{ router.get_router_type_display }}</td>
|
|
<td>{{ router.address }}</td>
|
|
<td>{{ router.enabled }}</td>
|
|
<td>
|
|
{% if router.monitoring %}
|
|
{% if router.routerstatus.status_online %}
|
|
Online
|
|
{% else %}
|
|
Offline
|
|
{% endif %}
|
|
{% else %}
|
|
---
|
|
{% endif %}
|
|
</td>
|
|
<td>
|
|
{{ router.routergroup_set.count }}
|
|
</td>
|
|
<td>
|
|
{% if router.ssh_key %}
|
|
{{ router.ssh_key }}
|
|
{% elif router.password %}
|
|
User/Password
|
|
{% else %}
|
|
Missing authentication
|
|
{% endif %}
|
|
</td>
|
|
<td class="min-width">
|
|
<a href="/router/manage/?uuid={{ router.uuid }}"><i class="fas fa-edit"></i></a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<a href="/router/manage/" class="btn btn-primary">Add Router</a>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |