Improve notif and organization add member
This commit is contained in:
parent
cdbed121cd
commit
7406d081aa
10 changed files with 297 additions and 149 deletions
|
@ -9,11 +9,15 @@
|
|||
{% block before_point %}
|
||||
{% if can_edit %}
|
||||
<td>
|
||||
<form action="{{ kick_url }}" method="POST" class="kick-form">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="user" value="{{ user.id }}">
|
||||
<a href="#" class="button small">{{ _('Kick') }}</a>
|
||||
</form>
|
||||
{% if not organization.is_admin(user) %}
|
||||
<form action="{{ kick_url }}" method="POST" class="kick-form">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="user" value="{{ user.id }}">
|
||||
<a href="#" class="button small">{{ _('Kick') }}</a>
|
||||
</form>
|
||||
{% else %}
|
||||
{{ _("Admin") }}
|
||||
{% endif %}
|
||||
</td>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue