more adaptations to Bootstrap 3
[mygpo.git] / mygpo / share / templates / lists.html
blobe324ecbb30dcfd0ae5128ffcf16c71cc28141280
1 {% extends "base.html" %}
3 {% load i18n %}
4 {% load podcasts %}
5 {% load charts %}
6 {% load math %}
7 {% load utils %}
9 {% load menu %}
10 {% block mainmenu %}{{ "/share/"|main_menu }}{% endblock %}
11 {% block sectionmenu %}{{ "/share/lists/"|section_menu }}{% endblock %}
13 {% block title %}{% trans "Podcast Lists" %}{% endblock %}
15 {% block header %}
16 <h1>{% trans "Podcast Lists" %}</h1>
17 {% endblock %}
20 {% block content %}
22 <form class="form-inline" action="{% url "list-create" %}" method="post">
23 {% csrf_token %}
25 <table class="list">
26 {% for list in lists %}
27 <tr>
28 <td><a href="{% url "list-show" user.username list.slug %}">{{ list.title }}</a></td>
29 <td>{% blocktrans with list.podcasts|length as num_podcasts %}{{ num_podcasts }} Podcasts{% endblocktrans %}</td>
30 <td>
31 <form action="{% url "list-delete" user.username list.slug %}" method="post">
32 {% csrf_token %}
33 <button class="btn btn-danger btn-sm" type="submit">
34 <i class="icon-trash"></i> {% trans "Delete" %}
35 </button>
36 </form>
37 </td>
38 </tr>
39 {% empty %}
40 <tr>
41 <td colspan="3">{% trans "You don't have any podcast lists yet." %}</td>
42 </tr>
43 {% endfor %}
44 <tr class="nohighlight">
45 <td>
46 <input placeholder="Title" class="form-control input-md" type="text" name="title" />
47 </td>
48 <td></td>
49 <td>
50 <button class="btn btn-success btn-sm" type="submit">
51 <i class="icon-plus"></i>
52 {% trans "Create" %}
53 </button>
54 </td>
55 </tr>
56 </table>
57 </form>
59 <div class="alert alert-info">
60 {% blocktrans %}Podcast Lists are intended to share podcasts about certain topics and are therefore always visible to everyone.{% endblocktrans %}
61 </div>
63 {% endblock %}