aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorBonfaceKilz2021-10-19 10:33:03 +0300
committerBonfaceKilz2021-10-25 14:00:14 +0300
commit198add36d970c005320700a0ed01e8632e8f6922 (patch)
treec62fb57bc0de828adc62af0d2fa957fbcef1f470 /wqflask
parentf3c17102d2d8fc6be35be237c299a22f0e16a920 (diff)
downloadgenenetwork2-198add36d970c005320700a0ed01e8632e8f6922.tar.gz
manage_resources.html: Clean up html
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/admin/manage_resource.html33
1 files changed, 14 insertions, 19 deletions
diff --git a/wqflask/wqflask/templates/admin/manage_resource.html b/wqflask/wqflask/templates/admin/manage_resource.html
index a2ed3538..80dfc8ee 100644
--- a/wqflask/wqflask/templates/admin/manage_resource.html
+++ b/wqflask/wqflask/templates/admin/manage_resource.html
@@ -6,29 +6,24 @@
{% set DATA_ACCESS = access_role.get('data') %}
{% set METADATA_ACCESS = access_role.get('metadata') %}
{% set ADMIN_STATUS = access_role.get('admin') %}
-
- <div class="page-header" style="display: inline-block;">
<h1>Resource Manager</h1>
+ {% if resource_info.get('owner_id') != 'none'%}
+ {% set user_details = resource_info.get('owner_details') %}
<h3>
- {% if resource_info.get('owner_id') != 'none'%}
- {% set user_details = resource_info.get('owner_details') %}
Current Owner: {{ user_details.get('full_name') }}
- {% if user_details.get('organization') %}
- <br/> Organization {{ user_details.get('organization')}}
- {% endif %}
- {% endif %}
-
- {% if DATA_ACCESS > DataRole.VIEW and ADMIN_STATUS > AdminRole.NOT_ADMIN %}
- <button id="change_owner"
- class="btn btn-danger"
- data-url="/resources/change_owner"
- style="margin-left: 20px;">
- Change Owner
- </button>
- {% endif %}
</h3>
- </div>
- <form id="manage_resource" action="/resources/manage" method="POST">
+ {% if user_details.get('organization') %}
+ <h3>
+ Organization: {{ user_details.get('organization')}}
+ </h3>
+ {% endif %}
+ {% if DATA_ACCESS > DataRole.VIEW and ADMIN_STATUS > AdminRole.NOT_ADMIN %}
+ <button class="btn btn-danger"
+ data-url="/resource-management/resources/change_owner">
+ Change Owner
+ </button>
+ {% endif %}
+ {% endif %}
<input type="hidden" name="resource_id" value="{{ resource_id }}">
<div style="min-width: 600px; max-width: 800px;">
<fieldset>