{% extends "layout.html" %} {% block content %}

{{ action }}

{{ form.hidden_tag() }}
{{ form.href(class_="form-control", size="100%") }}
{% for error in form.href.errors %} {{ error }}
{% endfor %}
{{ form.title(class_="form-control", size="100%") }}
{% for error in form.title.errors %} {{ error }}
{% endfor %}
{{ form.description(class_="form-control", size="100%") }}
{% for error in form.description.errors %} {{ error }}
{% endfor %}
{{ form.tags(class_="form-control", size="100%") }}
{% for error in form.tags.errors %} {{ error }}
{% endfor %}
{{ form.shared(class_="checkbox", style="margin-left: 0px;") }}
{{ form.to_read(class_="checkbox", style="margin-left: 0px;") }}
{{ form.submit(class_="btn btn-default") }}
{% if action == _('Add a new bookmark') %}

{{ _('You can add a bookmark with a bookmarklet. Drag the following button to your browser bookmarks.') }}

{{ _('Bookmark this page using Newspipe', bookmarklet='javascript:window.location="%s?href="+encodeURIComponent(document.location)+"&title="+document.title' % url_for('bookmark.bookmarklet', _external=True)) }}

{{ _('Import bookmarks from Pinboard') }} (*.json)


{% endif %}
{% endblock %}