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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
8f700284
authored
Oct 02, 2013
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: use acl data in detail template
parent
53aaa57a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
+21
-3
circle/dashboard/templates/dashboard/vm-detail-access.html
+21
-3
No files found.
circle/dashboard/templates/dashboard/vm-detail-access.html
View file @
8f700284
{% load i18n %}
{% load i18n %}
{% load guardian_tags %}
<h3>
{% trans "Owner" %}
</h3>
<h3>
{% trans "Owner" %}
</h3>
<p>
<p>
{% blocktrans %}You are the current owner of this instance.{% endblocktrans %}
{% blocktrans %}You are the current owner of this instance.{% endblocktrans %}
<a
href=
"#"
class=
"btn btn-link"
>
{% trans "Transfer ownership..." %}
</a>
<a
href=
"#"
class=
"btn btn-link"
>
{% trans "Transfer ownership..." %}
</a>
</p>
</p>
<h3>
{% trans "Permissions"|capfirst %}
</h3>
<h3>
{% trans "Permissions"|capfirst %}
</h3>
<form
action=
"{{acl.url}}"
method=
"post"
>
{% csrf_token %}
<table
class=
"table table-striped table-with-form-fields"
>
<table
class=
"table table-striped table-with-form-fields"
>
<thead><tr><th></th><th>
{% trans "Who" %}
</th><th>
{% trans "What" %}
</th><th></th></tr></thead>
<thead><tr><th></th><th>
{% trans "Who" %}
</th><th>
{% trans "What" %}
</th><th></th></tr></thead>
<tbody>
<tbody>
<tr><td><i
class=
"icon-user"
></i></td><td>
NEP123 (Gipsz Jakab)
</td><td><select
class=
"form-control"
><option>
owner
</option></select></td><td><a
href=
"#"
class=
"btn btn-link btn-xs"
><i
class=
"icon-remove"
><span
class=
"sr-only"
>
{% trans "remove" %}
</span></i></a></td></tr>
{% for i in acl.users %}
<tr><td><i
class=
"icon-user"
></i></td><td>
NEP123 (Gipsz Jakab)
</td><td><select
class=
"form-control"
><option>
control
</option></select></td><td><a
href=
"#"
class=
"btn btn-link btn-xs"
><i
class=
"icon-remove"
><span
class=
"sr-only"
>
{% trans "remove" %}
</span></i></a></td></tr>
<tr><td><i
class=
"icon-user"
></i></td><td>
{{i.user}}
</td>
<tr><td><i
class=
"icon-group"
></i></td><td>
Cloud-fejlesztők
</td><td><select
class=
"form-control"
><option>
view
</option></select></td><td><a
href=
"#"
class=
"btn btn-link btn-xs"
><i
class=
"icon-remove"
><span
class=
"sr-only"
>
{% trans "remove" %}
</span></i></a></td></tr>
<td><select
class=
"form-control"
name=
"perm-u-{{i.id}}"
>
{% for id, name in acl.levels %}
<option
{%
if
id =
i.perm%}
selected=
"selected"
{%
endif
%}
value=
"{{id}}"
>
{{name}}
</option>
{% endfor %}
</select></td>
<td><a
href=
"#"
class=
"btn btn-link btn-xs"
><i
class=
"icon-remove"
><span
class=
"sr-only"
>
{% trans "remove" %}
</span></i></a></td></tr>
{% endfor %}
{% for i in acl.groups %}
<tr><td><i
class=
"icon-group"
></i></td><td>
{{i.group}}
</td>
<td><select
class=
"form-control"
name=
"perm-g-{{i.id}}"
>
{% for id, name in acl.levels %}
<option
{%
if
id =
i.perm%}
selected=
"selected"
{%
endif
%}
value=
"{{id}}"
>
{{name}}
</option>
{% endfor %}
</select></td>
<td><a
href=
"#"
class=
"btn btn-link btn-xs"
><i
class=
"icon-remove"
><span
class=
"sr-only"
>
{% trans "remove" %}
</span></i></a></td></tr>
{% endfor %}
<tr><td><i
class=
"icon-plus"
></i></td><td><input
type=
"text"
class=
"form-control"
></td>
<tr><td><i
class=
"icon-plus"
></i></td><td><input
type=
"text"
class=
"form-control"
></td>
<td><select
class=
"form-control"
><option>
owner
</option></select></td><td></td></tr>
<td><select
class=
"form-control"
><option>
owner
</option></select></td><td></td></tr>
</tbody>
</tbody>
...
@@ -18,3 +35,4 @@
...
@@ -18,3 +35,4 @@
<div
class=
"form-actions"
>
<div
class=
"form-actions"
>
<button
type=
"submit"
class=
"btn btn-success"
>
{% trans "Save" %}
</button>
<button
type=
"submit"
class=
"btn btn-success"
>
{% trans "Save" %}
</button>
</div>
</div>
</form>
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