{%extends "base.html"%} {%from "oauth2/profile_nav.html" import profile_nav%} {%from "oauth2/display_error.html" import display_error%} {%block title%}View User{%endblock%} {%block content%}
{{profile_nav("resources", user_privileges)}}

Resources

{{flash_me()}}
{%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}}
{%if resource.public%} {%else%} {%endif%}
Edit Delete

Resource Data

{%if resource.resource_category.resource_category_key == "phenotype"%} {%endif%} {%for data_item in resource.resource_data:%} {%if resource.resource_category.resource_category_key == "phenotype"%} {%endif%} {%else%} {%endfor%}
Resource Data
Trait Description YearDataset Name Full Name Actions
{{data_item.PublishXRefId}} {{data_item.description}} {%if data_item.PubMed_ID%} {{data_item.Year}} {%else%} {{data_item.Year}} {%endif%} {{data_item.dataset_name}} {{data_item.dataset_fullname}}
  No linked data.

Unlinked Data

{%if resource.resource_category.resource_category_key == "phenotype"%} {%endif%} {%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"%} {%endif%} {%else%}   No data to link. {%endfor%} {%endif%}
Link Data
Trait Description YearDataset Name Dataset FullName Actions
{{data_item.PublishXRefId}} {{data_item.description}} {%if data_item.PubMed_ID%} {{data_item.Year}} {%else%} {{data_item.Year}} {%endif%} {{data_item.dataset_name}} {{data_item.dataset_fullname}}

User Roles

{%if users_n_roles_error is defined%} {{display_error("Users and Roles", users_n_roles_error)}} {%else%} {%for user_row in users_n_roles%} {%for grole in user_row.roles%} {%endfor%} {%else%} {%endfor%}
User Roles
User Email User Name User Group Assigned Roles
{{user_row.user.email}} {{user_row.user.name}} {{user_row.user_group.group_name}} Role Action
{{grole.role_name}}
  There are no users assigned any role for this resource.
{%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%}
{%for user in users%} {%endfor%}
{%endif%}
{%endif%}
{%endblock%}