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