Extract Shortcuts controller

This commit is contained in:
Yassine Guedidi
2025-03-09 00:13:58 +01:00
parent 7eaaf5d38c
commit 8b0e6319e4
9 changed files with 113 additions and 63 deletions

View File

@ -11,7 +11,7 @@
<input type="hidden" name="currentRoute" value="{{ currentRoute }}" />
{{ form_widget(form.term, {'attr': {'autocomplete': 'off', 'placeholder': 'entry.search.placeholder', 'data-topbar-target': 'searchInput'}}) }}
<i class="material-icons close" aria-label="clear" role="button" data-action="click->topbar#showActions"></i>
<i class="material-icons close" aria-label="clear" role="button" data-action="click->topbar#showActions" data-shortcuts-target="showActions"></i>
{{ form_rest(form) }}
</form>