Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d10a77d8
authored
May 07, 2013
by
Bence Dányi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firewall_gui: show groups on host-details page
parent
f665b9f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
firewall_gui/static/js/project.js
+1
-1
firewall_gui/static/partials/host-edit.html
+17
-2
No files found.
firewall_gui/static/js/project.js
View file @
d10a77d8
...
...
@@ -153,7 +153,7 @@ function EntityController(url) {
return
true
;
}
});
[
'vlan'
,
'vlangroup'
,
'host'
,
'firewall'
].
forEach
(
function
(
t
)
{
[
'vlan'
,
'vlangroup'
,
'host'
,
'
hostgroup'
,
'
firewall'
].
forEach
(
function
(
t
)
{
$
(
'#'
+
t
).
typeahead
({
source
:
function
(
query
,
process
)
{
$
.
ajax
({
...
...
firewall_gui/static/partials/host-edit.html
View file @
d10a77d8
...
...
@@ -48,8 +48,6 @@
<input
type=
"text"
class=
"input-xlarge"
id=
"ipv6"
ng-model=
"entity.ipv6"
/>
</div>
</div>
</div>
<div
class=
"span5"
>
<div
class=
"control-group"
>
<label
class=
"control-label"
for=
"owner"
>
Owner
</label>
<div
class=
"controls"
>
...
...
@@ -62,6 +60,8 @@
<input
type=
"text"
data-provide=
"typeahead"
autocomplete=
"off"
id=
"vlan"
ng-model=
"entity.vlan.name"
/>
</div>
</div>
</div>
<div
class=
"span5"
>
<div
class=
"control-group"
>
<label
class=
"control-label"
for=
"description"
>
Description
</label>
<div
class=
"controls"
>
...
...
@@ -84,6 +84,21 @@
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
for=
"hostgroups"
>
Host groups
</label>
<div
class=
"controls"
>
<div
class=
"well well-small"
>
<span
class=
"label label-info"
ng-repeat=
"group in entity.groups"
>
<a
href=
"#/hostgroups/{{group.id}}"
>
{{group.name}}
</a>
<a
href
><i
class=
"icon-remove"
></i></a>
</span>
</div>
<div
class=
"input-append"
>
<input
class=
"span2"
id=
"hostgroup"
type=
"text"
>
<button
class=
"btn"
type=
"button"
>
Add
</button>
</div>
</div>
</div>
<div
class=
"control-group"
>
<div
class=
"controls"
>
<button
type=
"submit"
class=
"btn"
>
Save (nem működik!)
</button>
</div>
...
...
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