gremmie@1: {% extends 'base.html' %} gremmie@1: {% block title %}News: Send Story to a Friend{% endblock %} gremmie@1: {% block content %} gremmie@1: <h3>Send Story to a Friend</h3> gremmie@1: {% if send_form %} gremmie@1: <p>Would you like to send a link to the story titled <strong>{{ story.title }}</strong> to a friend? gremmie@1: Just fill out the form below and click Send.</p> gremmie@1: <ul> gremmie@1: <li>Your name: {{ user.get_full_name }}</li> gremmie@1: <li>Your email: {{ user.email }}</li> gremmie@1: </ul> bgneal@194: <form action="." method="post">{% csrf_token %} gremmie@1: <table> gremmie@1: {{ send_form.as_table }} gremmie@1: <tr><td> </td><td><input type="submit" value="Send" /> bgneal@4: <a href="{{ story.get_absolute_url }}">Cancel</a> bgneal@4: </td></tr> gremmie@1: </table> gremmie@1: </form> gremmie@1: {% else %} gremmie@1: <p><strong>Thank you for letting your friend know about this story and our site!</strong></p> gremmie@1: <p>An email has been sent to your friend with a link to the story.</p> gremmie@1: {% endif %} gremmie@1: <br /> gremmie@1: {% endblock %}