forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit_profile.html
More file actions
234 lines (194 loc) · 8.97 KB
/
edit_profile.html
File metadata and controls
234 lines (194 loc) · 8.97 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load widget_tweaks bootstrap3 %}
{% load person_filters %}
{% block title %}Profile for {{ user }}{% endblock %}
{% block content %}
{% origin %}
<h1>Profile information for {{ user.person.name }}</h1>
<p> </p>
<p>
The information you provide below is used to generate your <a href="{% url 'ietf.person.views.profile' email_or_name=user.person.email %}">public datatracker profile page</a>
</p>
<hr>
<form class="form-horizontal" method="post">
{% csrf_token %}
{% bootstrap_form_errors person_form %}
{% for f in new_email_forms %}
{% bootstrap_form_errors f %}
{% endfor %}
<div class="form-group">
<label class="col-sm-2 control-label">User name <a href="#pi">†</a></label>
<div class="col-sm-10">
<p class="form-control-static">
{{ user.username }}
<a href="/accounts/username/"><span class="fa fa-pencil"></span></a>
</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Password <a href="#pi">†</a></label>
<div class="col-sm-10">
<p class="form-control-static">
<a href="/accounts/password/">Password change form</a>
<a href="/accounts/password/"><span class="fa fa-pencil"></span></a>
</p>
</div>
</div>
{% if person.photo %}
<div class="form-group">
<label class="col-sm-2 control-label">Photo <a href="#pi">†</a></label>
<div class="col-sm-10">
<p class="form-control-static">
<a href="{{person.photo.url}}">
<img class="photo" src="{{ person.photo.url }}" alt="Photo of {{ person }}" />
</a>
</p>
</div>
</div>
{% endif %}
<div class="form-group">
<label class="col-sm-2 control-label">Nomcom Eligible</label>
<div class="col-sm-1 form-control-static">
{{person|is_nomcom_eligible|yesno:'Yes,No,No'}}
{% if volunteer_status == 'allow' %}
<br>
<a id="volunteer-button" class="btn btn-primary" href="{% url "ietf.nomcom.views.volunteer" %}">Volunteer</a>
{% endif %}
</div>
<div class="col-sm-9">
<p class="alert alert-info form-control-static">
If you believe this calculation is incorrect, make sure you've added all the
email addresses you've registered for IETF meetings with to the
list below.<br/>
If you've done so and the calculation is still incorrect, please
send a note to
<a href="mailto:{{settings.SECRETARIAT_SUPPORT_EMAIL}}">{{settings.SECRETARIAT_SUPPORT_EMAIL}}</a>.<br/>
See <a href="{% url 'ietf.doc.views_doc.document_main' name='rfc8713'%}">RFC 8713</a>
for eligibility requirements.
For the 2021 nomcom, see also <a href="{% url 'ietf.doc.views_doc.document_main' name='rfc8989' %}">RFC 8989</a>.
{% if volunteer_status == 'volunteered' %}
<br/><strong id='volunteered'>You have volunteered for the {{nomcom.group.name}}.</strong> To modify your volunteer status, contact the NomCom chair.
{% endif %}
</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">External Resources <a href="#pi">†</a></label>
<div class="col-sm-10 form-control-static">
{% for extres in person.personextresource_set.all %}
<div class="row">
<div class="col-sm-1">
<span title="{{ extres.name.name}}">{% firstof extres.display_name extres.name.name %}</span>
</div>
<div class="col-sm-11">{{extres.value}}
{% if forloop.first %} <a href="{% url 'ietf.ietfauth.views.edit_person_externalresources' %}"><span class="fa fa-pencil"></span></a>{% endif %}
</div>
</div>
{% empty %}
<div class="row"><div class="col-sm-1">None <a href="{% url 'ietf.ietfauth.views.edit_person_externalresources' %}"><span class="fa fa-pencil"></span></a></div></div>
{% endfor %}
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Email addresses</label>
<div class="col-sm-10">
<div class="row">
<div class="col-sm-10" id="emails">
<table class="table table-condensed">
<tr ><th>Primary</th><th>Active</th><th>Address</th><th>Origin</th></tr>
{% for email in emails %}
<tr >
<td><input type="radio" name="primary_email" value="{{ email.pk }}" {% if email.primary %}checked{% endif %}></td>
<td><input type="checkbox" name="active_emails" value="{{ email.pk }}" {% if email.active %}checked{% endif %}></td>
<td>
{% if email.origin == person.user.username or email.origin == '' %}<a href="#pi">†</a>{% endif %}
{{ email }}
</td>
<td>{{ email.origin|default:'(unknown)' }}</td>
</tr>
{% endfor %}
</table>
</div>
<div class="col-sm-10">
<div class="help-block">Note: Email addresses cannot be deleted in this form, only deactivated.</div>
</div>
</div>
</div>
</div>
{% for f in new_email_forms %}
{% bootstrap_field f.new_email layout="horizontal" show_label=False %}
{% endfor %}
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<div class="new-emails"></div>
<button class="btn btn-default btn-sm add-email">Add a new email address</button>
</div>
</div>
{% for role in roles %}
{% bootstrap_field role.email_form.email layout="horizontal" show_label=False %}
{% endfor %}
{% bootstrap_field person_form.name layout="horizontal" %}
{% bootstrap_field person_form.plain layout="horizontal" %}
{% bootstrap_field person_form.ascii layout="horizontal" %}
{% if roles %}
{% bootstrap_field person_form.biography layout="horizontal" %}
{% endif %}
{% bootstrap_field person_form.consent layout="horizontal" %}
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</div>
</form>
<hr>
<p id="pi"><strong>[†] Personal information requiring consent:</strong></p>
<p>
Personal information in the datatracker which is derived from your contributions
to the IETF standards development process is covered by the EU General Data Protection
Regulation's
<a href="https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=CELEX:32016R0679#d1e1888-1-1">Article 6(1) (f)</a>
covering IETF's Legitimate Interest due to the IETF's mission of developing standards
for the internet. See also the page on <a href="/help/personal-information">handling
of personal information</a>.
</p>
<p>
Personal information which is <b>not</b> derived from your contributions is covered by the EU
<a href="https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=CELEX:32016R0679#d1e1888-1-1">GDPR Article 6(1) (a)</a>
regarding consent. All such information is visible on this page and shown with the
dagger symbol (<strong>†</strong>) next to it, or listed on your
<a href="{% url 'ietf.community.views.view_list' user.username %}">notification subscription page</a>. Most of this
information can be edited or removed on these pages. There are some exceptions, such
as photos, which currently require an email to <a href="mailto:{{settings.SECRETARIAT_SUPPORT_EMAIL}}">the Secretariat</a>
if you wish to update or remove the information.
</p>
<p>
All the information the datatracker has that is coupled to this account and visible
on this page or otherwise related to your work on ietf documents, is also available
to you as a <a href="{% url 'ietf.api.views.PersonalInformationExportView' %}">JSON blob</a> when
you are logged in. It contains both the Legitimate Interest information and the information
that requires Consent.
</p>
{% endblock %}
{% block js %}
<script>
$(document).ready(function() {
$("input[name=active_emails]").on("change keypress click", function () {
if (this.checked) {
$(this).parent().next().addClass("text-success");;
$(this).parent().next().removeClass("text-danger line-through");
} else {
$(this).parent().next().addClass("text-danger line-through");
$(this).parent().next().removeClass("text-success");
}
}).trigger("change");
$(".add-email").click(function(e) {
e.preventDefault();
var container = $(this).closest("form").find(".new-emails");
$('<input class="form-control" name="new_email" placeholder="The address entered here will get a confirmation challenge. To add an address that cannot confirm, contact the secretariat.">').appendTo(container).focus();
$('<div class="pull-right pad"><i>Remember to submit the form for the new email challenge to be sent.</i></div>').appendTo(container);
})
});
</script>
{% endblock %}