Skip to content

Commit

Permalink
Merge pull request #711 from drnlm/bugfix/wrap_warning_in_section
Browse files Browse the repository at this point in the history
Wrap registered / ticket info in it's own section
  • Loading branch information
drnlm authored Jun 3, 2024
2 parents dc01436 + 300fd3e commit eb5f7d3
Showing 1 changed file with 24 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,30 @@
{% if can_edit %}
{% if profile.pending_talks.exists or profile.accepted_talks.exists or profile.provisional_talks.exists%}
{% block speaker_registered %}
{% if profile.is_registered %}
<div class="alert alert-success">
{% blocktrans trimmed %}
Registered
{% endblocktrans %}
</div>
{% else %}
<div class="alert alert-danger">
{% blocktrans trimmed %}
<strong>WARNING:</strong>
Talk proposal submitted, but speaker hasn't registered to attend.
{% endblocktrans %}
{% if WAFER_REGISTRATION_OPEN %}
{% trans "Register now!" %}
{% endif %}
</div>
{% endif %}
{% if WAFER_REGISTRATION_MODE == 'ticket' and profile.is_registered %}
<p>Tickets:
{{ profile.ticket_types }}
</p>
{% endif %}
<section class="wafer-profile-registered">
{% if profile.is_registered %}
<div class="alert alert-success">
{% blocktrans trimmed %}
Registered
{% endblocktrans %}
</div>
{% else %}
<div class="alert alert-danger">
{% blocktrans trimmed %}
<strong>WARNING:</strong>
Talk proposal submitted, but speaker hasn't registered to attend.
{% endblocktrans %}
{% if WAFER_REGISTRATION_OPEN %}
{% trans "Register now!" %}
{% endif %}
</div>
{% endif %}
{% if WAFER_REGISTRATION_MODE == 'ticket' and profile.is_registered %}
<p>Tickets:
{{ profile.ticket_types }}
</p>
{% endif %}
</section>
{% endblock speaker_registered %}
{% endif %}
{% endif %}
Expand Down

0 comments on commit eb5f7d3

Please sign in to comment.