mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 14:03:27 +00:00
59 lines
3.2 KiB
Twig
59 lines
3.2 KiB
Twig
{% if basket_element and basket_element.getBasket().getValidation() %}
|
|
<div class="left choices">
|
|
<table style="margin-left:10px;width:220px;height:30px;" cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr>
|
|
<td class="title">{% trans 'VALIDATION' %}</td>
|
|
<td class="report_wrapper">
|
|
<a class="report" href="#">
|
|
{% trans 'lightbox::recaptitulatif' %}
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
{% if basket.getValidation() %}
|
|
<div style="margin-left:10px;width:220px;">
|
|
{{ basket.getValidation().getValidationString(app, app['phraseanet.user']) }}
|
|
</div>
|
|
<ul style="margin:10px 0 0 20px;width:200px;">
|
|
{% for validation_data in basket_element.getValidationDatas() %}
|
|
{% if basket.getValidation().getParticipant(app['phraseanet.user'], app).getCanSeeOthers() or validation_data.getParticipant().getUser(app) == app['phraseanet.user'] %}
|
|
{% if validation_data.getAgreement() == true %}
|
|
{% set classuser = 'agree' %}
|
|
{% elseif validation_data.getAgreement() is null %}
|
|
{% set classuser = '' %}
|
|
{% else %}
|
|
{% set classuser = 'disagree' %}
|
|
{% endif %}
|
|
{% set participant = validation_data.getParticipant().getUser(app) %}
|
|
<li class="{% if participant.get_id() == app['phraseanet.user'].get_id() %}me{% endif %} {{classuser}} userchoice">{{participant.get_display_name()}}</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
|
|
{% if basket_element and basket_element.getBasket().getValidation() and basket.getValidation().getParticipant(app['phraseanet.user'], app).getCanAgree() %}
|
|
<div class="left choices">
|
|
<div style="height:60px;margin-top:15px;">
|
|
<table cellspacing="0" cellpadding="0" style="width:230px;">
|
|
<tr>
|
|
<td>
|
|
{% set agreement = basket_element.getUserValidationDatas(app['phraseanet.user'], app).getAgreement() %}
|
|
<div style="width:70px;margin:0px auto 0;" class="ui-corner-all big_box agree_{{basket_element.getId()}} agree {% if agreement is null or agreement == false %}not_decided{% endif %}">
|
|
<img src="/skins/lightbox/agree-bigie6.gif" style="vertical-align:middle;"/><span>{% trans 'validation:: OUI' %}</span>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div style="width:70px;margin:0px auto;" class="ui-corner-all big_box disagree_{{basket_element.getId()}} disagree {% if agreement is null or agreement == true %}not_decided{% endif %}">
|
|
<img src="/skins/lightbox/disagree-bigie6.gif" style="vertical-align:middle;"/><span>{% trans 'validation:: NON' %}</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|