wallabag/templates/Entry/new_form.html.twig

16 lines
716 B
Twig
Raw Normal View History

2022-05-03 23:28:20 +02:00
<form class="input-field nav-panel-item nav-panel-add" style="display: none" name="entry" method="post" action="{{ path('new_entry') }}">
2016-02-12 16:58:30 +01:00
{% if form_errors(form) %}
<span class="black-text">{{ form_errors(form) }}</span>
{% endif %}
<button type="submit" class="nav-form-button" aria-label="add"><i class="material-icons add" aria-hidden="true"></i></button>
2015-08-12 08:22:30 +02:00
2016-02-12 16:58:30 +01:00
{% if form_errors(form.url) %}
<span class="black-text">{{ form_errors(form.url) }}</span>
{% endif %}
2015-08-12 08:22:30 +02:00
2022-05-03 23:28:20 +02:00
{{ form_widget(form.url, {'attr': {'autocomplete': 'off', 'placeholder': 'entry.new.placeholder'}}) }}
<i class="material-icons close" aria-label="clear" role="button"></i>
2015-08-12 08:22:30 +02:00
{{ form_rest(form) }}
2015-08-12 08:22:30 +02:00
</form>