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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
5d86162a
authored
Sep 09, 2013
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
network: host edit fixes
parent
e13ef09d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
circle/network/static/js/network.js
+7
-2
circle/network/templates/network/host-edit.html
+6
-2
No files found.
circle/network/static/js/network.js
View file @
5d86162a
...
...
@@ -8,8 +8,13 @@ $('i[class="icon-remove"]').click(function() {
host
=
$
(
'.page-header'
).
children
(
'h2'
).
text
()
group
=
$
(
this
).
closest
(
'h4'
).
text
();
text
=
gettext
(
'Are you sure you want to remove host group <strong>"%(group)s"</strong> from <strong>"%(host)s"</strong>?'
);
s
=
interpolate
(
text
,
{
'group'
:
group
,
'host'
:
host
},
true
);
if
(
group
.
length
>
0
)
{
text
=
gettext
(
'Are you sure you want to remove host group <strong>"%(group)s"</strong> from <strong>"%(host)s"</strong>?'
);
s
=
interpolate
(
text
,
{
'group'
:
group
,
'host'
:
host
},
true
);
}
else
{
s
=
gettext
(
'Are you sure you want to delete this rule?'
);
}
bootbox
.
dialog
({
message
:
s
,
buttons
:
{
...
...
circle/network/templates/network/host-edit.html
View file @
5d86162a
...
...
@@ -28,7 +28,8 @@
<div
class=
"page-header"
>
<h3>
{% trans "Groups" %}
</h3>
</div>
{% for group in group_rule_list %}
{% if group_rule_list|length > 0 %}
{% for group in group_rule_list %}
<div>
<h4
id=
"{{ group.pk }}_group_pk"
>
{{ group.name }}
<a
href=
"{% url "
network
.
remove_host_group
"
pk=
host_pk
group_pk=
group.pk
%}?
from=
{{
request
.
path
}}"
>
...
...
@@ -38,7 +39,10 @@
</h4>
{% render_table group.table %}
</div>
{% endfor %}
{% endfor %}
{% else %}
{% trans "This host is not added to any host groups!" %}
{% endif %}
<div
class=
"page-header"
>
<h3>
Add host group
</h3>
...
...
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