Skip to content

Commit b766eaf

Browse files
richsalzrjsparks
andauthored
fix: Include text to set/update photo (#9186)
* fix: Include text to set/update photo * fixup! fix: Include text to set/update photo * fixup! fixup! fix: Include text to set/update photo * fix: only show photo instructions to users with roles * fix: only show Photo section to those with photos or roles --------- Co-authored-by: Robert Sparks <[email protected]>
1 parent 328ee12 commit b766eaf

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

ietf/templates/registration/edit_profile.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,19 @@ <h1>Your account</h1>
3232
<a class="btn btn-primary" href="{% url 'ietf.ietfauth.views.change_password' %}">Change password</a>
3333
</div>
3434
</div>
35-
{% if person.photo %}
35+
{% if person.photo or person.role_set.exists %}
3636
<div class="row mb-3">
3737
<label class="col-sm-2 col-form-label fw-bold">
3838
Photo
3939
</label>
40-
<div class="col-sm-10">{% include "person/photo.html" with person=person %}</div>
40+
<div class="col-sm-10">
41+
{% if person.photo %}
42+
{% include "person/photo.html" with person=person %}
43+
{% endif %}
44+
{% if person.role_set.exists %}
45+
<p>Email <a href="[email protected]">[email protected]</a>
46+
to update your photo.</p></div>
47+
{% endif %}
4148
</div>
4249
{% endif %}
4350
<div class="row mb-3">

0 commit comments

Comments
 (0)