Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
circlestack
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
b549f6b4
authored
Oct 27, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
templates: remove unnecessary buttons and forms
parent
f1016e28
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
circle/dashboard/templates/dashboard/node-detail.html
+2
-2
circle/dashboard/templates/dashboard/node-detail/home.html
+3
-0
circle/dashboard/templates/dashboard/node-detail/resources.html
+2
-0
No files found.
circle/dashboard/templates/dashboard/node-detail.html
View file @
b549f6b4
...
@@ -6,15 +6,15 @@
...
@@ -6,15 +6,15 @@
{% block content %}
{% block content %}
<div
class=
"body-content"
>
<div
class=
"body-content"
>
<div
class=
"page-header"
>
<div
class=
"page-header"
>
{% if request.user.is_superuser %}
<div
class=
"pull-right"
id=
"ops"
>
<div
class=
"pull-right"
id=
"ops"
>
{% include "dashboard/vm-detail/_operations.html" %}
{% include "dashboard/vm-detail/_operations.html" %}
</div>
</div>
<div
class=
"pull-right"
style=
"padding-top: 15px;"
>
<div
class=
"pull-right"
style=
"padding-top: 15px;"
>
{% if request.user.is_superuser %}
<a
title=
"{% trans "
Rename
"
%}"
href=
"#"
class=
"btn btn-default btn-xs node-details-rename-button"
><i
class=
"fa fa-pencil"
></i></a>
<a
title=
"{% trans "
Rename
"
%}"
href=
"#"
class=
"btn btn-default btn-xs node-details-rename-button"
><i
class=
"fa fa-pencil"
></i></a>
<a
title=
"{% trans "
Delete
"
%}"
data-node-pk=
"{{ node.pk }}"
class=
"btn btn-default btn-xs real-link node-delete"
href=
"{% url "
dashboard
.
views
.
delete-node
"
pk=
node.pk
%}"
><i
class=
"fa fa-trash-o"
></i></a>
<a
title=
"{% trans "
Delete
"
%}"
data-node-pk=
"{{ node.pk }}"
class=
"btn btn-default btn-xs real-link node-delete"
href=
"{% url "
dashboard
.
views
.
delete-node
"
pk=
node.pk
%}"
><i
class=
"fa fa-trash-o"
></i></a>
{% endif %}
</div>
</div>
{% endif %}
<h1>
<h1>
<div
id=
"node-details-rename"
>
<div
id=
"node-details-rename"
>
<form
action=
""
method=
"POST"
id=
"node-details-rename-form"
>
<form
action=
""
method=
"POST"
id=
"node-details-rename-form"
>
...
...
circle/dashboard/templates/dashboard/node-detail/home.html
View file @
b549f6b4
...
@@ -16,16 +16,19 @@
...
@@ -16,16 +16,19 @@
{% endif %}
{% endif %}
</div>
</div>
{% load crispy_forms_tags %}
{% load crispy_forms_tags %}
<style>
<style>
.row
{
.row
{
margin-bottom
:
15px
;
margin-bottom
:
15px
;
}
}
</style>
</style>
{% if request.user.is_superuser %}
<form
action=
"{% url "
dashboard
.
views
.
node-addtrait
"
node
.
pk
%}"
method=
"POST"
>
<form
action=
"{% url "
dashboard
.
views
.
node-addtrait
"
node
.
pk
%}"
method=
"POST"
>
{% csrf_token %}
{% csrf_token %}
{% crispy trait_form %}
{% crispy trait_form %}
</form>
</form>
{% endif %}
</div>
<!-- id:node-details-traits -->
</div>
<!-- id:node-details-traits -->
</div>
</div>
<div
class=
"col-md-8"
>
<div
class=
"col-md-8"
>
...
...
circle/dashboard/templates/dashboard/node-detail/resources.html
View file @
b549f6b4
...
@@ -18,10 +18,12 @@
...
@@ -18,10 +18,12 @@
<dt>
{% trans "Host name" %}:
</dt>
<dt>
{% trans "Host name" %}:
</dt>
<dd>
<dd>
{{ node.host.hostname }}
{{ node.host.hostname }}
{% if request.user.is_superuser %}
<a
href=
"{{ node.host.get_absolute_url }}"
class=
"btn btn-default btn-xs"
>
<a
href=
"{{ node.host.get_absolute_url }}"
class=
"btn btn-default btn-xs"
>
<i
class=
"fa fa-pencil"
></i>
<i
class=
"fa fa-pencil"
></i>
{% trans "Edit host" %}
{% trans "Edit host" %}
</a>
</a>
{% endif %}
</dd>
</dd>
</dl>
</dl>
...
...
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