🐛 — Fix duplicated icons on "Search engine" and "new link" forms

This commit is contained in:
Luc Didry 2019-10-09 00:57:08 +02:00
parent afe486531d
commit 652cb58d59
No known key found for this signature in database
GPG key ID: EA868E12D0257E3C
2 changed files with 4 additions and 4 deletions

View file

@ -2,14 +2,14 @@
{% if form_errors(form) %} {% if form_errors(form) %}
<span class="black-text">{{ form_errors(form) }}</span> <span class="black-text">{{ form_errors(form) }}</span>
{% endif %} {% endif %}
<button type="submit" class="nav-form-button"><i class="material-icons add">add</i></button> <button type="submit" class="nav-form-button" aria-label="add"><i class="material-icons add" aria-hidden="true"></i></button>
{% if form_errors(form.url) %} {% if form_errors(form.url) %}
<span class="black-text">{{ form_errors(form.url) }}</span> <span class="black-text">{{ form_errors(form.url) }}</span>
{% endif %} {% endif %}
{{ form_widget(form.url, { 'attr': {'autocomplete': 'off', 'placeholder': 'entry.new.placeholder'} }) }} {{ form_widget(form.url, { 'attr': {'autocomplete': 'off', 'placeholder': 'entry.new.placeholder'} }) }}
<i class="material-icons close">clear</i> <i class="material-icons close" aria-label="clear" role="button"></i>
{{ form_rest(form) }} {{ form_rest(form) }}
</form> </form>

View file

@ -2,7 +2,7 @@
{% if form_errors(form) %} {% if form_errors(form) %}
<span class="black-text">{{ form_errors(form) }}</span> <span class="black-text">{{ form_errors(form) }}</span>
{% endif %} {% endif %}
<button type="submit" class="nav-form-button"><i class="material-icons search">search</i></button> <button type="submit" class="nav-form-button" aria-label="search"><i class="material-icons search" aria-hidden="true"></i></button>
{% if form_errors(form.term) %} {% if form_errors(form.term) %}
<span class="black-text">{{ form_errors(form.term) }}</span> <span class="black-text">{{ form_errors(form.term) }}</span>
@ -11,7 +11,7 @@
<input type="hidden" name="currentRoute" value="{{ currentRoute }}" /> <input type="hidden" name="currentRoute" value="{{ currentRoute }}" />
{{ form_widget(form.term, { 'attr': {'autocomplete': 'off', 'placeholder': 'entry.search.placeholder'} }) }} {{ form_widget(form.term, { 'attr': {'autocomplete': 'off', 'placeholder': 'entry.search.placeholder'} }) }}
<i class="material-icons close">clear</i> <i class="material-icons close" aria-label="clear" role="button"></i>
{{ form_rest(form) }} {{ form_rest(form) }}
</form> </form>