Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
4e41ddde
authored
May 08, 2013
by
Bence Dányi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firewall_gui: provide generic typeahead for model relationships
parent
e45c5c26
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
firewall_gui/static/partials/host-edit.html
+5
-5
firewall_gui/static/partials/rule-edit.html
+1
-1
firewall_gui/static/partials/vlan-edit.html
+1
-1
firewall_gui/static/partials/vlangroup-edit.html
+1
-1
No files found.
firewall_gui/static/partials/host-edit.html
View file @
4e41ddde
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
<div
class=
"control-group"
>
<div
class=
"control-group"
>
<label
class=
"control-label"
for=
"vlan"
>
Vlan
</label>
<label
class=
"control-label"
for=
"vlan"
>
Vlan
</label>
<div
class=
"controls"
>
<div
class=
"controls"
>
<input
type=
"text"
data-provide=
"typeahead"
autocomplete=
"off"
id=
"vlan"
ng-model=
"entity.vlan.name"
/>
<input
type=
"text"
data-provide=
"typeahead"
autocomplete=
"off"
class=
"vlan"
id=
"vlan"
ng-model=
"entity.vlan.name"
/>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -87,14 +87,14 @@
...
@@ -87,14 +87,14 @@
<label
class=
"control-label"
for=
"hostgroups"
>
Host groups
</label>
<label
class=
"control-label"
for=
"hostgroups"
>
Host groups
</label>
<div
class=
"controls"
>
<div
class=
"controls"
>
<div
class=
"well well-small"
>
<div
class=
"well well-small"
>
<span
class=
"label label-info"
ng-repeat=
"group in entity.groups"
>
<span
class=
"label label-info"
ng-repeat=
"group in entity.groups
| filter: destroyed
"
>
<a
href=
"#/hostgroups/{{group.id}}"
>
{{group.name}}
</a>
<a
href=
"#/hostgroups/{{group.id}}"
>
{{group.name}}
</a>
<a
href
><i
class=
"icon-remove"
></i></a>
<a
href
ng-click=
"removeHostGroup(group)"
><i
class=
"icon-remove"
></i></a>
</span>
</span>
</div>
</div>
<div
class=
"input-append"
>
<div
class=
"input-append"
>
<input
class=
"span2
"
id=
"hostgroup"
type=
"text
"
>
<input
class=
"span2
hostgroup"
id=
"hostgroup"
type=
"text"
ng-model=
"newGroup
"
>
<button
class=
"btn"
type=
"button"
>
Add
</button>
<button
class=
"btn"
type=
"button"
ng-click=
"addHostGroup(newGroup)"
>
Add
</button>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
firewall_gui/static/partials/rule-edit.html
View file @
4e41ddde
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
<div
class=
"control-group"
>
<div
class=
"control-group"
>
<label
class=
"control-label"
for=
"foreignNetwork"
>
Foreign network
</label>
<label
class=
"control-label"
for=
"foreignNetwork"
>
Foreign network
</label>
<div
class=
"controls"
>
<div
class=
"controls"
>
<input
type=
"text"
data-provide=
"typeahead"
autocomplete=
"off"
id=
"foreignNetwork"
ng-model=
"entity.foreignNetwork.name"
/>
<input
type=
"text"
data-provide=
"typeahead"
autocomplete=
"off"
id=
"foreignNetwork"
class=
"vlangroup"
ng-model=
"entity.foreignNetwork.name"
/>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
firewall_gui/static/partials/vlan-edit.html
View file @
4e41ddde
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
<div
class=
"control-group"
>
<div
class=
"control-group"
>
<label
class=
"control-label"
for=
"domain"
>
Domain
</label>
<label
class=
"control-label"
for=
"domain"
>
Domain
</label>
<div
class=
"controls"
>
<div
class=
"controls"
>
<input
type=
"text"
autocomplete=
"off"
id=
"domain"
ng-model=
"entity.domain.name"
/>
<input
type=
"text"
class=
"domain"
data-provide=
"typeahead"
autocomplete=
"off"
id=
"domain"
ng-model=
"entity.domain.name"
/>
</div>
</div>
</div>
</div>
<div
class=
"control-group"
>
<div
class=
"control-group"
>
...
...
firewall_gui/static/partials/vlangroup-edit.html
View file @
4e41ddde
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
</span>
</span>
</div>
</div>
<div
class=
"input-append"
>
<div
class=
"input-append"
>
<input
class=
"span2
"
id=
"vlan"
type=
"text
"
>
<input
class=
"span2
vlan"
id=
"vlan"
type=
"text"
data-provide=
"typeahead
"
>
<button
class=
"btn"
type=
"button"
>
Add
</button>
<button
class=
"btn"
type=
"button"
>
Add
</button>
</div>
</div>
</div>
</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