add page to manually add missing podcasts
[mygpo.git] / mygpo / directory / templates / missing.html
blob31cb6371997029fac14cc4f4a73047aea2fdae2b
1 {% extends 'base.html' %}
3 {% load url from future %}
4 {% load i18n %}
5 {% load podcasts %}
6 {% load charts %}
8 {% load menu %}
9 {% block mainmenu %}{{ "/missing/"|main_menu }}{% endblock %}
10 {% block sectionmenu %}{{ "/missing/"|section_menu }}{% endblock %}
12 {% block title %}{% trans "Missing Podcast" %}{% endblock %}
14 {% block header %}
15 <h1>{% trans "Missing Podcast" %}</h1>
16 {% endblock %}
19 {% block content %}
21 <p>{% blocktrans with site as sitename %}If you're missing a podcast on {{ sitename }}, please enter its feed URL here{% endblocktrans %}</p>
24 <form class="form-inline" method="get" action="{% url "missing-podcast" %}" class="search">
25 <div class="input-prepend input-append">
26 <span class="add-on"><i class="icon-search"></i></span><input class="input-xxlarge" type="text" placeholder="Podcast Feed URL" name="q" {% if q %}value="{{ q }}"{% endif %} ><button class="btn btn-primary" type="submit">{% trans "Check" %}</button>
27 </div>
28 </form>
30 {% if q %}
32 {% if podcast %}
34 <p>{% trans "The podcast already exists" %}</p>
35 <div class="result">
36 {{ podcast|podcast_logo }}
37 {% podcast_group_link podcast %}
38 </div>
40 {% else %}
42 {% if can_add %}
44 <form action="{% url "add-podcast" %}" method="post">
45 {% csrf_token %}
46 <input type="hidden" name="url" value="{{ q }}">
47 <button class="btn btn-primary" type="submit">{% trans "Add Podcast" %}</button>
48 </form>
50 {% endif %}
52 {% endif %}
54 {% endif %}
56 {% endblock %}