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
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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
one/templates/box/template/box.html
+4
-1
one/templates/box/template/summary.html
+4
-1
No files found.
one/templates/box/template/box.html
View file @
9bd0693f
...
...
@@ -78,12 +78,15 @@
<form
action=
"/vm/unshare/{{i.id}}/"
method=
"post"
>
<span
title=
"{{i.name}}"
>
{{i.name|truncatechars:20}}
</span>
({{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 %}
<input
type=
"submit"
class=
"template-unshare"
value=
"{% trans "
Delete
"
%}"
style=
"float: right"
/>
</form>
<div
class=
"clear"
></div>
</li>
<li
class=
"description"
>
<li
class=
"description
{% if not i.description %} empty{% endif %}
"
>
{% if i.description %}
{{i.description}}
{% else %}
...
...
one/templates/box/template/summary.html
View file @
9bd0693f
...
...
@@ -16,12 +16,15 @@
<form
action=
"/vm/unshare/{{i.id}}/"
method=
"post"
>
<span
title=
"{{i.name}}"
>
{{i.name|truncatechars:20}}
</span>
({{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 %}
<input
class=
"template-unshare"
type=
"submit"
value=
"{% trans "
Delete
"
%}"
style=
"float: right"
/>
</form>
<div
class=
"clear"
></div>
</li>
<li
class=
"description"
>
<li
class=
"description
{% if not i.description %} empty{% endif %}
"
>
{% if i.description %}
{{i.description}}
{% 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