bgneal@29: {% extends 'bio/base.html' %}
bgneal@310: {% load url from future %}
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@312:         <img src="{{ STATIC_URL }}elsewhere/{{ profile.icon_name }}" alt="{{ profile.name }}" />
bgneal@29:             <a href="{{ profile.url }}" rel="me">{{ profile.name }}</a>
bgneal@194:             <form id="delete-network-{{ profile.id }}" method="post" action=".">{% csrf_token %}
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@194: <form method="post" action=".">{% csrf_token %}
bgneal@137: <fieldset>
bgneal@137: <legend>Add a Social Network</legend>
bgneal@29:     {{ sn_form.as_p }}
bgneal@405:     <p>
bgneal@405:     For Facebook, you must enter your profile ID in the <em>Username</em> box. Visit your
bgneal@405:     Facebook profile. Look at your browser's URL (address) bar. If you see a link of the form 
bgneal@405:     http://www.facebook.com/profile.php?id=<strong>1234567890</strong>, you want that number after the 
bgneal@405:     <strong>id=</strong> part. If you don't see a link like that, hover your mouse over your
bgneal@405:     profile picture, and a link of the above form should appear in your browser's status bar
bgneal@405:     (usually at the bottom). You can right-click on your photo and choose "copy link address" 
bgneal@405:     (the exact message will vary by browser) to copy the link. Then paste into the 
bgneal@405:     <em>Username</em> box, then delete everything but the long number.
bgneal@405:     </p>
bgneal@29:     <p><input type="submit" name="sn-form" value="Add Social Network" class="button" /></p>
bgneal@137: </fieldset>
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@312:         <img src="{{ STATIC_URL }}elsewhere/{{ profile.icon_name }}" alt="{{ profile.name }}" />
bgneal@29:             {{ profile.name }}: <a href="{{ profile.url }}">{{ profile.username }}</a>
bgneal@194:             <form id="delete-messenger-{{ profile.id }}" method="post" action=".">{% csrf_token %}
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@194: <form method="post" action=".">{% csrf_token %}
bgneal@137: <fieldset>
bgneal@137: <legend>Add an Instant Messenger</legend>
bgneal@29:     {{ im_form.as_p }}
bgneal@29:     <p><input type="submit" name="im-form" value="Add Instant Messenger" class="button" /></p>
bgneal@137: </fieldset>
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@312:            <img src="{{ STATIC_URL }}icons/world.png" alt="{{ profile.name }}" />
bgneal@29:             <a href="{{ profile.url }}" rel="me">{{ profile.name }}</a>
bgneal@194:             <form id="delete-website-{{ profile.id }}" method="post" action=".">{% csrf_token %}
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@194: <form method="post" action=".">{% csrf_token %}
bgneal@137: <fieldset>
bgneal@137: <legend>Add a Website</legend>
bgneal@29:     {{ w_form.as_p }}
bgneal@29:     <p><input type="submit" name="w-form" value="Add Website" class="button" /></p>
bgneal@137: </fieldset>
bgneal@29: </form>
bgneal@29: <hr />
bgneal@310: <p><a href="{% url 'bio-edit_profile' %}">Back to Your Profile</a></p>
bgneal@29: {% endblock %}