Refactor
This commit is contained in:
parent
dc5eb702a3
commit
3ef774d7e0
|
|
@ -14,9 +14,9 @@
|
||||||
|
|
||||||
{% if user.active %}
|
{% if user.active %}
|
||||||
<a href="{{ path('user_deactivate', {'id': user.id}) }}"
|
<a href="{{ path('user_deactivate', {'id': user.id}) }}"
|
||||||
class="btn btn-danger">Désactiver</a>
|
class="btn btn-danger">Désactiver l'utilisateur</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="{{ path('user_activate', {'id': user.id}) }}" class="btn btn-success">Activer</a>
|
<a href="{{ path('user_activate', {'id': user.id}) }}" class="btn btn-success">Activer l'utilisateur</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -24,13 +24,10 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% include 'user/userInformation.html.twig' %}
|
{% include 'user/userInformation.html.twig' %}
|
||||||
{% if orgs|length >1 %}
|
{% if orgs|length >0 %}
|
||||||
|
|
||||||
<h1 class="mt-5 mb-4">Vos applications</h1>
|
<h1 class="mt-5 mb-4">Vos applications</h1>
|
||||||
{% elseif orgs|length == 1 %}
|
|
||||||
{% for org in orgs %}
|
|
||||||
<h1 class="mt-5 mb-4">{{ org.name }}</h1>
|
|
||||||
{% endfor %}
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<h1 class="mt-5 mb-4">Aucune application</h1>
|
<h1 class="mt-5 mb-4">Aucune application</h1>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
|
|
@ -14,13 +14,13 @@
|
||||||
<form method="post" action="{{ path('user_deactivate_organization', {'id': user.id}) }}"
|
<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?');">
|
onsubmit="return confirm('Vous allez retirer l\'utilisateur de cette organisation, êtes vous sûre?');">
|
||||||
<input type="hidden" name="organizationId" value="{{ organizationId }}">
|
<input type="hidden" name="organizationId" value="{{ organizationId }}">
|
||||||
<button class="btn btn-danger" type="submit">Désactiver</button>
|
<button class="btn btn-danger" type="submit">Désactiver l'utilisateur de l'organisation</button>
|
||||||
</form>
|
</form>
|
||||||
{% else %}
|
{% else %}
|
||||||
<form method="post" action="{{ path('user_activate_organization', {'id': user.id}) }}"
|
<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?');">
|
onsubmit="return confirm('Vous allez activer cette utilisateur dans votre organisation, êtes vous sûre?');">
|
||||||
<input type="hidden" name="organizationId" value="{{ organizationId }}">
|
<input type="hidden" name="organizationId" value="{{ organizationId }}">
|
||||||
<button class="btn btn-primary" type="submit">Activer</button>
|
<button class="btn btn-primary" type="submit">Activer l'utilisateur de l'organisation</button>
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue