Create a dedicated tab to reset data

This commit is contained in:
Jeremy Benoist 2018-12-02 08:54:54 +01:00
parent c6024246b7
commit acd4412080
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
15 changed files with 46 additions and 31 deletions

View file

@ -59,6 +59,7 @@ config:
password: 'Adgangskode'
# rules: 'Tagging rules'
new_user: 'Tilføj bruger'
# reset: 'Reset area'
form:
save: 'Gem'
form_settings:

View file

@ -59,6 +59,7 @@ config:
password: 'Kennwort'
rules: 'Tagging-Regeln'
new_user: 'Benutzer hinzufügen'
reset: 'Zurücksetzen'
form:
save: 'Speichern'
form_settings:

View file

@ -59,6 +59,7 @@ config:
password: 'Password'
rules: 'Tagging rules'
new_user: 'Add a user'
reset: 'Reset area'
form:
save: 'Save'
form_settings:

View file

@ -59,6 +59,7 @@ config:
password: 'Contraseña'
rules: 'Reglas de etiquetado automáticas'
new_user: 'Añadir un usuario'
reset: 'Reiniciar mi cuenta'
form:
save: 'Guardar'
form_settings:

View file

@ -59,6 +59,7 @@ config:
password: 'رمز'
rules: 'برچسب‌گذاری خودکار'
new_user: 'افزودن کاربر'
# reset: 'Reset area'
form:
save: 'ذخیره'
form_settings:

View file

@ -59,6 +59,7 @@ config:
password: "Mot de passe"
rules: "Règles de tag automatiques"
new_user: "Créer un compte"
reset: "Réinitialisation"
form:
save: "Enregistrer"
form_settings:

View file

@ -59,6 +59,7 @@ config:
password: 'Password'
rules: 'Regole di etichettatura'
new_user: 'Aggiungi utente'
reset: 'Area di reset'
form:
save: 'Salva'
form_settings:

View file

@ -59,6 +59,7 @@ config:
password: 'Senhal'
rules: "Règlas d'etiquetas automaticas"
new_user: 'Crear un compte'
reset: 'Zòna de reïnicializacion'
form:
save: 'Enregistrar'
form_settings:

View file

@ -59,6 +59,7 @@ config:
password: 'Hasło'
rules: 'Zasady tagowania'
new_user: 'Dodaj użytkownika'
reset: 'Reset'
form:
save: 'Zapisz'
form_settings:

View file

@ -59,6 +59,7 @@ config:
password: 'Senha'
rules: 'Regras de tags'
new_user: 'Adicionar um usuário'
# reset: 'Reset area'
form:
save: 'Salvar'
form_settings:

View file

@ -59,6 +59,7 @@ config:
password: 'Parolă'
# rules: 'Tagging rules'
new_user: 'Crează un utilizator'
# reset: 'Reset area'
form:
save: 'Salvează'
form_settings:

View file

@ -58,6 +58,7 @@ config:
password: 'Пароль'
rules: 'Правила настройки простановки тегов'
new_user: 'Добавить пользователя'
reset: 'Сброс данных'
form:
save: 'Сохранить'
form_settings:

View file

@ -59,6 +59,7 @@ config:
password: 'รหัสผ่าน'
rules: 'การแท็กข้อบังคับ'
new_user: 'เพิ่มผู้ใช้'
reset: 'รีเซ็ตพื้นที่ '
form:
save: 'บันทึก'
form_settings:

View file

@ -59,6 +59,7 @@ config:
password: 'Şifre'
rules: 'Etiketleme kuralları'
new_user: 'Bir kullanıcı ekle'
# reset: 'Reset area'
form:
save: 'Kaydet'
form_settings:

View file

