63 lines
No EOL
2.7 KiB
HTML
63 lines
No EOL
2.7 KiB
HTML
{% extends "backend/base.html" %}
|
|
{% block content %}
|
|
<div class="app-page-title">
|
|
<div class="page-title-wrapper">
|
|
<div class="page-title-heading">
|
|
<div class="page-title-icon">
|
|
<i class="fa fa-shield-alt">
|
|
</i>
|
|
</div>
|
|
<div>Firewall Rules
|
|
<div class="page-title-subheading">Create, edit and delete rules
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="page-title-actions">
|
|
<a href="{% url "ratelimits_create" %}" type="button" data-toggle="tooltip" title="New Brand" data-placement="bottom" class="btn-shadow mr-3 btn btn-success">
|
|
<i class="fa fa-plus"></i> New Rule
|
|
</a>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12 col-lg-0">
|
|
<div class="mb-3 card">
|
|
<div class="card-header-tab card-header-tab-animation card-header">
|
|
<div class="card-header-title">
|
|
<i class="header-icon lnr-apartment icon-gradient bg-love-kiss"> </i>
|
|
Active Rules
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="tab-content">
|
|
<div class="tab-pane fade show active" id="tabs-eg-77">
|
|
<div class="card mb-3 widget-chart widget-chart2 text-left w-100">
|
|
<table class="mb-0 table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th>IP</th>
|
|
<th>End of block</th>
|
|
<th>Reason</th>
|
|
<th>Options</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for rule in object_list %}
|
|
<tr>
|
|
<td>{{ rule.ip }}</td>
|
|
<td>{{ rule.end }}</td>
|
|
<td>{{ rule.reason }}</td>
|
|
<td><a href="{% url "ratelimits_edit" rule.id %}"><i class="fas fa-edit" title="Edit Rule"></i></a> <a href="{% url "ratelimits_delete" rule.id %}"><i style="color: darkred;" class="fas fa-trash-alt" title="Delete Rule"></i></a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |