Skip to content
Extraits de code Groupes Projets
Valider ee755616 rédigé par Rémi - Le Filament's avatar Rémi - Le Filament
Parcourir les fichiers

[FIX] manage case where no limits

parent dc585f74
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -10,17 +10,16 @@ ...@@ -10,17 +10,16 @@
expr="//t[@t-if="question.question_type == 'simple_choice'"]//t[@t-as='answer']//option" expr="//t[@t-if="question.question_type == 'simple_choice'"]//t[@t-as='answer']//option"
position="attributes" position="attributes"
> >
<attribute <attribute name="t-if">answer.number_max == 0</attribute></xpath>
name="t-if"
>(answer.number_max and not answer.fully_booked) or answer.number_max == 0</attribute>
<attribute
name="t-out"
>answer.name + " (" + str(answer.remaining_number) + " restant(es))"</attribute>
</xpath>
<xpath <xpath
expr="//t[@t-if=&quot;question.question_type == 'simple_choice'&quot;]//t[@t-as='answer']//option" expr="//t[@t-if=&quot;question.question_type == 'simple_choice'&quot;]//t[@t-as='answer']//option"
position="after" position="after"
> >
<option
t-elif="answer.remaining_number > 0"
t-out="answer.name + ' (' + str(answer.remaining_number) + ' restant(es))'"
t-att-value="answer.id"
/>
<option <option
t-else="" t-else=""
t-out="answer.name + ' (Épuisé)'" t-out="answer.name + ' (Épuisé)'"
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter