summaryrefslogtreecommitdiff
path: root/djangoproject/templates/aggregator/edit-feed.html
blob: 715531d4e407520a6a33033424a1446164bd3650 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{% extends "base_community.html" %}
{% load i18n %}

{% block content %}
  <h1>{% translate "Community" %}</h1>

  {% if adding %}
    <h2 class="deck">{% blocktranslate with type=feed_type %}Add a {{ type }} feed:{% endblocktranslate %}</h2>
  {% else %}
    <h2 class="deck">{% blocktranslate %}Edit {{ feed }}:{% endblocktranslate %}</h2>
  {% endif %}

  <form method="POST" action="" id="add_feed_form" class="wide form-input">
    {% csrf_token %}
    {% for field in form %}
      <p>
        {% if field.errors %}
          <p class="errors">{{ field.errors.as_text }}</p>
        {% endif %}
        {{ field }}
      </p>
    {% endfor %}
    {% if adding %}
      <p class="submit"><input class="cta" type="submit" value="{% translate "Add Feed" %}"></p>
    {% else %}
      <p class="submit"><input class="cta" type="submit" value="{% translate "Save" %}"></p>
    {% endif %}
  </form>

{% endblock %}