Skip to content

Commit

Permalink
Add workshop page button
Browse files Browse the repository at this point in the history
Closes #665
  • Loading branch information
mhorod committed Aug 17, 2024
1 parent 846cfb5 commit fe2ed55
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions templates/_programworkshop.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,28 @@ <h5 class="m-0">
<blockquote class="blockquote">
{{ workshop.short_description }}
</blockquote>
<div class="mt-2 mb-3">Kategorie:
{% for category in workshop.category.all %}
<span class="badge badge-secondary">{{ category.name }}</span>
{% endfor %}
</div>
</div>
{% endif %}
<div class="col-12 col-sm-8 col-lg-4">
<div class="mt-2 mb-3">
<span class="d-inline-block w-100 mb-1 qualification-problems-button"
{# this wrapper span is here to allow the tooltip to work on a disabled element, see https://getbootstrap.com/docs/4.0/components/tooltips/#disabled-elements #}
{% if not workshop.page_content_is_public %}data-toggle="tooltip"
data-placement="right"
title="Strona warsztatów pojawi się wkrótce"{% endif %}
>
<a role="button"
class="btn btn-dark btn-sm w-100 {% if not workshop.page_content_is_public %}disabled{% endif %}"
href="{% url 'workshop_page' workshop.year.pk workshop.name %}"
target="_blank">
Strona warsztatów
</a>
</span>
{% if workshop.is_qualifying %}
<span class="d-inline-block w-100 mb-1 qualification-problems-button"
{# this wrapper span is here to allow the tooltip to work on a disabled element, see https://getbootstrap.com/docs/4.0/components/tooltips/#disabled-elements #}
Expand Down Expand Up @@ -80,12 +98,6 @@ <h5 class="m-0">
</button>
{% endif %}
</div>

<div class="mt-2 mb-3">Kategorie:
{% for category in workshop.category.all %}
<span class="badge badge-secondary">{{ category.name }}</span>
{% endfor %}
</div>
</div>
<div class="col-12 col-sm-4 col-lg-2 text-center button-div {% if not no_workshop_card_header %}d-none d-sm-block{% endif %}">
{% if workshop.is_qualification_editable %}
Expand Down

0 comments on commit fe2ed55

Please sign in to comment.