Added check if there is only one user

Added translations and documentation
This commit is contained in:
Nicolas Lœuillet
2016-09-08 14:07:36 +02:00
committed by Jeremy Benoist
parent abb5291cd5
commit bb0c78f4a6
17 changed files with 50 additions and 1 deletions

View File

@ -148,6 +148,9 @@
{{ form_widget(form.user._token) }}
{{ form_widget(form.user.save) }}
{% if enabled_users > 1 %}
<a class='btn red' href='{{ path('delete_account') }}'>{{ 'config.form_user.delete_account' | trans }}</a>
{% endif %}
</form>
<h2>{{ 'config.tab_menu.password'|trans }}</h2>

View File

@ -167,7 +167,10 @@
{{ form_widget(form.user.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
{{ form_widget(form.user._token) }}
</form>
<a class='btn red' href='{{ path('delete_account') }}'>{{ 'config.user.delete_account' | trans }}</a>
{% if enabled_users > 1 %}
<a class='btn red' href='{{ path('delete_account') }}'>{{ 'config.form_user.delete_account' | trans }}</a>
{% endif %}
</div>
<div id="set4" class="col s12">