{%if resource_error is defined %}
{{display_error("Resource", resource_error)}}
{%else%}
Resource Details
Resource: {{resource.resource_name}}
Name |
Category |
Actions |
{{resource.resource_name}} |
{{resource.resource_category.resource_category_description}} |
|
Edit
|
Delete
|
Resource Data
Resource Data
{%if resource.resource_category.resource_category_key == "phenotype"%}
Trait |
Description |
Year |
{%endif%}
Dataset Name |
Full Name |
Actions |
{%for data_item in resource.resource_data:%}
{%if resource.resource_category.resource_category_key == "phenotype"%}
{{data_item.PublishXRefId}}
|
{{data_item.description}} |
{%if data_item.PubMed_ID%}
{{data_item.Year}}
{%else%}
{{data_item.Year}}
{%endif%}
|
{%endif%}
{{data_item.dataset_name}}
|
{{data_item.dataset_fullname}} |
|
{%else%}
No linked data.
|
{%endfor%}
Unlinked Data
Link Data
{%if resource.resource_category.resource_category_key == "phenotype"%}
Trait |
Description |
Year |
{%endif%}
Dataset Name |
Dataset FullName |
Actions |
{%if unlinked_error is defined%}
{{display_error("Unlinked Data Error", unlinked_error)}}
{%else%}
{%for data_item in unlinked_data:%}
{%if resource.resource_category.resource_category_key == "phenotype"%}
{{data_item.PublishXRefId}}
|
{{data_item.description}} |
{%if data_item.PubMed_ID%}
{{data_item.Year}}
{%else%}
{{data_item.Year}}
{%endif%}
|
{%endif%}
{{data_item.dataset_name}}
|
{{data_item.dataset_fullname}} |
|
{%else%}
No data to link.
{%endfor%}
{%endif%}
Available Resource Roles
The resource roles will go here when they are implemented …
Users: Assigned Roles
{%if users_n_roles_error is defined%}
{{display_error("Users and Roles", users_n_roles_error)}}
{%else%}
User Roles
User Email |
User Name |
User Group |
Assigned Roles |
{%for user_row in users_n_roles%}
{{user_row.user.email}} |
{{user_row.user.name}} |
{{user_row.user_group.group_name}} |
Role |
Action |
{%for grole in user_row.roles%}
{{grole.role_name}}
|
|
{%endfor%}
{%else%}
There are no users assigned any role for this resource.
|
{%endfor%}
{%endif%}
Assign
{%if group_roles_error is defined%}
{{display_error("Group Roles", group_roles_error)}}
{%elif users_error is defined%}
{{display_error("Users", users_error)}}
{%else%}
{%endif%}
{%endif%}