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
9bd0693f
authored
Feb 28, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: add edit share button
parent
d3355a06
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
one/templates/box/template/box.html
+5
-2
one/templates/box/template/summary.html
+4
-1
No files found.
one/templates/box/template/box.html
View file @
9bd0693f
...
@@ -78,12 +78,15 @@
...
@@ -78,12 +78,15 @@
<form
action=
"/vm/unshare/{{i.id}}/"
method=
"post"
>
<form
action=
"/vm/unshare/{{i.id}}/"
method=
"post"
>
<span
title=
"{{i.name}}"
>
{{i.name|truncatechars:20}}
</span>
<span
title=
"{{i.name}}"
>
{{i.name|truncatechars:20}}
</span>
({{i.get_running}}/{{i.instance_limit}}) {{i.type}}
({{i.get_running}}/{{i.instance_limit}}) {{i.type}}
{% csrf_token %}
<a
href=
"#"
class=
"edit"
data-id=
"{{i.id}}"
>
<img
src=
"/static/icons/pencil.png"
alt=
"{% trans "
Edit
"
%}"
title=
"{% trans "
Edit
"
%}"
/>
</a>
{% csrf_token %}
<input
type=
"submit"
class=
"template-unshare"
value=
"{% trans "
Delete
"
%}"
style=
"float: right"
/>
<input
type=
"submit"
class=
"template-unshare"
value=
"{% trans "
Delete
"
%}"
style=
"float: right"
/>
</form>
</form>
<div
class=
"clear"
></div>
<div
class=
"clear"
></div>
</li>
</li>
<li
class=
"description"
>
<li
class=
"description
{% if not i.description %} empty{% endif %}
"
>
{% if i.description %}
{% if i.description %}
{{i.description}}
{{i.description}}
{% else %}
{% else %}
...
...
one/templates/box/template/summary.html
View file @
9bd0693f
...
@@ -16,12 +16,15 @@
...
@@ -16,12 +16,15 @@
<form
action=
"/vm/unshare/{{i.id}}/"
method=
"post"
>
<form
action=
"/vm/unshare/{{i.id}}/"
method=
"post"
>
<span
title=
"{{i.name}}"
>
{{i.name|truncatechars:20}}
</span>
<span
title=
"{{i.name}}"
>
{{i.name|truncatechars:20}}
</span>
({{i.get_running}}/{{i.instance_limit}}) {{i.type}}
({{i.get_running}}/{{i.instance_limit}}) {{i.type}}
<a
href=
"#"
class=
"edit"
data-id=
"{{i.id}}"
>
<img
src=
"/static/icons/pencil.png"
alt=
"{% trans "
Edit
"
%}"
title=
"{% trans "
Edit
"
%}"
/>
</a>
{% csrf_token %}
{% csrf_token %}
<input
class=
"template-unshare"
type=
"submit"
value=
"{% trans "
Delete
"
%}"
style=
"float: right"
/>
<input
class=
"template-unshare"
type=
"submit"
value=
"{% trans "
Delete
"
%}"
style=
"float: right"
/>
</form>
</form>
<div
class=
"clear"
></div>
<div
class=
"clear"
></div>
</li>
</li>
<li
class=
"description"
>
<li
class=
"description
{% if not i.description %} empty{% endif %}
"
>
{% if i.description %}
{% if i.description %}
{{i.description}}
{{i.description}}
{% else %}
{% else %}
...
...
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