Gate uploading a cert photo if you have no profile photo

This commit is contained in:
Noah Petherbridge 2023-08-04 19:35:53 -07:00
parent fdc410c9f1
commit 09497d3e52

View File

@ -106,6 +106,30 @@
</p> </p>
</div> </div>
<!-- If the user has no profile picture, ask them to upload that first. -->
{{if not .CurrentUser.ProfilePhotoID}}
<div class="notification is-danger is-light content">
<p>
<i class="fa fa-hand mr-1"></i>
<strong>Hang on a moment!</strong>
</p>
<p>
Before you submit your certification photo, please upload
<a href="/photo/upload?intent=profile_pic" class="has-text-link"><strong>a profile photo</strong></a>
that shows your face. Your certification photo will be compared to the face
picture on your profile page so that we know it's actually the same person.
</p>
<p>
<strong>Note:</strong> you may make your profile picture "Friends-only" or
"Private" if you need; but you should have a clear face picture on your
profile page for the {{PrettyTitle}} admin to compare your certification
picture to!
</p>
</div>
{{else}}
<form method="POST" action="/photo/certification" enctype="multipart/form-data"> <form method="POST" action="/photo/certification" enctype="multipart/form-data">
{{InputCSRF}} {{InputCSRF}}
@ -144,6 +168,8 @@
</div> </div>
</form> </form>
{{end}}
</div> </div>
</div> </div>
</div> </div>