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 <form method="post" action=".">
|
bgneal@137
|
24 <fieldset>
|
bgneal@137
|
25 <legend>Add a Social Network</legend>
|
bgneal@29
|
26 {{ sn_form.as_p }}
|
bgneal@137
|
27 <p>For MySpace, you must enter your
|
bgneal@137
|
28 <a href="http://faq.myspace.com/app/answers/detail/a_id/278" target="_blank">Myspace Friend ID</a>
|
bgneal@137
|
29 in the <i>Username</i> box.</p>
|
bgneal@29
|
30 <p><input type="submit" name="sn-form" value="Add Social Network" class="button" /></p>
|
bgneal@137
|
31 </fieldset>
|
bgneal@29
|
32 </form>
|
bgneal@29
|
33 <hr />
|
bgneal@29
|
34 <h3>Instant Messengers</h3>
|
bgneal@29
|
35 {% if request.user.instant_messenger_profiles.all %}
|
bgneal@29
|
36 <ul>
|
bgneal@29
|
37 {% for profile in request.user.instant_messenger_profiles.all %}
|
bgneal@29
|
38 <li>
|
bgneal@29
|
39 <img src="{{ MEDIA_URL }}elsewhere/{{ profile.icon_name }}" alt="{{ profile.name }}" />
|
bgneal@29
|
40 {{ profile.name }}: <a href="{{ profile.url }}">{{ profile.username }}</a>
|
bgneal@29
|
41 <form id="delete-messenger-{{ profile.id }}" method="post" action=".">
|
bgneal@29
|
42 <input type="hidden" name="delete_id" value="{{ profile.id }}" />
|
bgneal@29
|
43 <input type="submit" name="delete-im-form" value="Delete" class="button" />
|
bgneal@29
|
44 </form>
|
bgneal@29
|
45 </li>
|
bgneal@29
|
46 {% endfor %}
|
bgneal@29
|
47 </ul>
|
bgneal@29
|
48 {% else %}
|
bgneal@29
|
49 <p>No instant messenger profiles.</p>
|
bgneal@29
|
50 {% endif %}
|
bgneal@29
|
51
|
bgneal@29
|
52 <form method="post" action=".">
|
bgneal@137
|
53 <fieldset>
|
bgneal@137
|
54 <legend>Add an Instant Messenger</legend>
|
bgneal@29
|
55 {{ im_form.as_p }}
|
bgneal@29
|
56 <p><input type="submit" name="im-form" value="Add Instant Messenger" class="button" /></p>
|
bgneal@137
|
57 </fieldset>
|
bgneal@29
|
58 </form>
|
bgneal@29
|
59 <hr />
|
bgneal@29
|
60 <h3>Websites</h3>
|
bgneal@29
|
61 {% if request.user.website_profiles.all %}
|
bgneal@29
|
62 <ul>
|
bgneal@29
|
63 {% for profile in request.user.website_profiles.all %}
|
bgneal@29
|
64 <li>
|
bgneal@29
|
65 <img src="{{ MEDIA_URL }}icons/world.png" alt="{{ profile.name }}" />
|
bgneal@29
|
66 <a href="{{ profile.url }}" rel="me">{{ profile.name }}</a>
|
bgneal@29
|
67 <form id="delete-website-{{ profile.id }}" method="post" action=".">
|
bgneal@29
|
68 <input type="hidden" name="delete_id" value="{{ profile.id }}" />
|
bgneal@29
|
69 <input type="submit" name="delete-w-form" value="Delete" class="button" />
|
bgneal@29
|
70 </form>
|
bgneal@29
|
71 </li>
|
bgneal@29
|
72 {% endfor %}
|
bgneal@29
|
73 </ul>
|
bgneal@29
|
74 {% else %}
|
bgneal@29
|
75 <p>No website profiles.</p>
|
bgneal@29
|
76 {% endif %}
|
bgneal@29
|
77
|
bgneal@29
|
78 <form method="post" action=".">
|
bgneal@137
|
79 <fieldset>
|
bgneal@137
|
80 <legend>Add a Website</legend>
|
bgneal@29
|
81 {{ w_form.as_p }}
|
bgneal@29
|
82 <p><input type="submit" name="w-form" value="Add Website" class="button" /></p>
|
bgneal@137
|
83 </fieldset>
|
bgneal@29
|
84 </form>
|
bgneal@29
|
85 <hr />
|
bgneal@29
|
86 <p><a href="{% url bio-edit_profile %}">Back to Your Profile</a></p>
|
bgneal@29
|
87 {% endblock %}
|