solve refactor problem
This commit is contained in:
parent
271c2e31d1
commit
cdd61123ea
|
|
@ -13,26 +13,6 @@
|
||||||
|
|
||||||
<div class="d-flex gap-2">
|
<div class="d-flex gap-2">
|
||||||
{% if canEdit %}
|
{% if canEdit %}
|
||||||
{% if organizationId is not null %}
|
|
||||||
{% if uoActive %}
|
|
||||||
<form method="post" action="{{ path('user_deactivate_organization', {'id': user.id}) }}"
|
|
||||||
onsubmit="return confirm('Vous allez retirer l\'utilisateur de cette organisation, êtes vous sûre?');">
|
|
||||||
<input type="hidden" name="organizationId" value="{{ organizationId }}">
|
|
||||||
<button class="btn btn-secondary" type="submit">Désactiver l'utilisateur de
|
|
||||||
l'organisation
|
|
||||||
</button>
|
|
||||||
</form>
|
|
||||||
{% else %}
|
|
||||||
<form method="post" action="{{ path('user_activate_organization', {'id': user.id}) }}"
|
|
||||||
onsubmit="return confirm('Vous allez activer cette utilisateur dans votre organisation, êtes vous sûre?');">
|
|
||||||
<input type="hidden" name="organizationId" value="{{ organizationId }}">
|
|
||||||
<button class="btn btn-primary" type="submit">Activer l'utilisateur de l'organisation
|
|
||||||
</button>
|
|
||||||
</form>
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
|
|
||||||
<a href="{{ path('user_edit', {'id': user.id, 'organizationId': organizationId}) }}"
|
<a href="{{ path('user_edit', {'id': user.id, 'organizationId': organizationId}) }}"
|
||||||
class="btn btn-primary">Modifier</a>
|
class="btn btn-primary">Modifier</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue