toulouse-2022: [parsifal] manage capacity in catalog (#86840)
gitea/publik-base-theme/pipeline/head This commit looks good Details

This commit is contained in:
Nicolas Roche 2024-02-12 17:44:07 +01:00
parent f5021a2d60
commit de7f2aae88
3 changed files with 16 additions and 2 deletions

View File

@ -3,7 +3,8 @@
&--item-name,
&--item-unit,
&--item-location,
&--item-date {
&--item-date,
&--item-no-capacity {
font-size: 90%;
margin-left: 10px;
@ -23,6 +24,7 @@
&--item-name::before { content: "\f007"; }
&--item-location::before { content: "\f041"; }
&--item-date::before { content: "\f133"; }
&--item-no-capacity::before { content: "\f254"; color: $color-warning;}
}
.theme-basket {

View File

@ -8,6 +8,7 @@ $min-desktop-viewport: "min-width: #{$mobile-limit + 1}";
$title-color: #161c2a;
$title-font-size: 200%;
$very-small-limit: 560px;
$color-warning: #eb7500;
.cancel-button {}
.cell-items-pagination {}

View File

@ -43,6 +43,11 @@
<div class="theme-activities--item-type">{{ item.criterias.type.data|get:item.criterias.type.order.0 }}</div>
<div class="theme-activities--item-location">{{ item.place.text }}</div>
<div class="theme-activities--item-date">Du {{ item.unit.dateStart|date:"d/m/Y" }} au {{ item.unit.dateEnd|date:"d/m/Y" }}</div>
{% if item.place.capacityInfo.controlOK == False %}
<div class="theme-activities--item-no-capacity">
Plus de place, mais vous pouvez vous inscrire en liste d'attente
</div>
{% endif %}
</div>
<div class="theme-activities--item-details">
<p class"theme-activities--item-description">{{ item.activity.activityPortail.blocNoteList.0.note }}</p>
@ -54,7 +59,13 @@
{% endfor %}.
</p>
</div>
<a class="pk-button" href="{{ eservices_url }}inscription-loisirs/tryauth?activity_id={{ item.activity.id }}&unit_id={{ item.unit.id }}&place_id={{ item.place.id }}&catalogue=Oui&cancelurl={{ portal_url }}mes-activites/">Inscription</a>
<a class="pk-button" href="{{ eservices_url }}inscription-loisirs/tryauth?activity_id={{ item.activity.id }}&unit_id={{ item.unit.id }}&place_id={{ item.place.id }}&resume={{ resume }}{{ item.text }} // Du {{ item.unit.dateStart|date:"d/m/Y" }} au {{ item.unit.dateEnd|date:"d/m/Y" }}&catalogue=Oui{% if item.place.capacityInfo.controlOK == False %}&liste_attente=Oui{% endif %}&cancelurl={{ portal_url }}mes-activites/">
{% if item.place.capacityInfo.controlOK == False %}
Liste d'attente
{% else %}
Inscription
{% endif %}
</a>
</div>
{% endfor %}
<div class="theme-activities--pagination">