Mercurial > public > sg101
annotate gpp/templates/news/send_story.html @ 5:63696b279e35
Display news links and send to friend on the summary page. Use icons.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 11 Apr 2009 19:45:17 +0000 |
parents | 9a8801fa63d5 |
children | 6a5549c2efb5 |
rev | line source |
---|---|
gremmie@1 | 1 {% extends 'base.html' %} |
gremmie@1 | 2 {% block title %}News: Send Story to a Friend{% endblock %} |
gremmie@1 | 3 {% block content %} |
gremmie@1 | 4 <h3>Send Story to a Friend</h3> |
gremmie@1 | 5 {% if send_form %} |
gremmie@1 | 6 <p>Would you like to send a link to the story titled <strong>{{ story.title }}</strong> to a friend? |
gremmie@1 | 7 Just fill out the form below and click Send.</p> |
gremmie@1 | 8 <ul> |
gremmie@1 | 9 <li>Your name: {{ user.get_full_name }}</li> |
gremmie@1 | 10 <li>Your email: {{ user.email }}</li> |
gremmie@1 | 11 </ul> |
gremmie@1 | 12 <form action="." method="post"> |
gremmie@1 | 13 <table> |
gremmie@1 | 14 {{ send_form.as_table }} |
gremmie@1 | 15 <tr><td> </td><td><input type="submit" value="Send" /> |
bgneal@4 | 16 <a href="{{ story.get_absolute_url }}">Cancel</a> |
bgneal@4 | 17 </td></tr> |
gremmie@1 | 18 </table> |
gremmie@1 | 19 </form> |
gremmie@1 | 20 {% else %} |
gremmie@1 | 21 <p><strong>Thank you for letting your friend know about this story and our site!</strong></p> |
gremmie@1 | 22 <p>An email has been sent to your friend with a link to the story.</p> |
gremmie@1 | 23 {% endif %} |
gremmie@1 | 24 <br /> |
gremmie@1 | 25 {% endblock %} |