remove now unused {% load url from future %}
[mygpo.git] / mygpo / admin / templates / admin / merge-grouping.html
blob94a5c8dae5a60d6e3d8de81748e58c4fd4402d98
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% load podcasts %}
4 {% load episodes %}
6 {% load menu %}
7 {% block mainmenu %}{{ "/admin/"|main_menu }}{% endblock %}
8 {% block sectionmenu %}{{ "/admin/"|section_menu:"Admin" }}{% endblock %}
10 {% block title %}{% trans "Admin Area" %}{% endblock %}
12 {% block header %}
13 <h1>{% trans "Merge Podcasts and Episodes" %}</h1>
15 <p>Merging Podcasts
16 {% for podcast in podcasts %}
17 {% podcast_link podcast %}
18 {% endfor %}
19 </p>
20 {% endblock %}
22 {% block content %}
23 <div class="alert alert-info">
24 {% trans "Episodes that have the same number will be merged. Please verify all your changes by clicking on 'Renew Groups' before starting the Merge." %}
25 </div>
27 <form method="post" action="{% url "admin-merge-process" %}">
28 {% csrf_token %}
30 {% for podcast in podcasts %}
31 <input type="hidden" name="feed{{ forloop.counter0 }}" value="{{ podcast.url }}" />
32 {% endfor %}
34 <table>
35 <tr>
36 <th>#</th>
37 {% for podcast in podcasts %}
38 <th>{% podcast_link podcast %}</th>
39 {% endfor %}
40 </tr>
42 {% for n, episodes in groups %}
43 <tr>
44 <th>{{ n }}</th>
46 {% for podcast in podcasts %}
47 <td>
48 {% for episode in episodes %}
49 {% if episode.podcast == podcast.get_id %}
50 <input type="text" name="episode_{% get_id episode %}" value="{{ n }}" size="2"/>
51 {% episode_link episode podcast %}<br />
52 {% endif %}
53 {% endfor %}
54 </td>
55 {% endfor %}
57 </tr>
58 {% endfor %}
60 <tr>
61 <td></td>
62 <td><input type="submit" name="renew" value="Renew Groups" /></td>
63 <td><input type="submit" name="merge" value="Merge!" /></td>
64 </tr>
66 </table>
67 </form>
70 {% endblock %}