Skip to content
Snippets Groups Projects
Verified Commit 78920a4b authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Refactor modal for assigning permissions to card to avoid JS issues

parent 034b17dd
No related branches found
No related tags found
1 merge request!533Resolve "Manage permissions for persons (users) and groups (Django groups) in frontend"
Pipeline #6763 canceled
......@@ -14,25 +14,18 @@
{% block page_title %}{% blocktrans %}Manage permissions{% endblocktrans %}{% endblock %}
{% block content %}
<a class="waves-effect waves-light btn green modal-trigger" href="#assign-modal">
<i class="material-icons left">add</i>
{% trans "Assign new permission" %}
</a>
<div id="assign-modal" class="modal">
<form action="{% url "select_permission_for_assign" %}?next={% url "manage_"|add:tab|add:"_permissions" %}"
method="post">
<div class="modal-content">
<h5>{% trans "Select permission to assign" %}</h5>
<div class="card">
<div class="card-content">
<form action="{% url "select_permission_for_assign" %}?next={% url "manage_"|add:tab|add:"_permissions" %}"
method="post">
<div class="card-title">{% trans "Assign a new permission" %}</div>
{% csrf_token %}
{% form form=assign_form %}{% endform %}
</div>
<div class="modal-footer">
<button type="submit" class="btn green waves-effect waves-light">
{% trans "Select" %}
</button>
</div>
</form>
</form>
</div>
</div>
<ul class="tabs">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment