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
8bd55342
authored
Mar 20, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: add missing i18n markings to templates
parent
9b402980
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
65 additions
and
86 deletions
+65
-86
circle/dashboard/templates/dashboard/_disk-list-element.html
+1
-1
circle/dashboard/templates/dashboard/_vm-create-1.html
+1
-1
circle/dashboard/templates/dashboard/base.html
+1
-1
circle/dashboard/templates/dashboard/confirm/ajax-delete.html
+2
-2
circle/dashboard/templates/dashboard/confirm/base-delete.html
+3
-3
circle/dashboard/templates/dashboard/confirm/mass-delete.html
+3
-4
circle/dashboard/templates/dashboard/confirm/node-status.html
+4
-3
circle/dashboard/templates/dashboard/group-list/column-details.html
+2
-2
circle/dashboard/templates/dashboard/index-groups.html
+3
-3
circle/dashboard/templates/dashboard/index-nodes.html
+5
-5
circle/dashboard/templates/dashboard/index-templates.html
+1
-1
circle/dashboard/templates/dashboard/index-vm.html
+7
-7
circle/dashboard/templates/dashboard/node-detail.html
+1
-1
circle/dashboard/templates/dashboard/node-detail/home.html
+1
-7
circle/dashboard/templates/dashboard/node-list.html
+1
-19
circle/dashboard/templates/dashboard/node-list/column-admin.html
+3
-4
circle/dashboard/templates/dashboard/template-edit.html
+1
-1
circle/dashboard/templates/dashboard/template-list.html
+4
-2
circle/dashboard/templates/dashboard/template-list/column-template-actions.html
+2
-2
circle/dashboard/templates/dashboard/vm-detail.html
+9
-9
circle/dashboard/templates/dashboard/vm-detail/console.html
+2
-2
circle/dashboard/templates/dashboard/vm-detail/home.html
+3
-3
circle/dashboard/templates/dashboard/vm-detail/tx-owner.html
+5
-3
No files found.
circle/dashboard/templates/dashboard/_disk-list-element.html
View file @
8bd55342
...
...
@@ -7,7 +7,7 @@
{% if d.ready %}
{{ d.size|filesize }}
{% else %}
<div
class=
"label label-danger"
>
failed
</div>
<div
class=
"label label-danger"
>
{% trans "failed" %}
</div>
{% endif %}
{% else %}
<span
class=
"disk-list-disk-percentage"
data-disk-pk=
"{{ d.pk }}"
>
{{ d.get_download_percentage }}
</span>
%{% endif %}
...
...
circle/dashboard/templates/dashboard/_vm-create-1.html
View file @
8bd55342
...
...
@@ -50,7 +50,7 @@
</span>
</li>
<li>
<i
class=
"icon-hand-right"
></i>
Description
:
<i
class=
"icon-hand-right"
></i>
{% trans "Description" %}
:
<span
style=
"float: right; max-width: 350px;"
>
{{ t.description }}
</span>
...
...
circle/dashboard/templates/dashboard/base.html
View file @
8bd55342
...
...
@@ -75,7 +75,7 @@
<footer>
<a
href=
"#"
>
{% trans "Legal notice" %}
</a>
|
<a
href=
"#"
>
{% trans "Policy" %}
</a>
|
<a
href=
"#"
>
{% trans "Help" %}
</a>
|
<a
href=
"#"
>
{% trans "Support" %}
</a>
<span
class=
"pull-right"
>
©
{{ COMPANY_NAME }}
</span>
<span
class=
"pull-right"
>
{{ COMPANY_NAME }}
</span>
</footer>
</body>
{% block extra_js %}
...
...
circle/dashboard/templates/dashboard/confirm/ajax-delete.html
View file @
8bd55342
...
...
@@ -12,8 +12,8 @@
{% endif %}
<br
/>
<div
class=
"pull-right"
style=
"margin-top: 15px;"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
Cancel
</button>
<button
id=
"confirmation-modal-button"
type=
"button"
class=
"btn btn-danger"
>
Delete
</button>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
{% trans "Cancel" %}
</button>
<button
id=
"confirmation-modal-button"
type=
"button"
class=
"btn btn-danger"
>
{% trans "Delete" %}
</button>
</div>
<div
class=
"clearfix"
></div>
</div>
...
...
circle/dashboard/templates/dashboard/confirm/base-delete.html
View file @
8bd55342
...
...
@@ -9,7 +9,7 @@
{% if title %}
{{ title }}
{% else %}
Delete confirmation
{% trans "Delete confirmation" %}
{% endif %}
</h3>
</div>
...
...
@@ -24,9 +24,9 @@
<div
class=
"pull-right"
>
<form
action=
""
method=
"POST"
>
{% csrf_token %}
<a
class=
"btn btn-default"
>
Back
</a>
<a
class=
"btn btn-default"
>
{% trans "Cancel" %}
</a>
<input
type=
"hidden"
name=
"next"
value=
"{{ request.GET.next }}"
/>
<button
class=
"btn btn-danger"
>
Yes, delete
</button>
<button
class=
"btn btn-danger"
>
{% trans "Yes, delete" %}
</button>
</form>
</div>
</div>
...
...
circle/dashboard/templates/dashboard/confirm/mass-delete.html
View file @
8bd55342
...
...
@@ -2,14 +2,13 @@
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-body"
>
Are you sure you want to delete these objects
<br
/>
{% trans "Are you sure you want to delete the following objects?" %}
<br
/>
{% for o in objects %}
<strong>
{{ o }}
</strong>
{% if not forloop.last %},{% endif %}
{% endfor %}
?
<div
class=
"pull-right"
style=
"margin-top: 40px;"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
Cancel
</button>
<button
id=
"confirmation-modal-button"
type=
"button"
class=
"btn btn-danger"
>
Delete
</button>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
{% trans "Cancel" %}
</button>
<button
id=
"confirmation-modal-button"
type=
"button"
class=
"btn btn-danger"
>
{% trans "Delete" %}
</button>
</div>
<div
class=
"clearfix"
></div>
</div>
...
...
circle/dashboard/templates/dashboard/confirm/node-status.html
View file @
8bd55342
...
...
@@ -9,7 +9,7 @@
{% if title %}
{{ title }}
{% else %}
Status changing confirmation
{% trans "Status changing confirmation" %}
{% endif %}
</h3>
</div>
...
...
@@ -24,9 +24,10 @@
<div
class=
"pull-right"
>
<form
action=
""
method=
"POST"
>
{% csrf_token %}
<a
class=
"btn btn-default"
>
Back
</a>
<a
class=
"btn btn-default"
>
{% trans "Cancel" %}
</a>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
></button>
<input
type=
"hidden"
name=
"change_status"
value=
""
/>
<button
class=
"btn btn-warning"
>
Yes, {{ status }
}
</button>
<button
class=
"btn btn-warning"
>
{% blocktrans with status=status %}Yes, {{status}}{% endblocktrans %
}
</button>
</form>
</div>
</div>
...
...
circle/dashboard/templates/dashboard/group-list/column-details.html
View file @
8bd55342
<a
class=
"btn btn-info btn-xs group-list-details"
href=
"#"
>
Member list
</a>
{% load i18n %}
<a
class=
"btn btn-info btn-xs group-list-details"
href=
"#"
>
{% trans "Members" %}
</a>
circle/dashboard/templates/dashboard/index-groups.html
View file @
8bd55342
...
...
@@ -4,7 +4,7 @@
<div
class=
"pull-right toolbar"
>
<span
class=
"btn btn-default btn-xs infobtn"
title=
"{% trans "
Help
"
%}"
><i
class=
"icon-info-sign"
></i></span>
</div>
<h3
class=
"no-margin"
><i
class=
"icon-group"
></i>
Groups
</h3>
<h3
class=
"no-margin"
><i
class=
"icon-group"
></i>
{% trans "Groups" %}
</h3>
</div>
<div
class=
"list-group"
id=
"vm-list-view"
>
{% for i in groups %}
...
...
@@ -15,7 +15,7 @@
<div
href=
"#"
class=
"list-group-item list-group-footer text-right"
>
<div
class=
"row"
>
<div
class=
"col-sm-6 col-xs-6 input-group input-group-sm"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"
Search...
"
/>
<input
type=
"text"
class=
"form-control"
placeholder=
"
{% trans "
Search
..."
%}
"
/>
<div
class=
"input-group-btn"
>
<button
type=
"submit"
class=
"form-control btn btn-primary"
title=
"search"
><i
class=
"icon-search"
></i></button>
</div>
...
...
@@ -26,7 +26,7 @@
<i
class=
"icon-chevron-sign-right"
></i>
<strong>
{{ more_groups }}
</strong>
more
</a>
{% endif %}
<a
class=
"btn btn-success btn-xs group-create"
href=
"#"
><i
class=
"icon-upload-alt"
></i>
upload
</a>
<a
class=
"btn btn-success btn-xs group-create"
href=
"#"
><i
class=
"icon-upload-alt"
></i>
{% trans "new" %}
</a>
</div>
</div>
</div>
...
...
circle/dashboard/templates/dashboard/index-nodes.html
View file @
8bd55342
...
...
@@ -7,10 +7,10 @@
<a
href=
"#index-list-view"
data-index-box=
"node"
class=
"btn btn-default btn-xs disabled"
><i
class=
"icon-list"
></i></a>
</div>
<span
class=
"btn btn-default btn-xs infobtn"
title=
"{% trans "
Help
"
%}"
><i
class=
"icon-info-sign"
></i></span>
<span
class=
"btn btn-default btn-xs infobtn"
title=
"{% trans "
List
of
compute
nodes
,
also
called
worker
nodes
or
hypervisors
,
which
run
the
virtual
machines
.
"
%}"
><i
class=
"icon-info-sign"
></i></span>
</div>
<h3
class=
"no-margin"
>
<i
class=
"icon-sitemap"
></i>
{% trans "
Compute n
odes" %}
<i
class=
"icon-sitemap"
></i>
{% trans "
N
odes" %}
</h3>
</div
>
<div
class=
"list-group"
id=
"node-list-view"
>
...
...
@@ -22,7 +22,7 @@
<div
href=
"#"
class=
"list-group-item list-group-footer"
>
<div
class=
"row"
>
<div
class=
"col-sm-6 col-xs-6 input-group input-group-sm"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"
Search...
"
/>
<input
type=
"text"
class=
"form-control"
placeholder=
"
{% trans "
Search
..."
%}
"
/>
<div
class=
"input-group-btn"
>
<button
type=
"submit"
class=
"form-control btn btn-primary"
title=
"search"
><i
class=
"icon-search"
></i></button>
</div>
...
...
@@ -56,7 +56,7 @@
<div
class=
"clearfix"
></div>
<div
class=
"row"
>
<div
class=
"col-sm-6 col-xs-6 input-group input-group-sm"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"
Search...
"
/>
<input
type=
"text"
class=
"form-control"
placeholder=
"
{% trans "
Search
..."
%}
"
/>
<div
class=
"input-group-btn"
>
<button
type=
"submit"
class=
"form-control btn btn-primary"
title=
"search"
><i
class=
"icon-search"
></i></button>
</div>
...
...
@@ -64,7 +64,7 @@
<div
class=
"col-sm-6 text-right"
>
{% if more_nodes >= 0 %}
<a
class=
"btn btn-primary btn-xs"
href=
"{% url "
dashboard
.
views
.
node-list
"
%}"
>
<i
class=
"icon-chevron-sign-right"
></i>
<strong>
{{ more_nodes }}
</strong>
more
<i
class=
"icon-chevron-sign-right"
></i>
{% blocktrans with count=more_nodes %}
<strong>
{{count}}
</strong>
more{% endblocktrans %}
</a>
{% endif %}
<a
class=
"btn btn-success btn-xs node-create"
href=
"{% url "
dashboard
.
views
.
node-create
"
%}"
><i
class=
"icon-plus-sign"
></i>
{% trans "new" %}
</a>
...
...
circle/dashboard/templates/dashboard/index-templates.html
View file @
8bd55342
...
...
@@ -4,7 +4,7 @@
<span
class=
"btn btn-default btn-xs infobtn pull-right"
title=
"{% trans "
Help
"
%}"
>
<i
class=
"icon-info-sign"
></i>
</span>
<h3
class=
"no-margin"
><i
class=
"icon-puzzle-piece"
></i>
Templates
<h3
class=
"no-margin"
><i
class=
"icon-puzzle-piece"
></i>
{% trans "Templates" %}
</h3>
</div>
<div
class=
"list-group"
id=
"vm-list-view"
>
...
...
circle/dashboard/templates/dashboard/index-vm.html
View file @
8bd55342
...
...
@@ -9,7 +9,7 @@
<span
class=
"btn btn-default btn-xs infobtn"
title=
"{% trans "
Help
"
%}"
><i
class=
"icon-info-sign"
></i></span>
</div>
<h3
class=
"no-margin"
>
<i
class=
"icon-desktop"
></i>
Virtual machines
<i
class=
"icon-desktop"
></i>
{% trans "Virtual machines" %}
</h3>
</div>
<div
class=
"list-group"
id=
"vm-list-view"
>
...
...
@@ -20,9 +20,9 @@
<small
class=
"text-muted"
>
{{ i.primary_host.hostname }}
</small>
<div
class=
"pull-right dashboard-vm-favourite"
data-vm=
"{{ i.pk }}"
>
{% if i.fav %}
<i
class=
"icon-star text-primary title-favourite"
title=
"
Unfavourite
"
></i>
<i
class=
"icon-star text-primary title-favourite"
title=
"
{% trans "
Unfavourite
"
%}
"
></i>
{% else %}
<i
class=
"icon-star-empty text-primary title-favourite"
title=
"
Mark as favorite
"
></i>
<i
class=
"icon-star-empty text-primary title-favourite"
title=
"
{% trans "
Mark
as
favorite
"
%}
"
></i>
{% endif %}
</div>
</a>
...
...
@@ -39,7 +39,7 @@
<div
class=
"col-sm-6 text-right"
>
{% if more_instances > 0 %}
<a
class=
"btn btn-primary btn-xs"
href=
"{% url "
dashboard
.
views
.
vm-list
"
%}"
>
<i
class=
"icon-chevron-sign-right"
></i>
{% blocktrans with
more_instances=more_instances %}
<strong>
{{ more_instances
}}
</strong>
more{% endblocktrans %}
<i
class=
"icon-chevron-sign-right"
></i>
{% blocktrans with
count=more_instances %}
<strong>
{{ count
}}
</strong>
more{% endblocktrans %}
</a>
{% endif %}
<a
class=
"btn btn-success btn-xs vm-create"
href=
"{% url "
dashboard
.
views
.
vm-create
"
%}"
><i
class=
"icon-plus-sign"
></i>
{% trans "new" %}
</a>
...
...
@@ -49,16 +49,16 @@
</div>
<div
class=
"panel-body"
id=
"vm-graph-view"
style=
"display: none"
>
<p
class=
"pull-right"
>
<input
class=
"knob"
data-fgColor=
"chartreuse"
data-thickness=
".4"
data-max=
"{{ request.user.profile.instance_limit }}"
data-width=
"100"
data-height=
"100"
data-readOnly=
"true"
value=
"{{ instances|length|add:more_instances }}"
></p>
<p><span
class=
"bigbig"
>
<big>
{{ running_vm_num }}
</big>
running
</span>
<p><span
class=
"bigbig"
>
{% blocktrans with count=running_vm_num %}
<big>
{{ count }}
</big>
running{% endblocktrans %}
</span>
<ul
class=
"list-inline"
>
{% for vm in running_vms %}
<li
class=
"label label-success"
>
<a
href=
"vm.get_absolute_url"
title=
"{{vm.primary_host.get_fqdn}}"
><i
class=
"
icon-play-sign"
></i>
{{
vm.name}}
</a>
<a
href=
"vm.get_absolute_url"
title=
"{{vm.primary_host.get_fqdn}}"
><i
class=
"
{{vm.get_status_icon}}"
></i>
{{
vm.name}}
</a>
</li>
{% endfor %}
</ul>
</p>
<p
class=
"big text-warning"
>
<big>
{{ stopped_vm_num }}
</big>
stopped
</p>
<p
class=
"big text-warning"
>
{% blocktrans with count=stopped_vm_num %}
<big>
{{ count }}
</big>
stopped{% endblocktrans %}
</p>
<div
class=
"clearfix"
></div>
<div
class=
"text-right"
>
...
...
circle/dashboard/templates/dashboard/node-detail.html
View file @
8bd55342
...
...
@@ -26,7 +26,7 @@
{% elif node.state == 'OFFLINE' %}label-warning
{% endif %}"
>
{{ node.get_status_display|upper }}
</span>
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"btn {{ btn_size }} btn-warning nojs-dropdown-toogle dropdown-toggle"
data-toggle=
"dropdown"
>
Action
<i
class=
"icon-caret-down"
></i></button>
<button
type=
"button"
class=
"btn {{ btn_size }} btn-warning nojs-dropdown-toogle dropdown-toggle"
data-toggle=
"dropdown"
>
{% trans "Action" %}
<i
class=
"icon-caret-down"
></i></button>
<ul
class=
"dropdown-menu nojs-dropdown-toogle"
role=
"menu"
>
<li><a
href=
"#"
class=
"node-details-rename-button"
><i
class=
"icon-pencil"
></i>
{% trans "Rename" %}
</a></li>
<li><a
data-node-pk=
"{{ node.pk }}"
class=
"real-link node-flush"
href=
"{% url "
dashboard
.
views
.
flush-node
"
pk=
node.pk
%}"
><i
class=
"icon-cloud-upload"
></i>
{% trans "Flush" %}
</a>
...
...
circle/dashboard/templates/dashboard/node-detail/home.html
View file @
8bd55342
{% load i18n %}
<div
class=
"row"
>
<div
class=
"col-md-4"
>
<dl>
<dt>
System:
</dt>
<dd><i
class=
"icon-linux"
></i>
Uhu Binux Optikai Rendszer
</dd>
<dt>
Description:
</dt>
<dd><small>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc est libero, hendrerit at posuere sed, molestie congue quam.
</small></dd>
</dl>
<div
style=
"font-weight: bold;"
>
{% trans "Traits" %}
</div>
<div
style=
"font-weight: bold;"
>
{% trans "Traits the node provides" %}
</div>
<div
id=
"node-details-traits"
style=
"margin-bottom: 20px;"
>
<div
id=
"node-details-traits-list"
>
{% if node.traits.all %}
...
...
circle/dashboard/templates/dashboard/node-list.html
View file @
8bd55342
...
...
@@ -3,30 +3,12 @@
{% load render_table from django_tables2 %}
{% block content %}
<div
class=
"alert alert-info"
>
Tip #1: you can select multiple vm instances while holding down the
<strong>
CTRL
</strong>
key!
</div>
<div
class=
"alert alert-info"
>
Tip #2: if you want to select multiple instances by one click select an instance then hold down
<strong>
SHIFT
</strong>
key and select another one!
</div>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<h3
class=
"no-margin"
><i
class=
"icon-desktop"
></i>
Your nodes
</h3>
<h3
class=
"no-margin"
><i
class=
"icon-desktop"
></i>
{% trans "Compute nodes" %}
</h3>
</div>
<div
class=
"panel-body node-list-group-control"
>
<p>
<strong>
Group actions
</strong>
<button
id=
"node-list-group-select-all"
class=
"btn btn-info btn-xs"
>
Select all
</button>
<a
class=
"btn btn-default btn-xs"
id=
"node-list-group-migrate"
disabled
><i
class=
"icon-truck"
></i>
Migrate
</a>
<a
disabled
href=
"#"
class=
"btn btn-default btn-xs"
><i
class=
"icon-refresh"
></i>
Reboot
</a>
<a
disabled
href=
"#"
class=
"btn btn-default btn-xs"
><i
class=
"icon-off"
></i>
Shutdown
</a>
<a
id=
"node-list-group-delete"
disabled
href=
"#"
class=
"btn btn-danger btn-xs"
><i
class=
"icon-remove"
></i>
Discard
</a>
</p>
</div>
<div
id=
"table_container"
>
<div
id=
"rendered_table"
class=
"panel-body"
>
...
...
circle/dashboard/templates/dashboard/node-list/column-admin.html
View file @
8bd55342
<a
class=
"btn btn-default btn-xs"
title
data-original-title=
"Flush
"
>
<a
class=
"btn btn-default btn-xs"
title
=
"{% trans "
Flush
"
%}
"
>
<i
class=
"icon-cloud-upload"
></i>
</a>
<a
id=
"node-list-rename-button"
class=
"btn btn-default btn-xs"
title
data-original-title=
"Rename
"
>
<a
id=
"node-list-rename-button"
class=
"btn btn-default btn-xs"
title
=
"{% trans "
Rename
"
%}
"
>
<i
class=
"icon-pencil"
></i>
</a>
</a>
circle/dashboard/templates/dashboard/template-edit.html
View file @
8bd55342
...
...
@@ -8,7 +8,7 @@
<div
class=
"col-md-8"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<a
class=
"pull-right btn btn-default btn-xs"
href=
"{% url "
dashboard
.
views
.
template-list
"
%}"
>
Back
</a>
<a
class=
"pull-right btn btn-default btn-xs"
href=
"{% url "
dashboard
.
views
.
template-list
"
%}"
>
{% trans "Back" %}
</a>
<h3
class=
"no-margin"
><i
class=
"icon-puzzle-piece"
></i>
{% trans "Edit template" %}
</h3>
</div>
<div
class=
"panel-body"
>
...
...
circle/dashboard/templates/dashboard/template-list.html
View file @
8bd55342
...
...
@@ -8,7 +8,7 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<a
href=
"{% url "
dashboard
.
views
.
template-create
"
%}"
class=
"pull-right btn btn-success btn-xs"
>
<i
class=
"icon-plus"
></i>
new template
<i
class=
"icon-plus"
></i>
{% trans "new template" %}
</a>
<h3
class=
"no-margin"
><i
class=
"icon-puzzle-piece"
></i>
{% trans "Templates" %}
</h3>
</div>
...
...
@@ -24,7 +24,7 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<a
href=
"{% url "
dashboard
.
views
.
lease-create
"
%}"
class=
"pull-right btn btn-success btn-xs"
style=
"margin-right: 10px;"
>
<i
class=
"icon-plus"
></i>
new lease
<i
class=
"icon-plus"
></i>
{% trans "new lease" %}
</a>
<h3
class=
"no-margin"
><i
class=
"icon-time"
></i>
{% trans "Leases" %}
</h3>
</div>
...
...
@@ -36,6 +36,7 @@
</div>
</div>
{% comment %}
<div
class=
"col-md-6"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
...
...
@@ -46,6 +47,7 @@
</div>
</div>
</div>
{% endcomment %}
</div>
{% endblock %}
...
...
circle/dashboard/templates/dashboard/template-list/column-template-actions.html
View file @
8bd55342
{% load i18n %}
<a
href=
"{% url "
dashboard
.
views
.
template-create
"
%}?
parent=
{{
record
.
pk
}}"
id=
"template-list-clone-button"
class=
"btn btn-default btn-xs"
title
data-original-title
=
"{% trans "
Clone
"
%}"
>
<a
href=
"{% url "
dashboard
.
views
.
template-create
"
%}?
parent=
{{
record
.
pk
}}"
id=
"template-list-clone-button"
class=
"btn btn-default btn-xs"
title=
"{% trans "
Clone
"
%}"
>
<i
class=
"icon-copy"
></i>
</a>
<a
href=
"{% url "
dashboard
.
views
.
template-detail
"
pk=
record.pk%}"
id=
"template-list-edit-button"
class=
"btn btn-default btn-xs"
title
data-original-title
=
"{% trans "
Edit
"
%}"
>
<a
href=
"{% url "
dashboard
.
views
.
template-detail
"
pk=
record.pk%}"
id=
"template-list-edit-button"
class=
"btn btn-default btn-xs"
title=
"{% trans "
Edit
"
%}"
>
<i
class=
"icon-edit"
></i>
</a>
<a
data-template-pk=
"{{ record.pk }}"
href=
"{% url "
dashboard
.
views
.
template-delete
"
pk=
record.pk
%}"
class=
"btn btn-danger btn-xs template-delete"
title=
"{% trans "
Delete
"
%}"
>
...
...
circle/dashboard/templates/dashboard/vm-detail.html
View file @
8bd55342
...
...
@@ -74,7 +74,7 @@
</li>
<li>
<strong>
{% trans "Wake up" %}:
</strong>
{% trans "
?
" %}
{% trans "
Wake up suspended machine.
" %}
</li>
<li>
<strong>
{% trans "Shutdown" %}:
</strong>
...
...
@@ -98,7 +98,7 @@
</li>
<li>
<strong>
{% trans "Save as template" %}:
</strong>
{% trans "
?
" %}
{% trans "
Shut down the virtual machine, and save it as a new template.
" %}
</li>
<li>
<strong>
{% trans "Destroy" %}:
</strong>
...
...
@@ -113,7 +113,7 @@
<div
class=
"big"
>
<span
id=
"vm-details-state"
class=
"label label-success"
>
{{ instance.state }}
</span>
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"btn btn-warning nojs-dropdown-toogle dropdown-toggle"
data-toggle=
"dropdown"
>
Action
<i
class=
"icon-caret-down"
></i></button>
<button
type=
"button"
class=
"btn btn-warning nojs-dropdown-toogle dropdown-toggle"
data-toggle=
"dropdown"
>
{% trans "Action" %}
<i
class=
"icon-caret-down"
></i></button>
<ul
class=
"nojs-dropdown-menu dropdown-menu"
role=
"menu"
>
<li><a
href=
"#"
class=
"vm-details-rename-button"
><i
class=
"icon-pencil"
></i>
{% trans "Rename" %}
</a></li>
<li><a
data-vm-pk=
"{{ instance.pk }}"
href=
"#"
class=
"vm-details-save-as-button"
><i
class=
"icon-save"
></i>
{% trans "Save as" %}
</a></li>
...
...
@@ -126,7 +126,7 @@
<h3>
{% trans "Connection" %}
</h3>
<input
type=
"text"
value=
"{{ instance.get_connect_command }}"
class=
"form-control"
readonly
/>
<dl
class=
"dl-horizontal vm-details-pw"
>
<dt>
Password
:
</dt>
<dt>
{% trans "Password" %}
:
</dt>
<dd>
<div
class=
"input-group"
>
<input
type=
"text"
id=
"vm-details-pw-input"
class=
"form-control input-sm input-tags"
value=
"{{ instance.pw }}"
/>
...
...
@@ -136,15 +136,15 @@
</div>
</dd>
<dd
style=
"font-size: 10px; text-align: right; padding-top: 8px;"
>
<a
id=
"vm-details-pw-change"
href=
"#"
>
Generate new password!
</a>
<a
id=
"vm-details-pw-change"
href=
"#"
>
{% trans "Generate new password!" %}
</a>
</dd>
<div
id=
"vm-details-pw-confirm"
>
<div
id=
"vm-details-pw-confirm"
>
{% comment %} TODO Couldn't this use a modal? {% endcomment%}
<dt>
Are you sure?
{% trans "Are you sure?" %}
</dt>
<dd>
<a
href=
"#"
class=
"vm-details-pw-confirm-choice label label-success"
data-choice=
"1"
data-vm=
"{{ instance.pk }}"
>
Yes
</a>
/
<a
href=
"#"
class=
"vm-details-pw-confirm-choice label label-danger"
data-choice=
"0"
>
No
</a>
<a
href=
"#"
class=
"vm-details-pw-confirm-choice label label-success"
data-choice=
"1"
data-vm=
"{{ instance.pk }}"
>
{% trans "Yes" %}
</a>
/
<a
href=
"#"
class=
"vm-details-pw-confirm-choice label label-danger"
data-choice=
"0"
>
{% trans "No" %}
</a>
</dd>
</div>
</dl>
...
...
circle/dashboard/templates/dashboard/vm-detail/console.html
View file @
8bd55342
<div
class=
"btn-toolbar"
>
<button
id=
"sendCtrlAltDelButton"
class=
"btn btn-danger small"
>
Send CtrlAltDel
</button>
<button
id=
"sendPasswordButton"
class=
"btn btn-default small"
>
Type password
</button>
<button
id=
"sendCtrlAltDelButton"
class=
"btn btn-danger small"
>
{% trans "Send Ctrl+Alt+Del" %}
</button>
<button
id=
"sendPasswordButton"
class=
"btn btn-default small"
>
{% trans "Type password" %}
</button>
</div>
<div
class=
"alert alert-info"
id=
"noVNC_status"
>
</div>
...
...
circle/dashboard/templates/dashboard/vm-detail/home.html
View file @
8bd55342
...
...
@@ -2,9 +2,9 @@
<div
class=
"row"
>
<div
class=
"col-md-4"
>
<dl>
<dt>
System
:
</dt>
<dt>
{% trans "System" %}
:
</dt>
<dd><i
class=
"icon-{{ os_type_icon }}"
></i>
{{ instance.system }}
</dd>
<dt
style=
"margin-top: 5px;"
>
Description
:
</dt>
<dt
style=
"margin-top: 5px;"
>
{% trans "Description" %}
:
</dt>
<dd><small>
{{ instance.description }}
</small></dd>
</dl>
...
...
@@ -29,7 +29,7 @@
</div>
{% endfor %}
{% else %}
<small>
No tag added!
</small>
<small>
{% trans "No tag added!" %}
</small>
{% endif %}
</div>
<form
action=
""
method=
"POST"
>
...
...
circle/dashboard/templates/dashboard/vm-detail/tx-owner.html
View file @
8bd55342
...
...
@@ -6,15 +6,17 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<h3
class=
"no-margin"
>
Transfer ownership
{% trans "Transfer ownership" %}
</h3>
</div>
<div
class=
"panel-body"
>
<div
class=
"pull-right"
>
<form
action=
""
method=
"POST"
>
{% csrf_token %}
E-mail address or identifier of user:
<input
name=
"name"
>
<label>
{% trans "E-mail address or identifier of user" %}:
<input
name=
"name"
>
</label>
<input
type=
"submit"
>
</form>
</div>
...
...
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