Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gyuricska Milán
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
36b2d201
authored
Oct 17, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: make group detail html nicer
the content is the some but added some indentation
parent
5212a450
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
38 deletions
+43
-38
circle/dashboard/templates/dashboard/group-detail.html
+43
-38
No files found.
circle/dashboard/templates/dashboard/group-detail.html
View file @
36b2d201
...
@@ -8,9 +8,15 @@
...
@@ -8,9 +8,15 @@
<div
class=
"body-content"
>
<div
class=
"body-content"
>
<div
class=
"page-header"
>
<div
class=
"page-header"
>
<div
class=
"pull-right"
style=
"padding-top: 15px;"
>
<div
class=
"pull-right"
style=
"padding-top: 15px;"
>
<a
title=
"{% trans "
Rename
"
%}"
href=
"#"
class=
"btn btn-default btn-xs group-details-rename-button"
><i
class=
"fa fa-pencil"
></i></a>
<a
title=
"{% trans "
Rename
"
%}"
href=
"#"
class=
"btn btn-default btn-xs group-details-rename-button"
>
<a
title=
"{% trans "
Delete
"
%}"
data-group-pk=
"{{ group.pk }}"
class=
"btn btn-default btn-xs real-link group-delete"
href=
"{% url "
dashboard
.
views
.
delete-group
"
pk=
group.pk
%}"
><i
class=
"fa fa-trash-o"
></i></a>
<i
class=
"fa fa-pencil"
></i>
<a
title=
"{% trans "
Help
"
%}"
href=
"#"
class=
"btn btn-default btn-xs group-details-help-button"
><i
class=
"fa fa-question"
></i></a>
</a>
<a
title=
"{% trans "
Delete
"
%}"
data-group-pk=
"{{ group.pk }}"
class=
"btn btn-default btn-xs real-link group-delete"
href=
"{% url "
dashboard
.
views
.
delete-group
"
pk=
group.pk
%}"
>
<i
class=
"fa fa-trash-o"
></i>
</a>
<a
title=
"{% trans "
Help
"
%}"
href=
"#"
class=
"btn btn-default btn-xs group-details-help-button"
>
<i
class=
"fa fa-question"
></i>
</a>
</div>
</div>
<h1>
<h1>
<div
id=
"group-details-rename"
>
<div
id=
"group-details-rename"
>
...
@@ -39,21 +45,18 @@
...
@@ -39,21 +45,18 @@
</li>
</li>
</ul>
</ul>
</div>
</div>
</div
>
</div>
<!-- .page-header --
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
id=
"group-detail-pane"
>
<div
class=
"col-md-12"
id=
"group-detail-pane"
>
<div
class=
"panel panel-default"
id=
"group-detail-panel"
>
<div
class=
"panel panel-default panel-body"
id=
"group-detail-panel"
>
<div
class=
"tab-content panel-body"
id=
"group-form-body"
>
<form
method=
"POST"
action=
"{% url "
dashboard
.
views
.
group-update
"
pk=
group.pk
%}"
>
<form
method=
"POST"
action=
"{% url "
dashboard
.
views
.
group-update
"
pk=
group.pk
%}"
>
{% csrf_token %}
{% csrf_token %}
{% crispy group_profile_form %}
{% crispy group_profile_form %}
</form>
</form>
<hr
/>
<hr
/>
<h3>
{% trans "Available objects for this group" %}
</h3>
<h3>
{% trans "Available objects for this group" %}
</h3>
<ul
class=
"dashboard-profile-vm-list fa-ul"
>
<ul
class=
"dashboard-profile-vm-list fa-ul"
>
{% for i in vm_objects %}
{% for i in vm_objects %}
<li>
<li>
<a
href=
"{{ i.get_absolute_url }}"
>
<a
href=
"{{ i.get_absolute_url }}"
>
...
@@ -78,17 +81,19 @@
...
@@ -78,17 +81,19 @@
</a>
</a>
</li>
</li>
{% endfor %}
{% endfor %}
</ul>
</ul>
<hr
/>
<hr
/>
<h3>
{% trans "User list"|capfirst %}
<h3>
{% trans "User list" %}
{% if perms.auth.add_user %}
{% if perms.auth.add_user %}
<a
href=
"{% url "
dashboard
.
views
.
create-user
"
group
.
pk
%}"
class=
"btn btn-success pull-right"
>
{% trans "Create user" %}
</a>
<a
href=
"{% url "
dashboard
.
views
.
create-user
"
group
.
pk
%}"
class=
"btn btn-success pull-right"
>
{% trans "Create user" %}
</a>
{% endif %}
{% endif %}
</h3>
</h3>
<form
action=
""
method=
"post"
>
{% csrf_token %}
<form
action=
""
method=
"post"
>
{% csrf_token %}
<table
class=
"table table-striped table-with-form-fields table-bordered"
id=
"group-detail-user-table"
>
<table
class=
"table table-striped table-with-form-fields table-bordered"
id=
"group-detail-user-table"
>
<tbody>
<tbody>
<thead><tr><th></th><th>
{% trans "Who" %}
</th><th>
{% trans "Remove" %}
</th></tr></thead>
<thead><tr><th></th><th>
{% trans "Who" %}
</th><th>
{% trans "Remove" %}
</th></tr></thead>
{% for i in users %}
{% for i in users %}
...
@@ -101,7 +106,9 @@
...
@@ -101,7 +106,9 @@
>
{% include "dashboard/_display-name.html" with user=i show_org=True %}
</a>
>
{% include "dashboard/_display-name.html" with user=i show_org=True %}
</a>
</td>
</td>
<td>
<td>
<a
data-group_pk=
"{{ group.pk }}"
data-member_pk=
"{{i.pk}}"
href=
"{% url "
dashboard
.
views
.
remove-user
"
member_pk=
i.pk
group_pk=
group.pk
%}"
class=
"real-link delete-from-group btn btn-link btn-xs"
><i
class=
"fa fa-times"
><span
class=
"sr-only"
>
{% trans "remove" %}
</span></i></a>
<a
data-group_pk=
"{{ group.pk }}"
data-member_pk=
"{{i.pk}}"
href=
"{% url "
dashboard
.
views
.
remove-user
"
member_pk=
i.pk
group_pk=
group.pk
%}"
class=
"real-link delete-from-group btn btn-link btn-xs"
><i
class=
"fa fa-times"
>
<span
class=
"sr-only"
>
{% trans "remove" %}
</span></i>
</a>
</td>
</td>
</tr>
</tr>
{% endfor %}
{% endfor %}
...
@@ -132,27 +139,25 @@
...
@@ -132,27 +139,25 @@
<button
type=
"submit"
class=
"btn btn-success"
>
{% trans "Save" %}
</button>
<button
type=
"submit"
class=
"btn btn-success"
>
{% trans "Save" %}
</button>
</div>
</div>
</form>
</form>
<hr
/>
<h3
id=
"group-detail-perm-header"
>
{% trans "Access permissions"|capfirst %}
</h3>
{% include "dashboard/_manage_access.html" with table_id="group-detail-perm-table" %}
{% if user.is_superuser %}
<hr
/>
<hr
/>
<h3
id=
"group-detail-perm-header"
>
{% trans "Access permissions" %}
</h3>
{% include "dashboard/_manage_access.html" with table_id="group-detail-perm-table" %}
<script
type=
"text/javascript"
src=
"/static/admin/js/jquery.min.js"
></script>
{% if user.is_superuser %}
<script
type=
"text/javascript"
src=
"/static/admin/js/jquery.init.js"
></script>
<hr
/>
{{ group_perm_form.media }}
<h3>
{% trans "Group permissions" %}
</h3>
<div
id=
"group-detail-permissions"
>
<script
type=
"text/javascript"
src=
"/static/admin/js/jquery.min.js"
></script
>
{% crispy group_perm_form %}
<script
type=
"text/javascript"
src=
"/static/admin/js/jquery.init.js"
></script>
</div>
{{ group_perm_form.media }}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/static/admin/css/widgets.css"
/
>
<h3>
{% trans "Group permissions" %}
</h3
>
{% endif %}
<div
id=
"group-detail-permissions"
>
{% crispy group_perm_form %}
</div>
</div>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/static/admin/css/widgets.css"
/>
{% endif %}
</div>
</div>
</div>
</div>
</div>
</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