Commit eff32210 by Barnabás Czémán

ADD search & pagination

parent 3f1b8167
......@@ -12,6 +12,20 @@
<h1>{% trans "Blacklist" %} <small></small></h1>
</div>
<div class="row">
<div class="col-md-3">
<form action="" method="GET" id="network-blacklist-list-form">
<div class="input-group">
<input type="text" id="network-blacklist-list-input" name="s" class="form-control"
value="{{ request.GET.s }}" placeholder="{% trans "Search..." %}"/>
<span class="input-group-btn">
<button class="btn btn-primary"><i class="fa fa-search"></i></button>
</span>
</div>
</form>
</div>
</div>
<div class="table-responsive">
{% render_table table %}
</div>
......
......@@ -12,6 +12,20 @@
<h1>{% trans "Domains" %}</h1>
</div>
<div class="row">
<div class="col-md-3">
<form action="" method="GET" id="network-domain-list-form">
<div class="input-group">
<input type="text" id="network-domain-list-input" name="s" class="form-control"
value="{{ request.GET.s }}" placeholder="{% trans "Search..." %}"/>
<span class="input-group-btn">
<button class="btn btn-primary"><i class="fa fa-search"></i></button>
</span>
</div>
</form>
</div>
</div>
<div class="table-responsive">
{% render_table table %}
</div>
......
......@@ -14,6 +14,20 @@
<h1>{% trans "Firewalls" %}</h1>
</div>
<div class="row">
<div class="col-md-3">
<form action="" method="GET" id="network-firewall-list-form">
<div class="input-group">
<input type="text" id="network-firewall-list-input" name="s" class="form-control"
value="{{ request.GET.s }}" placeholder="{% trans "Search..." %}"/>
<span class="input-group-btn">
<button class="btn btn-primary"><i class="fa fa-search"></i></button>
</span>
</div>
</form>
</div>
</div>
<div class="table-responsive">
{% render_table table %}
</div>
......
......@@ -12,5 +12,21 @@
<h1>{% trans "Host groups" %}</h1>
</div>
{% render_table table %}
<div class="row">
<div class="col-md-3">
<form action="" method="GET" id="network-group-list-form">
<div class="input-group">
<input type="text" id="network-group-list-input" name="s" class="form-control"
value="{{ request.GET.s }}" placeholder="{% trans "Search..." %}"/>
<span class="input-group-btn">
<button class="btn btn-primary"><i class="fa fa-search"></i></button>
</span>
</div>
</form>
</div>
</div>
<div class="table-responsive">
{% render_table table %}
</div>
{% endblock %}
......@@ -17,13 +17,28 @@
</h1>
</div>
<ul class="nav nav-pills" style="margin: 5px 0 20px 0;">
<div class="row">
<div class="col-md-9">
<ul class="nav nav-pills" style="margin: 5px 0 20px 0;">
<li class="disabled"><a href="#">{% trans "Filter by type" %}</a></li>
<li {% if not request.GET.type %} class="active"{% endif %}><a href="{{ request.path }}">{% trans "ALL" %}</a></li>
{% for type in types %}
<li{% if request.GET.type == type.0 %} class="active"{% endif %}><a href="?type={{ type.0 }}">{{ type.0 }}</a></li>
{% endfor %}
</ul>
</ul>
</div>
<div class="col-md-3">
<form action="" method="GET" id="network-record-list-form">
<div class="input-group">
<input type="text" id="network-record-list-input" name="s" class="form-control"
value="{{ request.GET.s }}" placeholder="{% trans "Search..." %}"/>
<span class="input-group-btn">
<button class="btn btn-primary"><i class="fa fa-search"></i></button>
</span>
</div>
</form>
</div>
</div>
<div class="table-responsive">
{% render_table table %}
......
......@@ -12,5 +12,21 @@
<h1>{% trans "Vlan groups" %}</h1>
</div>
{% render_table table %}
<div class="row">
<div class="col-md-3">
<form action="" method="GET" id="network-blacklist-list-form">
<div class="input-group">
<input type="text" id="network-blacklist-list-input" name="s" class="form-control"
value="{{ request.GET.s }}" placeholder="{% trans "Search..." %}"/>
<span class="input-group-btn">
<button class="btn btn-primary"><i class="fa fa-search"></i></button>
</span>
</div>
</form>
</div>
</div>
<div class="table-responsive">
{% render_table table %}
</div>
{% endblock %}
......@@ -12,6 +12,20 @@
<h1>Vlans <small>{% trans "list of all vlans" %}</small></h1>
</div>
<div class="row">
<div class="col-md-3">
<form action="" method="GET" id="network-vlan-list-form">
<div class="input-group">
<input type="text" id="network-vlan-list-input" name="s" class="form-control"
value="{{ request.GET.s }}" placeholder="{% trans "Search..." %}"/>
<span class="input-group-btn">
<button class="btn btn-primary"><i class="fa fa-search"></i></button>
</span>
</div>
</form>
</div>
</div>
<div class="table-responsive">
{% render_table table %}
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment