annotate gpp/templates/forums/mod_split_topic.html @ 291:a6357f2bcbbc

Added a legacy command to import old news stories.
author Brian Neal <bgneal@gmail.com>
date Fri, 24 Dec 2010 20:45:33 +0000
parents 593fb6dbd449
children 88b2b9cb8c1f
rev   line source
bgneal@119 1 {% extends 'base.html' %}
bgneal@283 2 {% load forum_tags %}
bgneal@119 3 {% block title %}Forums: Split Topic{% endblock %}
bgneal@119 4 {% block custom_js %}{{ form.media }}{% endblock %}
bgneal@119 5 {% block content %}
bgneal@283 6 {% forum_navigation topic "Split Topic" %}
bgneal@119 7
bgneal@119 8 <div class="forum-block">
bgneal@119 9 <p>
bgneal@119 10 Using the form below, you can split a topic into two. You can either specify which posts get
bgneal@119 11 split to the new topic ("Split Selected Posts"), or by selecting a post such that all posts
bgneal@119 12 at or below the selection get split ("Split At Selected Post").
bgneal@119 13 <p>
bgneal@194 14 <form action="." method="post">{% csrf_token %}
bgneal@119 15 <table>
bgneal@119 16 {{ form.as_table }}
bgneal@119 17 <tr><td>&nbsp;</td><td>
bgneal@119 18 <input type="submit" name="split-selected" value="Split Selected Posts" />
bgneal@119 19 <input type="submit" name="split-at" value="Split At Selected Post" /></td></tr>
bgneal@119 20 </table>
bgneal@119 21
bgneal@119 22 <table class="forum-topic" id="forum-topic">
bgneal@119 23 {% for post in posts %}
bgneal@119 24 <tr class="forum-post {% cycle 'odd' 'even' %}" id="post-{{ post.id }}">
bgneal@119 25 <td class="forum-post-author">{{ post.user.username }}</td>
bgneal@119 26 <td class="forum-post-body">
bgneal@119 27 <div class="forum-post-info quiet">
bgneal@119 28 <a href="{{ post.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Link" title="Link to this post" /></a>
bgneal@119 29 Posted on {{ post.creation_date|date:"M d, Y H:i" }} from IP: {{ post.user_ip }}
bgneal@119 30 </div>
bgneal@119 31 <div class="forum-post-body-split">
bgneal@119 32 {{ post.html|safe }}
bgneal@119 33 </div>
bgneal@119 34 </td>
bgneal@119 35 <td class="forum-post-split-check">
bgneal@119 36 {% if not forloop.first %}
bgneal@119 37 <input type="checkbox" name="post_ids" value="{{ post.id }}" />
bgneal@119 38 {% endif %}
bgneal@119 39 </td>
bgneal@119 40 </tr>
bgneal@119 41 {% endfor %}
bgneal@119 42 </table>
bgneal@119 43 </form>
bgneal@119 44 </div>
bgneal@119 45 {% endblock %}