wallabag/templates/Entry/new_form.html.twig

16 lines
716 B
Twig
Raw Normal View History

2022-05-03 21:28:20 +00: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 15:58:30 +00: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 06:22:30 +00:00
2016-02-12 15:58:30 +00:00
{% if form_errors(form.url) %}
<span class="black-text">{{ form_errors(form.url) }}</span>
{% endif %}
2015-08-12 06:22:30 +00:00
2022-05-03 21:28:20 +00: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 06:22:30 +00:00
{{ form_rest(form) }}
2015-08-12 06:22:30 +00:00
</form>