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
4295ddb3
authored
May 07, 2013
by
Bence Dányi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firewall_gui: foreign network listing & typeahead added
parent
0c54e1a9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
firewall_gui/static/js/project.js
+17
-0
firewall_gui/static/partials/rule-edit.html
+6
-0
No files found.
firewall_gui/static/js/project.js
View file @
4295ddb3
...
...
@@ -136,6 +136,23 @@ function EntityController(url) {
return
true
;
}
});
$
(
'#foreignNetwork'
).
typeahead
({
source
:
function
(
query
,
process
)
{
$
.
ajax
({
url
:
'/firewall/autocomplete/vlangroup/'
,
type
:
'post'
,
data
:
'name='
+
query
,
success
:
function
autocompleteSuccess
(
data
)
{
process
(
data
.
map
(
function
(
obj
)
{
return
obj
.
name
;
}));
}
});
},
matcher
:
function
()
{
return
true
;
}
});
});
}
}
firewall_gui/static/partials/rule-edit.html
View file @
4295ddb3
...
...
@@ -45,6 +45,12 @@
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
for=
"foreignNetwork"
>
Foreign network
</label>
<div
class=
"controls"
>
<input
type=
"text"
data-provide=
"typeahead"
autocomplete=
"off"
id=
"foreignNetwork"
value=
"{{rule.foreignNetwork.name}}"
/>
</div>
</div>
<div
class=
"control-group"
>
<div
class=
"controls"
>
<label
class=
"checkbox"
>
<input
type=
"checkbox"
>
Remember me
...
...
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