annotate gpp/templates/messages/compose.html @ 97:96eec1ed0fd3

Render the forum page navigation in the view with render_to_string() to avoid doing it twice in the template code. Also undo a mistake in the last commit. Need 2 different orderings for Post objects: by creation date in normal views, and by reverse creation date in the admin.
author Brian Neal <bgneal@gmail.com>
date Sun, 13 Sep 2009 19:58:31 +0000
parents dbd703f7d63a
children c515b7401078
rev   line source
gremmie@1 1 {% extends 'messages/base.html' %}
gremmie@1 2 {% block title %}Messages: Compose{% endblock %}
gremmie@1 3 {% block custom_js %}
gremmie@1 4 {{ compose_form.media }}
gremmie@1 5 {% endblock %}
gremmie@1 6 {% block compose-class %}class="active"{% endblock %}
gremmie@1 7 {% block messages_content %}
gremmie@1 8 <h3>Compose Message</h3>
gremmie@1 9 <form action="." method="post">
gremmie@1 10 <table>
gremmie@1 11 {{ compose_form.as_table }}
gremmie@1 12 <tr>
gremmie@1 13 <td>&nbsp;</td>
gremmie@1 14 <td>
gremmie@1 15 <input type="submit" name="submit_button" value="Send" />
gremmie@1 16 <input type="submit" name="submit_button" value="Cancel" />
gremmie@1 17 </td>
gremmie@1 18 </tr>
gremmie@1 19 </table>
gremmie@1 20 </form>
gremmie@1 21 <br />
gremmie@1 22 {% endblock %}