-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
745 additions
and
507 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 41 additions & 43 deletions
84
projectroles/templates/projectroles/_project_role_ops.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,42 @@ | ||
<div class="ml-auto"> | ||
<button class="btn btn-primary dropdown-toggle sodar-pr-role-ops-btn" | ||
id="sodar-pr-role-ops-btn" | ||
type="button" data-toggle="dropdown" | ||
aria-haspopup="true" aria-expanded="false" | ||
{% if project.is_remote %}disabled="disabled"{% endif %}> | ||
Member Operations | ||
</button> | ||
<div class="dropdown-menu dropdown-menu-right" | ||
id="sodar-pr-role-ops-dropdown"> | ||
{% if role_perms.can_update_members %} | ||
<a class="dropdown-item" | ||
href="{% url 'projectroles:role_create' project=project.sodar_uuid %}" | ||
title="Add Member" | ||
id="sodar-pr-role-ops-create"> | ||
<i class="iconify" data-icon="mdi:account-plus"></i> Add Member | ||
</a> | ||
{% endif %} | ||
{% if role_perms.can_invite %} | ||
<a class="dropdown-item" | ||
href="{% url 'projectroles:invite_create' project=project.sodar_uuid %}" | ||
title="Send Invite" | ||
id="sodar-pr-role-ops-invite"> | ||
<i class="iconify" data-icon="mdi:send"></i> Send Invite | ||
</a> | ||
{% endif %} | ||
{% if role_perms.can_update_members and request.resolver_match.url_name != 'project_roles' %} | ||
<a class="dropdown-item" | ||
href="{% url 'projectroles:roles' project=project.sodar_uuid %}" | ||
title="View Members" | ||
id="sodar-pr-role-ops-roles"> | ||
<i class="iconify" data-icon="mdi:account-multiple"></i> View Members | ||
</a> | ||
{% endif %} | ||
{% if role_perms.can_invite and request.resolver_match.url_name != 'role_invites' %} | ||
<a class="dropdown-item" | ||
href="{% url 'projectroles:invites' project=project.sodar_uuid %}" | ||
title="View Invites" | ||
id="sodar-pr-role-ops-invites"> | ||
<i class="iconify" data-icon="mdi:email"></i> View Invites | ||
</a> | ||
{% endif %} | ||
</div> | ||
<button class="btn btn-primary dropdown-toggle sodar-pr-role-ops-btn" | ||
id="sodar-pr-role-ops-btn" | ||
type="button" data-toggle="dropdown" | ||
aria-haspopup="true" aria-expanded="false" | ||
{% if project.is_remote %}disabled="disabled"{% endif %}> | ||
Member Operations | ||
</button> | ||
<div class="dropdown-menu dropdown-menu-right" | ||
id="sodar-pr-role-ops-dropdown"> | ||
{% if role_perms.can_update_members %} | ||
<a class="dropdown-item" | ||
href="{% url 'projectroles:role_create' project=project.sodar_uuid %}" | ||
title="Add Member" | ||
id="sodar-pr-role-ops-create"> | ||
<i class="iconify" data-icon="mdi:account-plus"></i> Add Member | ||
</a> | ||
{% endif %} | ||
{% if role_perms.can_invite %} | ||
<a class="dropdown-item" | ||
href="{% url 'projectroles:invite_create' project=project.sodar_uuid %}" | ||
title="Send Invite" | ||
id="sodar-pr-role-ops-invite"> | ||
<i class="iconify" data-icon="mdi:send"></i> Send Invite | ||
</a> | ||
{% endif %} | ||
{% if role_perms.can_update_members and request.resolver_match.url_name != 'project_roles' %} | ||
<a class="dropdown-item" | ||
href="{% url 'projectroles:roles' project=project.sodar_uuid %}" | ||
title="View Members" | ||
id="sodar-pr-role-ops-roles"> | ||
<i class="iconify" data-icon="mdi:account-multiple"></i> View Members | ||
</a> | ||
{% endif %} | ||
{% if role_perms.can_invite and request.resolver_match.url_name != 'role_invites' %} | ||
<a class="dropdown-item" | ||
href="{% url 'projectroles:invites' project=project.sodar_uuid %}" | ||
title="View Invites" | ||
id="sodar-pr-role-ops-invites"> | ||
<i class="iconify" data-icon="mdi:email"></i> View Invites | ||
</a> | ||
{% endif %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
projectroles/templates/projectroles/roleassignment_confirm_delete_own.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{% extends 'projectroles/project_base.html' %} | ||
|
||
{% load rules %} | ||
{% load projectroles_tags %} | ||
{% load projectroles_common_tags %} | ||
|
||
{% block title %} | ||
Confirm Leaving {{ object.project.title }} | ||
{% endblock title %} | ||
|
||
{% block projectroles_extend %} | ||
|
||
{% get_display_name object.project.type as project_type %} | ||
|
||
<div class="container-fluid sodar-page-container"> | ||
<h3>Confirm Leaving {{ object.project.title }}</h3> | ||
|
||
<div class="alert alert-danger" role="alert"> | ||
Are you sure you really want to leave the {{ project_type }} | ||
"{{ object.project.title }}"? This action can not be undone. To regain | ||
access, an owner or a delegate will have to re-enable your membership. | ||
</div> | ||
{% if inh_child_projects %} | ||
<div class="alert alert-danger" role="alert" | ||
id="sodar-pr-role-leave-alert-child"> | ||
Leaving this {{ project_type }} will also remove your access from the | ||
following inherited {% get_display_name 'CATEGORY' plural=True %} or | ||
{% get_display_name 'PROJECT' plural=True %}: | ||
<ul class="mt-2 mb-0"> | ||
{% for child in inh_child_projects %} | ||
<li class="sodar-pr-role-leave-child-item"> | ||
<a href="{% url 'projectroles:roles' project=child.sodar_uuid %}"> | ||
{{ child.full_title }} | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
{% endif %} | ||
|
||
<form method="post"> | ||
{% csrf_token %} | ||
<div class="btn-group pull-right"> | ||
<a role="button" class="btn btn-secondary" | ||
href="{{ request.session.real_referer }}"> | ||
<i class="iconify" data-icon="mdi:arrow-left-circle"></i> Cancel | ||
</a> | ||
<button type="submit" class="btn btn-danger"> | ||
<i class="iconify" data-icon="mdi:account-remove"></i> Leave | ||
</button> | ||
</div> | ||
</form> | ||
</div> | ||
|
||
{% endblock projectroles_extend %} |
Oops, something went wrong.