@ -16,6 +16,7 @@
<li class="tab col s12 m6 l3"><a href="#set3">{{ 'config.tab_menu.user_info'|trans }}</a></li>
<li class="tab col s12 m6 l3"><a href="#set4">{{ 'config.tab_menu.password'|trans }}</a></li>
<li class="tab col s12 m6 l3"><a href="#set5">{{ 'config.tab_menu.rules'|trans }}</a></li>
<li class="tab col s12 m6 l3"><a href="#set6">{{ 'config.tab_menu.reset'|trans }}</a></li>
</ul>
</div>
@ -218,37 +219,6 @@
{{ form_widget(form.user.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
{{ form_widget(form.user._token) }}
</form>
<br /><hr /><br />
<div class="row">
<h5>{{ 'config.reset.title'|trans }}</h5>
<p>{{ 'config.reset.description'|trans }}</p>
<a href="{{ path('config_reset', { type: 'annotations'}) }}" onclick="return confirm('{{ 'config.reset.confirm'|trans|escape('js') }}')" class="waves-effect waves-light btn red">
{{ 'config.reset.annotations'|trans }}
</a>
<a href="{{ path('config_reset', { type: 'tags'}) }}" onclick="return confirm('{{ 'config.reset.confirm'|trans|escape('js') }}')" class="waves-effect waves-light btn red">
{{ 'config.reset.tags'|trans }}
</a>
<a href="{{ path('config_reset', { type: 'archived'}) }}" onclick="return confirm('{{ 'config.reset.confirm'|trans|escape('js') }}')" class="waves-effect waves-light btn red">
{{ 'config.reset.archived'|trans }}
</a>
<a href="{{ path('config_reset', { type: 'entries'}) }}" onclick="return confirm('{{ 'config.reset.confirm'|trans|escape('js') }}')" class="waves-effect waves-light btn red">
{{ 'config.reset.entries'|trans }}
</a>
</div>
{% if enabled_users > 1 %}
<br /><hr /><br />
<div class="row">
<h5>{{ 'config.form_user.delete.title'|trans }}</h5>
<p>{{ 'config.form_user.delete.description'|trans }}</p>
<a href="{{ path('delete_account') }}" onclick="return confirm('{{ 'config.form_user.delete.confirm'|trans|escape('js') }}')" class="waves-effect waves-light btn red delete-account">
{{ 'config.form_user.delete.button'|trans }}
</a>
</div>
{% endif %}
</div>
<div id="set4" class="col s12">
@ -422,6 +392,37 @@
</div>
</div>
</div>
<div id="set6" class="col s12">
<div class="row">
<h5>{{ 'config.reset.title'|trans }}</h5>
<p>{{ 'config.reset.description'|trans }}</p>
<a href="{{ path('config_reset', { type: 'annotations'}) }}" onclick="return confirm('{{ 'config.reset.confirm'|trans|escape('js') }}')" class="waves-effect waves-light btn red">
{{ 'config.reset.annotations'|trans }}
</a>
<a href="{{ path('config_reset', { type: 'tags'}) }}" onclick="return confirm('{{ 'config.reset.confirm'|trans|escape('js') }}')" class="waves-effect waves-light btn red">
{{ 'config.reset.tags'|trans }}
</a>
<a href="{{ path('config_reset', { type: 'archived'}) }}" onclick="return confirm('{{ 'config.reset.confirm'|trans|escape('js') }}')" class="waves-effect waves-light btn red">
{{ 'config.reset.archived'|trans }}
</a>
<a href="{{ path('config_reset', { type: 'entries'}) }}" onclick="return confirm('{{ 'config.reset.confirm'|trans|escape('js') }}')" class="waves-effect waves-light btn red">
{{ 'config.reset.entries'|trans }}
</a>
</div>
{% if enabled_users > 1 %}
<br /><hr /><br />
<div class="row">
<h5>{{ 'config.form_user.delete.title'|trans }}</h5>
<p>{{ 'config.form_user.delete.description'|trans }}</p>
<a href="{{ path('delete_account') }}" onclick="return confirm('{{ 'config.form_user.delete.confirm'|trans|escape('js') }}')" class="waves-effect waves-light btn red delete-account">
{{ 'config.form_user.delete.button'|trans }}
</a>
</div>
{% endif %}
</div>
</div>
</div>