annotate gpp/templates/bio/edit_elsewhere.html @ 88:3abf0b045749

Updates to base template. Added a link to forums. Display username in header if logged in.
author Brian Neal <bgneal@gmail.com>
date Sat, 12 Sep 2009 18:51:55 +0000
parents 74f04122295e
children c7d75cdfea21
rev   line source
bgneal@29 1 {% extends 'bio/base.html' %}
bgneal@29 2 {% block title %}Edit Your Elsewhere Links{% endblock %}
bgneal@29 3 {% block content %}
bgneal@29 4 <h2>Edit Your Elsewhere Links</h2>
bgneal@29 5 <h3>Social Networks</h3>
bgneal@29 6 {% if request.user.social_network_profiles.all %}
bgneal@29 7 <ul>
bgneal@29 8 {% for profile in request.user.social_network_profiles.all %}
bgneal@29 9 <li>
bgneal@29 10 <img src="{{ MEDIA_URL }}elsewhere/{{ profile.icon_name }}" alt="{{ profile.name }}" />
bgneal@29 11 <a href="{{ profile.url }}" rel="me">{{ profile.name }}</a>
bgneal@29 12 <form id="delete-network-{{ profile.id }}" method="post" action=".">
bgneal@29 13 <input type="hidden" name="delete_id" value="{{ profile.id }}" />
bgneal@29 14 <input type="submit" name="delete-sn-form" value="Delete" class="button" />
bgneal@29 15 </form>
bgneal@29 16 </li>
bgneal@29 17 {% endfor %}
bgneal@29 18 </ul>
bgneal@29 19 {% else %}
bgneal@29 20 <p>No social network profiles.</p>
bgneal@29 21 {% endif %}
bgneal@29 22
bgneal@29 23 <h4>Add a Social Network</h4>
bgneal@29 24 <form method="post" action=".">
bgneal@29 25 {{ sn_form.as_p }}
bgneal@29 26 <p><input type="submit" name="sn-form" value="Add Social Network" class="button" /></p>
bgneal@29 27 </form>
bgneal@29 28 <hr />
bgneal@29 29 <h3>Instant Messengers</h3>
bgneal@29 30 {% if request.user.instant_messenger_profiles.all %}
bgneal@29 31 <ul>
bgneal@29 32 {% for profile in request.user.instant_messenger_profiles.all %}
bgneal@29 33 <li>
bgneal@29 34 <img src="{{ MEDIA_URL }}elsewhere/{{ profile.icon_name }}" alt="{{ profile.name }}" />
bgneal@29 35 {{ profile.name }}: <a href="{{ profile.url }}">{{ profile.username }}</a>
bgneal@29 36 <form id="delete-messenger-{{ profile.id }}" method="post" action=".">
bgneal@29 37 <input type="hidden" name="delete_id" value="{{ profile.id }}" />
bgneal@29 38 <input type="submit" name="delete-im-form" value="Delete" class="button" />
bgneal@29 39 </form>
bgneal@29 40 </li>
bgneal@29 41 {% endfor %}
bgneal@29 42 </ul>
bgneal@29 43 {% else %}
bgneal@29 44 <p>No instant messenger profiles.</p>
bgneal@29 45 {% endif %}
bgneal@29 46
bgneal@29 47 <h4>Add an Instant Messenger</h4>
bgneal@29 48 <form method="post" action=".">
bgneal@29 49 {{ im_form.as_p }}
bgneal@29 50 <p><input type="submit" name="im-form" value="Add Instant Messenger" class="button" /></p>
bgneal@29 51 </form>
bgneal@29 52 <hr />
bgneal@29 53 <h3>Websites</h3>
bgneal@29 54 {% if request.user.website_profiles.all %}
bgneal@29 55 <ul>
bgneal@29 56 {% for profile in request.user.website_profiles.all %}
bgneal@29 57 <li>
bgneal@29 58 <img src="{{ MEDIA_URL }}icons/world.png" alt="{{ profile.name }}" />
bgneal@29 59 <a href="{{ profile.url }}" rel="me">{{ profile.name }}</a>
bgneal@29 60 <form id="delete-website-{{ profile.id }}" method="post" action=".">
bgneal@29 61 <input type="hidden" name="delete_id" value="{{ profile.id }}" />
bgneal@29 62 <input type="submit" name="delete-w-form" value="Delete" class="button" />
bgneal@29 63 </form>
bgneal@29 64 </li>
bgneal@29 65 {% endfor %}
bgneal@29 66 </ul>
bgneal@29 67 {% else %}
bgneal@29 68 <p>No website profiles.</p>
bgneal@29 69 {% endif %}
bgneal@29 70
bgneal@29 71 <h4>Add a Website</h4>
bgneal@29 72 <form method="post" action=".">
bgneal@29 73 {{ w_form.as_p }}
bgneal@29 74 <p><input type="submit" name="w-form" value="Add Website" class="button" /></p>
bgneal@29 75 </form>
bgneal@29 76 <hr />
bgneal@29 77 <p><a href="{% url bio-edit_profile %}">Back to Your Profile</a></p>
bgneal@29 78 {% endblock %}