Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gyuricska Milán
/
cloud
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 @@
text-align: center;
width: 60px;
}
.table-responsive {
margin-top: 15px;
}
circle/network/templates/network/host-list.html
View file @
154d7a4f
...
...
@@ -18,26 +18,32 @@
</h1>
</div>
<ul
class=
"nav nav-pills"
style=
"margin: 5px 0 20px 0;"
>
<li
class=
"disabled"
><a
href=
"#"
>
{% trans "Filter by vlans" %}
</a></li>
<li
{%
if
not
request
.
GET
.
vlan
%}
class=
"active"
{%
endif
%}
>
<a
href=
"{{ request.path }}"
>
{% trans "ALL" %}
</a>
</li>
{% for vlan in vlans %}
<li
{%
if
request
.
GET
.
vlan
|
add:
"
0
"
==
vlan
.
id
%}
class=
"active"
{%
endif
%}
>
<a
href=
"?vlan={{ vlan.id }}"
>
{{ vlan.name }}
</a>
</li>
{% endfor %}
<form
action=
""
method=
"GET"
>
<div
class=
"input-group pull-right"
style=
"max-width: 300px;"
>
<input
type=
"text"
id=
"network-host-list-input"
name=
"s"
class=
"form-control"
value=
"{{ request.GET.s }}"
/>
<span
class=
"input-group-btn"
>
<button
class=
"btn btn-primary"
><i
class=
"fa fa-search"
></i></button>
</span>
</div>
</form>
</ul>
<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 vlans" %}
</a></li>
<li
{%
if
not
request
.
GET
.
vlan
%}
class=
"active"
{%
endif
%}
>
<a
href=
"{{ request.path }}"
>
{% trans "ALL" %}
</a>
</li>
{% for vlan in vlans %}
<li
{%
if
request
.
GET
.
vlan
|
add:
"
0
"
==
vlan
.
id
%}
class=
"active"
{%
endif
%}
>
<a
href=
"?vlan={{ vlan.id }}"
>
{{ vlan.name }}
</a>
</li>
{% endfor %}
</ul>
</div>
<div
class=
"col-md-3"
>
<form
action=
""
method=
"GET"
>
<div
class=
"input-group pull-right"
>
<input
type=
"text"
id=
"network-host-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 %}
...
...
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