Mercurial > public > sg101
comparison gpp/templates/forums/mod_split_topic.html @ 119:b8f1dcc9fae4
Forgot to commit the template for the forums split topic view.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 24 Oct 2009 02:39:54 +0000 |
parents | |
children | 6a5549c2efb5 |
comparison
equal
deleted
inserted
replaced
118:a20b2c492d55 | 119:b8f1dcc9fae4 |
---|---|
1 {% extends 'base.html' %} | |
2 {% block title %}Forums: Split Topic{% endblock %} | |
3 {% block custom_js %}{{ form.media }}{% endblock %} | |
4 {% block content %} | |
5 <h2>Forums: Split Topic {{ topic.name }}</h2> | |
6 | |
7 <h3> | |
8 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> » | |
9 <a href="{% url forums-forum_index slug=forum.slug %}">{{ forum.name }}</a> » | |
10 <a href="{% url forums-topic_index id=topic.id %}">{{ topic.name }}</a> | |
11 </h3> | |
12 | |
13 <div class="forum-block"> | |
14 <p> | |
15 Using the form below, you can split a topic into two. You can either specify which posts get | |
16 split to the new topic ("Split Selected Posts"), or by selecting a post such that all posts | |
17 at or below the selection get split ("Split At Selected Post"). | |
18 <p> | |
19 <form action="." method="post"> | |
20 <table> | |
21 {{ form.as_table }} | |
22 <tr><td> </td><td> | |
23 <input type="submit" name="split-selected" value="Split Selected Posts" /> | |
24 <input type="submit" name="split-at" value="Split At Selected Post" /></td></tr> | |
25 </table> | |
26 | |
27 <table class="forum-topic" id="forum-topic"> | |
28 {% for post in posts %} | |
29 <tr class="forum-post {% cycle 'odd' 'even' %}" id="post-{{ post.id }}"> | |
30 <td class="forum-post-author">{{ post.user.username }}</td> | |
31 <td class="forum-post-body"> | |
32 <div class="forum-post-info quiet"> | |
33 <a href="{{ post.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Link" title="Link to this post" /></a> | |
34 Posted on {{ post.creation_date|date:"M d, Y H:i" }} from IP: {{ post.user_ip }} | |
35 </div> | |
36 <div class="forum-post-body-split"> | |
37 {{ post.html|safe }} | |
38 </div> | |
39 </td> | |
40 <td class="forum-post-split-check"> | |
41 {% if not forloop.first %} | |
42 <input type="checkbox" name="post_ids" value="{{ post.id }}" /> | |
43 {% endif %} | |
44 </td> | |
45 </tr> | |
46 {% endfor %} | |
47 </table> | |
48 </form> | |
49 </div> | |
50 {% endblock %} |