Mercurial > public > sg101
diff gpp/templates/bio/edit_elsewhere.html @ 29:74f04122295e
Initial integration of django-elsewhere.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 03 May 2009 20:14:04 +0000 |
parents | |
children | c7d75cdfea21 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gpp/templates/bio/edit_elsewhere.html Sun May 03 20:14:04 2009 +0000 @@ -0,0 +1,78 @@ +{% extends 'bio/base.html' %} +{% block title %}Edit Your Elsewhere Links{% endblock %} +{% block content %} +<h2>Edit Your Elsewhere Links</h2> +<h3>Social Networks</h3> +{% if request.user.social_network_profiles.all %} + <ul> + {% for profile in request.user.social_network_profiles.all %} + <li> + <img src="{{ MEDIA_URL }}elsewhere/{{ profile.icon_name }}" alt="{{ profile.name }}" /> + <a href="{{ profile.url }}" rel="me">{{ profile.name }}</a> + <form id="delete-network-{{ profile.id }}" method="post" action="."> + <input type="hidden" name="delete_id" value="{{ profile.id }}" /> + <input type="submit" name="delete-sn-form" value="Delete" class="button" /> + </form> + </li> + {% endfor %} + </ul> +{% else %} + <p>No social network profiles.</p> +{% endif %} + +<h4>Add a Social Network</h4> +<form method="post" action="."> + {{ sn_form.as_p }} + <p><input type="submit" name="sn-form" value="Add Social Network" class="button" /></p> +</form> +<hr /> +<h3>Instant Messengers</h3> +{% if request.user.instant_messenger_profiles.all %} + <ul> + {% for profile in request.user.instant_messenger_profiles.all %} + <li> + <img src="{{ MEDIA_URL }}elsewhere/{{ profile.icon_name }}" alt="{{ profile.name }}" /> + {{ profile.name }}: <a href="{{ profile.url }}">{{ profile.username }}</a> + <form id="delete-messenger-{{ profile.id }}" method="post" action="."> + <input type="hidden" name="delete_id" value="{{ profile.id }}" /> + <input type="submit" name="delete-im-form" value="Delete" class="button" /> + </form> + </li> + {% endfor %} + </ul> +{% else %} + <p>No instant messenger profiles.</p> +{% endif %} + +<h4>Add an Instant Messenger</h4> +<form method="post" action="."> + {{ im_form.as_p }} + <p><input type="submit" name="im-form" value="Add Instant Messenger" class="button" /></p> +</form> +<hr /> +<h3>Websites</h3> +{% if request.user.website_profiles.all %} + <ul> + {% for profile in request.user.website_profiles.all %} + <li> + <img src="{{ MEDIA_URL }}icons/world.png" alt="{{ profile.name }}" /> + <a href="{{ profile.url }}" rel="me">{{ profile.name }}</a> + <form id="delete-website-{{ profile.id }}" method="post" action="."> + <input type="hidden" name="delete_id" value="{{ profile.id }}" /> + <input type="submit" name="delete-w-form" value="Delete" class="button" /> + </form> + </li> + {% endfor %} + </ul> +{% else %} + <p>No website profiles.</p> +{% endif %} + +<h4>Add a Website</h4> +<form method="post" action="."> + {{ w_form.as_p }} + <p><input type="submit" name="w-form" value="Add Website" class="button" /></p> +</form> +<hr /> +<p><a href="{% url bio-edit_profile %}">Back to Your Profile</a></p> +{% endblock %}