From 50718a51de2f95a8f4909ba464b44c4228c700ad Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sat, 27 Jun 2020 10:59:15 +0200 Subject: chg: [template] Minor improvements and fixed to the edit_feed.html template. --- newspipe/templates/edit_feed.html | 61 ++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 36 deletions(-) diff --git a/newspipe/templates/edit_feed.html b/newspipe/templates/edit_feed.html index 8d3cec4a..41e929aa 100644 --- a/newspipe/templates/edit_feed.html +++ b/newspipe/templates/edit_feed.html @@ -5,64 +5,53 @@
{{ form.hidden_tag() }}

Enter the URL of the website or the URL of the feed (RSS/ATOM).

-
+
-
- {{ form.site_link(class_="form-control", size="100%") }} -
+ {{ form.site_link(class_="form-control", size="100%") }} {% for error in form.site_link.errors %} {{ error }}
{% endfor %}
-
- {{ form.link(class_="form-control", size="100%") }} -
+ {{ form.link(class_="form-control", size="100%") }} {% for error in form.link.errors %} {{ error }}
{% endfor %}
-
-
-
+
{{ form.submit(class_="btn btn-primary") }}

-
- -
+
+
+ {{ form.title(class_="form-control", size="100%", placeholder=_('Will be retrieved automatically but you can specify a custom title.')) }} + {% for error in form.title.errors %} {{ error }}
{% endfor %}
- {% for error in form.title.errors %} {{ error }}
{% endfor %} -
- -
- -
+
+ {{ form.category_id(class_="form-control", placeholder=_('Optional')) }} + {% for error in form.category_id.errors %} {{ error }}
{% endfor %}
- {% for error in form.category_id.errors %} {{ error }}
{% endfor %}
-
-
+
+ +
+
-
- {{ form.enabled(class_="form-check-input", style="margin-left: 0px;") }} -
- {{ _("If unchecked, this feed won't be retrieved by the aggregator.") }} -
+ {{ form.enabled(class_="form-check-input", style="margin-left: 0px;") }} +
+ {{ _("If unchecked, this feed won't be retrieved by the aggregator.") }}
-
+
-
- {{ form.private(class_="form-check-input", style="margin-left: 0px;") }} -
- {{ _("If checked, this feed won't be listed on your profile page.", url=url_for('user.profile_public', nickname=current_user.nickname) ) }} - {{ _("Check this box if there is a private token in the link of the feed.") }} -
+ {{ form.private(class_="form-check-input", style="margin-left: 0px;") }} +
+ {{ _("If checked, this feed won't be listed on your profile page.", url=url_for('user.profile_public', nickname=current_user.nickname) ) }} + {{ _("Check this box if there is a private token in the link of the feed.") }}
@@ -113,9 +102,9 @@ {% endfor %} {% endif %}
- +
- +
{{ form.submit(class_="btn btn-primary") }} -- cgit