Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
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
7afb202a
authored
Nov 13, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
network: use FieldWithButtons in HostForm
parent
5f05e808
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
circle/network/forms.py
+5
-5
No files found.
circle/network/forms.py
View file @
7afb202a
...
...
@@ -21,7 +21,7 @@ from django.utils.translation import ugettext_lazy as _
from
crispy_forms.helper
import
FormHelper
from
crispy_forms.layout
import
Layout
,
Fieldset
,
Div
,
Submit
,
BaseInput
from
crispy_forms.bootstrap
import
FormActions
,
AppendedText
from
crispy_forms.bootstrap
import
FormActions
,
FieldWithButtons
,
StrictButton
from
firewall.models
import
(
Host
,
Vlan
,
Domain
,
Group
,
Record
,
BlacklistItem
,
Rule
,
VlanGroup
,
SwitchPort
)
...
...
@@ -122,10 +122,10 @@ class HostForm(ModelForm):
Fieldset
(
_
(
'Network'
),
'vlan'
,
AppendedText
(
'ipv4'
,
'<i class="fa fa-magic" id="ipv4-magic"></i>'
),
AppendedText
(
'ipv6'
,
'<i class="fa fa-magic" id="ipv6-magic"></i>'
),
FieldWithButtons
(
'ipv4'
,
StrictButton
(
'<i class="fa fa-magic"></i>'
,
css_id
=
"ipv4-magic"
)
),
FieldWithButtons
(
'ipv6'
,
StrictButton
(
'<i class="fa fa-magic"></i>'
,
css_id
=
"ipv6-magic"
)
),
'shared_ip'
,
'external_ipv4'
,
),
...
...
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