mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 09:53:15 +00:00
51 lines
2.5 KiB
Twig
51 lines
2.5 KiB
Twig
|
|
<div class="PNB10" style="overflow-y: auto;overflow-x:hidden; bottom: 130px;">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr>
|
|
<td class="title title15">{{ 'VALIDATION' | trans }}</td>
|
|
<td class="report_wrapper">
|
|
<a class="report" href="#">
|
|
{{ 'lightbox::recaptitulatif' | trans }}
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
{% if basket.getValidation() %}
|
|
<div>{{ basket.getValidation().getValidationString(app, app.getAuthenticatedUser()) }}</div>
|
|
<ul>
|
|
{% for choice in basket_element.getValidationDatas() %}
|
|
{% if basket.getValidation().getParticipant(app.getAuthenticatedUser()).getCanSeeOthers() or choice.getParticipant().getUser() == app.getAuthenticatedUser() %}
|
|
{% if choice.getAgreement() == true %}
|
|
{% set classuser = 'agree' %}
|
|
{% elseif choice.getAgreement() is null %}
|
|
{% set classuser = '' %}
|
|
{% else %}
|
|
{% set classuser = 'disagree' %}
|
|
{% endif %}
|
|
{% set participant = choice.getParticipant().getUser() %}
|
|
<li class="{% if participant.getId() == app.getAuthenticatedUser().getId() %}me{% endif %} {{classuser}} userchoice">{{participant.getDisplayName()}}</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
</div>
|
|
<div class="PNB user_infos">
|
|
{% if basket_element and basket_element.getBasket().getValidation() and basket.getValidation().getParticipant(app.getAuthenticatedUser()).getCanAgree() %}
|
|
<div class="PNB choices">
|
|
<div style="height:60px;">
|
|
{% set agreement = basket_element.getUserValidationDatas(app.getAuthenticatedUser()).getAgreement() %}
|
|
<div class="ui-corner-all big_box agree_{{basket_element.getId()}} agree {% if agreement is null or agreement == false %}not_decided{% endif %}">
|
|
<img src="/assets/lightbox/images/agree-big.png"/><span class="title15">{{ 'validation:: OUI' | trans }}</span>
|
|
</div>
|
|
</div>
|
|
<div style="height:60px;">
|
|
<div class="ui-corner-all big_box disagree_{{basket_element.getId()}} disagree {% if agreement is null or agreement == true %}not_decided{% endif %}">
|
|
<img src="/assets/lightbox/images/disagree-big.png"/><span class="title15">{{ 'validation:: NON' | trans }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|