Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
154d7a4f
authored
Jan 21, 2015
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
network: fix host list search looking bad on smaller screens
parent
f6be607a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
20 deletions
+30
-20
circle/network/static/network/network.less
+4
-0
circle/network/templates/network/host-list.html
+26
-20
No files found.
circle/network/static/network/network.less
View file @
154d7a4f
...
@@ -11,3 +11,7 @@
...
@@ -11,3 +11,7 @@
text-align: center;
text-align: center;
width: 60px;
width: 60px;
}
}
.table-responsive {
margin-top: 15px;
}
circle/network/templates/network/host-list.html
View file @
154d7a4f
...
@@ -18,26 +18,32 @@
...
@@ -18,26 +18,32 @@
</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 vlans" %}
</a></li>
<div
class=
"col-md-9"
>
<li
{%
if
not
request
.
GET
.
vlan
%}
class=
"active"
{%
endif
%}
>
<ul
class=
"nav nav-pills"
style=
"margin: 5px 0 20px 0;"
>
<a
href=
"{{ request.path }}"
>
{% trans "ALL" %}
</a>
<li
class=
"disabled"
><a
href=
"#"
>
{% trans "Filter by vlans" %}
</a></li>
</li>
<li
{%
if
not
request
.
GET
.
vlan
%}
class=
"active"
{%
endif
%}
>
{% for vlan in vlans %}
<a
href=
"{{ request.path }}"
>
{% trans "ALL" %}
</a>
<li
{%
if
request
.
GET
.
vlan
|
add:
"
0
"
==
vlan
.
id
%}
class=
"active"
{%
endif
%}
>
</li>
<a
href=
"?vlan={{ vlan.id }}"
>
{{ vlan.name }}
</a>
{% for vlan in vlans %}
</li>
<li
{%
if
request
.
GET
.
vlan
|
add:
"
0
"
==
vlan
.
id
%}
class=
"active"
{%
endif
%}
>
{% endfor %}
<a
href=
"?vlan={{ vlan.id }}"
>
{{ vlan.name }}
</a>
<form
action=
""
method=
"GET"
>
</li>
<div
class=
"input-group pull-right"
style=
"max-width: 300px;"
>
{% endfor %}
<input
type=
"text"
id=
"network-host-list-input"
name=
"s"
class=
"form-control"
</ul>
value=
"{{ request.GET.s }}"
/>
</div>
<span
class=
"input-group-btn"
>
<div
class=
"col-md-3"
>
<button
class=
"btn btn-primary"
><i
class=
"fa fa-search"
></i></button>
<form
action=
""
method=
"GET"
>
</span>
<div
class=
"input-group pull-right"
>
</div>
<input
type=
"text"
id=
"network-host-list-input"
name=
"s"
class=
"form-control"
</form>
value=
"{{ request.GET.s }}"
placeholder=
"{% trans "
Search
..."
%}"
/>
</ul>
<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 %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment