bgneal@119: {% extends 'base.html' %} bgneal@119: {% block title %}Forums: Split Topic{% endblock %} bgneal@119: {% block custom_js %}{{ form.media }}{% endblock %} bgneal@119: {% block content %} bgneal@119: <h2>Forums: Split Topic {{ topic.name }}</h2> bgneal@119: bgneal@119: <h3> bgneal@119: <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> » bgneal@119: <a href="{% url forums-forum_index slug=forum.slug %}">{{ forum.name }}</a> » bgneal@119: <a href="{% url forums-topic_index id=topic.id %}">{{ topic.name }}</a> bgneal@119: </h3> bgneal@119: bgneal@119: <div class="forum-block"> bgneal@119: <p> bgneal@119: Using the form below, you can split a topic into two. You can either specify which posts get bgneal@119: split to the new topic ("Split Selected Posts"), or by selecting a post such that all posts bgneal@119: at or below the selection get split ("Split At Selected Post"). bgneal@119: <p> bgneal@119: <form action="." method="post"> bgneal@119: <table> bgneal@119: {{ form.as_table }} bgneal@119: <tr><td> </td><td> bgneal@119: <input type="submit" name="split-selected" value="Split Selected Posts" /> bgneal@119: <input type="submit" name="split-at" value="Split At Selected Post" /></td></tr> bgneal@119: </table> bgneal@119: bgneal@119: <table class="forum-topic" id="forum-topic"> bgneal@119: {% for post in posts %} bgneal@119: <tr class="forum-post {% cycle 'odd' 'even' %}" id="post-{{ post.id }}"> bgneal@119: <td class="forum-post-author">{{ post.user.username }}</td> bgneal@119: <td class="forum-post-body"> bgneal@119: <div class="forum-post-info quiet"> bgneal@119: <a href="{{ post.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Link" title="Link to this post" /></a> bgneal@119: Posted on {{ post.creation_date|date:"M d, Y H:i" }} from IP: {{ post.user_ip }} bgneal@119: </div> bgneal@119: <div class="forum-post-body-split"> bgneal@119: {{ post.html|safe }} bgneal@119: </div> bgneal@119: </td> bgneal@119: <td class="forum-post-split-check"> bgneal@119: {% if not forloop.first %} bgneal@119: <input type="checkbox" name="post_ids" value="{{ post.id }}" /> bgneal@119: {% endif %} bgneal@119: </td> bgneal@119: </tr> bgneal@119: {% endfor %} bgneal@119: </table> bgneal@119: </form> bgneal@119: </div> bgneal@119: {% endblock %}