bgneal@29: {% extends 'bio/base.html' %} bgneal@29: {% block title %}Edit Your Elsewhere Links{% endblock %} bgneal@29: {% block content %} bgneal@29: <h2>Edit Your Elsewhere Links</h2> bgneal@29: <h3>Social Networks</h3> bgneal@29: {% if request.user.social_network_profiles.all %} bgneal@29: <ul> bgneal@29: {% for profile in request.user.social_network_profiles.all %} bgneal@29: <li> bgneal@29: <img src="{{ MEDIA_URL }}elsewhere/{{ profile.icon_name }}" alt="{{ profile.name }}" /> bgneal@29: <a href="{{ profile.url }}" rel="me">{{ profile.name }}</a> bgneal@29: <form id="delete-network-{{ profile.id }}" method="post" action="."> bgneal@29: <input type="hidden" name="delete_id" value="{{ profile.id }}" /> bgneal@29: <input type="submit" name="delete-sn-form" value="Delete" class="button" /> bgneal@29: </form> bgneal@29: </li> bgneal@29: {% endfor %} bgneal@29: </ul> bgneal@29: {% else %} bgneal@29: <p>No social network profiles.</p> bgneal@29: {% endif %} bgneal@29: bgneal@29: <h4>Add a Social Network</h4> bgneal@29: <form method="post" action="."> bgneal@29: {{ sn_form.as_p }} bgneal@29: <p><input type="submit" name="sn-form" value="Add Social Network" class="button" /></p> bgneal@29: </form> bgneal@29: <hr /> bgneal@29: <h3>Instant Messengers</h3> bgneal@29: {% if request.user.instant_messenger_profiles.all %} bgneal@29: <ul> bgneal@29: {% for profile in request.user.instant_messenger_profiles.all %} bgneal@29: <li> bgneal@29: <img src="{{ MEDIA_URL }}elsewhere/{{ profile.icon_name }}" alt="{{ profile.name }}" /> bgneal@29: {{ profile.name }}: <a href="{{ profile.url }}">{{ profile.username }}</a> bgneal@29: <form id="delete-messenger-{{ profile.id }}" method="post" action="."> bgneal@29: <input type="hidden" name="delete_id" value="{{ profile.id }}" /> bgneal@29: <input type="submit" name="delete-im-form" value="Delete" class="button" /> bgneal@29: </form> bgneal@29: </li> bgneal@29: {% endfor %} bgneal@29: </ul> bgneal@29: {% else %} bgneal@29: <p>No instant messenger profiles.</p> bgneal@29: {% endif %} bgneal@29: bgneal@29: <h4>Add an Instant Messenger</h4> bgneal@29: <form method="post" action="."> bgneal@29: {{ im_form.as_p }} bgneal@29: <p><input type="submit" name="im-form" value="Add Instant Messenger" class="button" /></p> bgneal@29: </form> bgneal@29: <hr /> bgneal@29: <h3>Websites</h3> bgneal@29: {% if request.user.website_profiles.all %} bgneal@29: <ul> bgneal@29: {% for profile in request.user.website_profiles.all %} bgneal@29: <li> bgneal@29: <img src="{{ MEDIA_URL }}icons/world.png" alt="{{ profile.name }}" /> bgneal@29: <a href="{{ profile.url }}" rel="me">{{ profile.name }}</a> bgneal@29: <form id="delete-website-{{ profile.id }}" method="post" action="."> bgneal@29: <input type="hidden" name="delete_id" value="{{ profile.id }}" /> bgneal@29: <input type="submit" name="delete-w-form" value="Delete" class="button" /> bgneal@29: </form> bgneal@29: </li> bgneal@29: {% endfor %} bgneal@29: </ul> bgneal@29: {% else %} bgneal@29: <p>No website profiles.</p> bgneal@29: {% endif %} bgneal@29: bgneal@29: <h4>Add a Website</h4> bgneal@29: <form method="post" action="."> bgneal@29: {{ w_form.as_p }} bgneal@29: <p><input type="submit" name="w-form" value="Add Website" class="button" /></p> bgneal@29: </form> bgneal@29: <hr /> bgneal@29: <p><a href="{% url bio-edit_profile %}">Back to Your Profile</a></p> bgneal@29: {% endblock %}