Skip to content
Snippets Groups Projects
Commit 3e709cbb authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Show button to edit person

parent b5bad59d
No related branches found
No related tags found
1 merge request!18Add link to EditPersonView
Pipeline #60760 passed
......@@ -14,37 +14,46 @@
{% has_perm 'paweljong.delete_registration' user registration as can_delete_registration %}
{% has_perm 'paweljong.send_notification_mail' user registration as can_send_notification %}
{% has_perm 'tezor.view_invoice_rule' user registration as can_view_invoice %}
{% has_perm 'core.edit_person_rule' user person as can_change_person %}
{% if can_manage_registration or can_manage_registration_preferences or can_delete_registration or can_send_notification %}
<p>
{% if can_manage_registration %}
<a href="{% url 'edit_registration_by_pk' registration.pk %}" class="btn waves-effect waves-light">
<i class="material-icons left">edit</i>
<i class="material-icons left iconify" data-icon="mdi:edit"></i>
{% trans "Edit" %}
</a>
{% endif %}
{% if can_delete_registration %}
<a href="{% url 'delete_registration_by_pk' registration.pk %}" class="btn waves-effect waves-light red">
<i class="material-icons left">delete</i>
<i class="material-icons left iconify" data-icon="mdi:delete"></i>
{% trans "Delete" %}
</a>
{% endif %}
{% if can_send_notification %}
<a href="{% url 'registration_notification_by_pk' registration.pk %}" class="btn waves-effect waves-light">
<i class="material-icons left">email</i>
<i class="material-icons left iconify" data-icon="mdi:email"></i>
{% trans "Notification" %}
</a>
{% endif %}
{% if can_view_invoice %}
<a href="{% url 'invoice_by_token' registration.get_invoice.token %}" class="btn waves-effect waves-light">
<i class="material-icons left">attach_money</i>
<i class="material-icons left iconify" data-icon="mdi:attach_money"></i>
{% trans "Invoice" %}
</a>
{% endif %}
{% if can_change_person %}
<a href="{% url 'edit_person_by_id' person.id %}" class="btn waves-effect waves-light">
<i class="material-icons left iconify" data-icon="mdi:account-edit"></i>
{% trans "Edit person" %}
</a>
{% endif %}
</p>
{% endif %}
......
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