Commit eff32210 by Barnabás Czémán

ADD search & pagination

parent 3f1b8167
...@@ -12,6 +12,20 @@ ...@@ -12,6 +12,20 @@
<h1>{% trans "Blacklist" %} <small></small></h1> <h1>{% trans "Blacklist" %} <small></small></h1>
</div> </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"> <div class="table-responsive">
{% render_table table %} {% render_table table %}
</div> </div>
......
...@@ -12,6 +12,20 @@ ...@@ -12,6 +12,20 @@
<h1>{% trans "Domains" %}</h1> <h1>{% trans "Domains" %}</h1>
</div> </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"> <div class="table-responsive">
{% render_table table %} {% render_table table %}
</div> </div>
......
...@@ -14,6 +14,20 @@ ...@@ -14,6 +14,20 @@
<h1>{% trans "Firewalls" %}</h1> <h1>{% trans "Firewalls" %}</h1>
</div> </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"> <div class="table-responsive">
{% render_table table %} {% render_table table %}
</div> </div>
......
...@@ -12,5 +12,21 @@ ...@@ -12,5 +12,21 @@
<h1>{% trans "Host groups" %}</h1> <h1>{% trans "Host groups" %}</h1>
</div> </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 %} {% endblock %}
...@@ -17,13 +17,28 @@ ...@@ -17,13 +17,28 @@
</h1> </h1>
</div> </div>
<ul class="nav nav-pills" style="margin: 5px 0 20px 0;"> <div class="row">
<li class="disabled"><a href="#">{% trans "Filter by type" %}</a></li> <div class="col-md-9">
<li {% if not request.GET.type %} class="active"{% endif %}><a href="{{ request.path }}">{% trans "ALL" %}</a></li> <ul class="nav nav-pills" style="margin: 5px 0 20px 0;">
{% for type in types %} <li class="disabled"><a href="#">{% trans "Filter by type" %}</a></li>
<li{% if request.GET.type == type.0 %} class="active"{% endif %}><a href="?type={{ type.0 }}">{{ type.0 }}</a></li> <li {% if not request.GET.type %} class="active"{% endif %}><a href="{{ request.path }}">{% trans "ALL" %}</a></li>
{% endfor %} {% for type in types %}
</ul> <li{% if request.GET.type == type.0 %} class="active"{% endif %}><a href="?type={{ type.0 }}">{{ type.0 }}</a></li>
{% endfor %}
</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"> <div class="table-responsive">
{% render_table table %} {% render_table table %}
......
...@@ -12,5 +12,21 @@ ...@@ -12,5 +12,21 @@
<h1>{% trans "Vlan groups" %}</h1> <h1>{% trans "Vlan groups" %}</h1>
</div> </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 %} {% endblock %}
...@@ -12,6 +12,20 @@ ...@@ -12,6 +12,20 @@
<h1>Vlans <small>{% trans "list of all vlans" %}</small></h1> <h1>Vlans <small>{% trans "list of all vlans" %}</small></h1>
</div> </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"> <div class="table-responsive">
{% render_table table %} {% render_table table %}
</div> </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