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
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
circle/dashboard/templates/dashboard/node-detail.html
+2
-2
circle/dashboard/templates/dashboard/node-detail/home.html
+7
-4
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 @@
{% block content %}
<div
class=
"body-content"
>
<div
class=
"page-header"
>
{% if request.user.is_superuser %}
<div
class=
"pull-right"
id=
"ops"
>
{% include "dashboard/vm-detail/_operations.html" %}
</div>
<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 "
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>
{% endif %}
<h1>
<div
id=
"node-details-rename"
>
<form
action=
""
method=
"POST"
id=
"node-details-rename-form"
>
...
...
circle/dashboard/templates/dashboard/node-detail/home.html
View file @
b549f6b4
...
...
@@ -16,16 +16,19 @@
{% endif %}
</div>
{% load crispy_forms_tags %}
<style>
.row
{
margin-bottom
:
15px
;
}
</style>
<form
action=
"{% url "
dashboard
.
views
.
node-addtrait
"
node
.
pk
%}"
method=
"POST"
>
{% csrf_token %}
{% crispy trait_form %}
</form>
{% if request.user.is_superuser %}
<form
action=
"{% url "
dashboard
.
views
.
node-addtrait
"
node
.
pk
%}"
method=
"POST"
>
{% csrf_token %}
{% crispy trait_form %}
</form>
{% endif %}
</div>
<!-- id:node-details-traits -->
</div>
<div
class=
"col-md-8"
>
...
...
circle/dashboard/templates/dashboard/node-detail/resources.html
View file @
b549f6b4
...
...
@@ -18,10 +18,12 @@
<dt>
{% trans "Host name" %}:
</dt>
<dd>
{{ node.host.hostname }}
{% if request.user.is_superuser %}
<a
href=
"{{ node.host.get_absolute_url }}"
class=
"btn btn-default btn-xs"
>
<i
class=
"fa fa-pencil"
></i>
{% trans "Edit host" %}
</a>
{% endif %}
</dd>
</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