bgneal@29
|
1 {% extends 'bio/base.html' %}
|
bgneal@310
|
2 {% load url from future %}
|
bgneal@29
|
3 {% block title %}Edit Your Elsewhere Links{% endblock %}
|
bgneal@29
|
4 {% block content %}
|
bgneal@29
|
5 <h2>Edit Your Elsewhere Links</h2>
|
bgneal@29
|
6 <h3>Social Networks</h3>
|
bgneal@29
|
7 {% if request.user.social_network_profiles.all %}
|
bgneal@29
|
8 <ul>
|
bgneal@29
|
9 {% for profile in request.user.social_network_profiles.all %}
|
bgneal@29
|
10 <li>
|
bgneal@312
|
11 <img src="{{ STATIC_URL }}elsewhere/{{ profile.icon_name }}" alt="{{ profile.name }}" />
|
bgneal@29
|
12 <a href="{{ profile.url }}" rel="me">{{ profile.name }}</a>
|
bgneal@194
|
13 <form id="delete-network-{{ profile.id }}" method="post" action=".">{% csrf_token %}
|
bgneal@29
|
14 <input type="hidden" name="delete_id" value="{{ profile.id }}" />
|
bgneal@29
|
15 <input type="submit" name="delete-sn-form" value="Delete" class="button" />
|
bgneal@29
|
16 </form>
|
bgneal@29
|
17 </li>
|
bgneal@29
|
18 {% endfor %}
|
bgneal@29
|
19 </ul>
|
bgneal@29
|
20 {% else %}
|
bgneal@29
|
21 <p>No social network profiles.</p>
|
bgneal@29
|
22 {% endif %}
|
bgneal@29
|
23
|
bgneal@194
|
24 <form method="post" action=".">{% csrf_token %}
|
bgneal@137
|
25 <fieldset>
|
bgneal@137
|
26 <legend>Add a Social Network</legend>
|
bgneal@29
|
27 {{ sn_form.as_p }}
|
bgneal@137
|
28 <p>For MySpace, you must enter your
|
bgneal@137
|
29 <a href="http://faq.myspace.com/app/answers/detail/a_id/278" target="_blank">Myspace Friend ID</a>
|
bgneal@137
|
30 in the <i>Username</i> box.</p>
|
bgneal@29
|
31 <p><input type="submit" name="sn-form" value="Add Social Network" class="button" /></p>
|
bgneal@137
|
32 </fieldset>
|
bgneal@29
|
33 </form>
|
bgneal@29
|
34 <hr />
|
bgneal@29
|
35 <h3>Instant Messengers</h3>
|
bgneal@29
|
36 {% if request.user.instant_messenger_profiles.all %}
|
bgneal@29
|
37 <ul>
|
bgneal@29
|
38 {% for profile in request.user.instant_messenger_profiles.all %}
|
bgneal@29
|
39 <li>
|
bgneal@312
|
40 <img src="{{ STATIC_URL }}elsewhere/{{ profile.icon_name }}" alt="{{ profile.name }}" />
|
bgneal@29
|
41 {{ profile.name }}: <a href="{{ profile.url }}">{{ profile.username }}</a>
|
bgneal@194
|
42 <form id="delete-messenger-{{ profile.id }}" method="post" action=".">{% csrf_token %}
|
bgneal@29
|
43 <input type="hidden" name="delete_id" value="{{ profile.id }}" />
|
bgneal@29
|
44 <input type="submit" name="delete-im-form" value="Delete" class="button" />
|
bgneal@29
|
45 </form>
|
bgneal@29
|
46 </li>
|
bgneal@29
|
47 {% endfor %}
|
bgneal@29
|
48 </ul>
|
bgneal@29
|
49 {% else %}
|
bgneal@29
|
50 <p>No instant messenger profiles.</p>
|
bgneal@29
|
51 {% endif %}
|
bgneal@29
|
52
|
bgneal@194
|
53 <form method="post" action=".">{% csrf_token %}
|
bgneal@137
|
54 <fieldset>
|
bgneal@137
|
55 <legend>Add an Instant Messenger</legend>
|
bgneal@29
|
56 {{ im_form.as_p }}
|
bgneal@29
|
57 <p><input type="submit" name="im-form" value="Add Instant Messenger" class="button" /></p>
|
bgneal@137
|
58 </fieldset>
|
bgneal@29
|
59 </form>
|
bgneal@29
|
60 <hr />
|
bgneal@29
|
61 <h3>Websites</h3>
|
bgneal@29
|
62 {% if request.user.website_profiles.all %}
|
bgneal@29
|
63 <ul>
|
bgneal@29
|
64 {% for profile in request.user.website_profiles.all %}
|
bgneal@29
|
65 <li>
|
bgneal@312
|
66 <img src="{{ STATIC_URL }}icons/world.png" alt="{{ profile.name }}" />
|
bgneal@29
|
67 <a href="{{ profile.url }}" rel="me">{{ profile.name }}</a>
|
bgneal@194
|
68 <form id="delete-website-{{ profile.id }}" method="post" action=".">{% csrf_token %}
|
bgneal@29
|
69 <input type="hidden" name="delete_id" value="{{ profile.id }}" />
|
bgneal@29
|
70 <input type="submit" name="delete-w-form" value="Delete" class="button" />
|
bgneal@29
|
71 </form>
|
bgneal@29
|
72 </li>
|
bgneal@29
|
73 {% endfor %}
|
bgneal@29
|
74 </ul>
|
bgneal@29
|
75 {% else %}
|
bgneal@29
|
76 <p>No website profiles.</p>
|
bgneal@29
|
77 {% endif %}
|
bgneal@29
|
78
|
bgneal@194
|
79 <form method="post" action=".">{% csrf_token %}
|
bgneal@137
|
80 <fieldset>
|
bgneal@137
|
81 <legend>Add a Website</legend>
|
bgneal@29
|
82 {{ w_form.as_p }}
|
bgneal@29
|
83 <p><input type="submit" name="w-form" value="Add Website" class="button" /></p>
|
bgneal@137
|
84 </fieldset>
|
bgneal@29
|
85 </form>
|
bgneal@29
|
86 <hr />
|
bgneal@310
|
87 <p><a href="{% url 'bio-edit_profile' %}">Back to Your Profile</a></p>
|
bgneal@29
|
88 {% endblock %}
|