forked from leah/django-elsewhere
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.html
89 lines (79 loc) · 2.82 KB
/
example.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Elsewhere</title>
</head>
<body>
<h1>Elsewhere</h1>
<h2>Social Networks</h2>
{% if request.user.social_network_profiles.all %}
<ul>
{% for profile in request.user.social_network_profiles.all %}
<li>
<img src="{{ profile.icon }}" 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 %}
<h3>Add a Social Network</h3>
<form method="post" action=".">
{{ sn_form.as_p }}
<p><input type="submit" name="sn-form" value="Add Social Network" class="button"></p>
</form>
<br/>
<h2>Instant Messengers</h2>
{% if request.user.instant_messenger_profiles.all %}
<ul>
{% for profile in request.user.instant_messenger_profiles.all %}
<li>
<img src="{{ profile.icon }}" 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 %}
<h3>Add an Instant Messenger</h3>
<form method="post" action=".">
{{ im_form.as_p }}
<p><input type="submit" name="im-form" value="Add Instant Messenger" class="button"></p>
</form>
<br/>
<h2>Websites</h2>
{% if request.user.website_profiles.all %}
<ul>
{% for profile in request.user.website_profiles.all %}
<li>
<img src="{{ profile.icon }}" 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 %}
<h3>Add a Website</h3>
<form method="post" action=".">
{{ w_form.as_p }}
<p><input type="submit" name="w-form" value="Add Website" class="button" /></p>
</form>
</body>
</html>