Browse Source

Add "if read-write" conditionals for modals in project.html

pull/563/head
Pēteris Caune 3 years ago
parent
commit
66af88145a
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      templates/accounts/project.html

+ 12
- 0
templates/accounts/project.html View File

@ -358,11 +358,14 @@
</div>
</div>
{% if rw %}
<form id="create-key-form" method="post">
{% csrf_token %}
<input id="create-key-type" type="hidden" name="create_key">
</form>
{% endif %}
{% if rw %}
<div id="revoke-key-modal" class="modal">
<div class="modal-dialog">
<form id="revoke-key-form" method="post">
@ -394,7 +397,9 @@
</form>
</div>
</div>
{% endif %}
{% if is_manager %}
<div id="remove-team-member-modal" class="modal">
<div class="modal-dialog">
<form id="remove-team-member-form" method="post">
@ -423,7 +428,9 @@
</form>
</div>
</div>
{% endif %}
{% if is_manager %}
<div id="invite-team-member-modal" class="modal">
<div class="modal-dialog">
<form method="post" class="form-horizontal">
@ -506,7 +513,9 @@
</form>
</div>
</div>
{% endif %}
{% if rw %}
<div id="set-project-name-modal" class="modal">
<div class="modal-dialog">
<form method="post" class="form-horizontal">
@ -541,7 +550,9 @@
</form>
</div>
</div>
{% endif %}
{% if is_owner %}
<div id="remove-project-modal" class="modal">
<div class="modal-dialog">
<form method="post" action="{% url 'hc-remove-project' project.code %}">
@ -567,6 +578,7 @@
</form>
</div>
</div>
{% endif %}
{% if is_owner and not transfer_request %}
<div id="transfer-modal" class="modal">


Loading…
Cancel
Save