1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

Implement tagging rules reset

Adding tagging rule reset to templates

Adding messages to tagging rule reset

Adding translation for Traditional and Simplified Chinese
This commit is contained in:
Kevin Jiang 2024-07-07 01:04:28 +12:00 committed by Sicong Jiang
parent f78353910f
commit c65850050d
6 changed files with 34 additions and 2 deletions

View file

@ -640,6 +640,15 @@
<div class="row">
<h5>{{ 'config.reset.title'|trans }}</h5>
<p>{{ 'config.reset.description'|trans }}</p>
{% if app.user.config.taggingRules is not empty %}
<p>
<form action="{{ path('config_reset', {type: 'tagging_rules'}) }}" method="post" onsubmit="return confirm('{{ 'config.reset.confirm'|trans|escape('js') }}')" name="reset-tagging-rules">
<input type="hidden" name="token" value="{{ csrf_token('reset-area') }}" />
<button class="waves-effect waves-light btn red" type="submit">{{ 'config.reset.tagging_rules'|trans }}</button>
</form>
</p>
{% endif %}
<p>
<form action="{{ path('config_reset', {type: 'annotations'}) }}" method="post" onsubmit="return confirm('{{ 'config.reset.confirm'|trans|escape('js') }}')" name="reset-annotations">
<input type="hidden" name="token" value="{{ csrf_token('reset-area') }}" />