mirror of
https://github.com/etnguyen03/tjdests.git
synced 2025-04-21 02:00:16 -04:00
fix(profile): only show banner to seniors
This commit is contained in:
parent
64e71aaa0c
commit
5b2cd98ae5
|
@ -9,14 +9,14 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
<p id="without-nickname">You are {{ request.user.username }}, {{ request.user.first_name }} {{ request.user.last_name }}.</p>
|
<p id="without-nickname">You are {{ request.user.username }}, {{ request.user.first_name }} {{ request.user.last_name }}.</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
<h4>Personal Information, Data Publication, College Attending, Biography</h4>
|
||||||
|
<div class="container">
|
||||||
|
{% if request.user.is_senior %}
|
||||||
{% if not request.user.publish_data %}
|
{% if not request.user.publish_data %}
|
||||||
<div class="alert alert-warning" role="alert">
|
<div class="alert alert-warning" role="alert">
|
||||||
Your profile is currently hidden. You can publish your profile by marking the "publish my data" checkbox and submit this form.
|
Your profile is currently hidden. You can publish your profile by marking the "publish my data" checkbox and submit this form.
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<h4>Personal Information, Data Publication, College Attending, Biography</h4>
|
|
||||||
<div class="container">
|
|
||||||
{% if request.user.is_senior %}
|
|
||||||
{% crispy profile_form %}
|
{% crispy profile_form %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>You are not a senior, so you cannot publish data.</p>
|
<p>You are not a senior, so you cannot publish data.</p>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user