1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-06-27 16:36:00 +00:00

Extract Fake Radio controller

This commit is contained in:
Yassine Guedidi 2025-03-08 02:26:26 +01:00
parent a06da68e72
commit 1fd861078d
3 changed files with 16 additions and 21 deletions

View file

@ -48,16 +48,16 @@
</div>
</div>
<div class="row">
<div class="row" data-controller="fake-radio">
<div class="input-field col s12">
<label for="{{ edit_form.emailTwoFactor.vars.id }}">
{{ form_widget(edit_form.emailTwoFactor) }}
{{ form_widget(edit_form.emailTwoFactor, {attr: {'data-fake-radio-target': 'emailTwoFactor', 'data-action': 'fake-radio#uncheckGoogle'}}) }}
<span>{{ edit_form.emailTwoFactor.vars.label|trans }}</span>
</label>
</div>
<div class="input-field col s12">
<label for="{{ edit_form.googleTwoFactor.vars.id }}">
{{ form_widget(edit_form.googleTwoFactor) }}
{{ form_widget(edit_form.googleTwoFactor, {attr: {'data-fake-radio-target': 'googleTwoFactor', 'data-action': 'fake-radio#uncheckEmail'}}) }}
<span>{{ edit_form.googleTwoFactor.vars.label|trans }}</span>
</label>
</div>