mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 13:03:20 +00:00

Replace $app['authentication']->getUser() by $app->getAuthenticatedUser() replace twig app['authentication'].getUser() with corresponding method
33 lines
1.4 KiB
Twig
33 lines
1.4 KiB
Twig
{% if basket_element and basket_element.getBasket().getValidation() %}
|
|
<div class="notes_wrapper">
|
|
<div class="notes_overlay"></div>
|
|
<div class="notes well-small">
|
|
<div class="well-small">
|
|
<h2 class="title15">{{ 'validation:: votre note' | trans }}</h2>
|
|
</div>
|
|
<hr/>
|
|
{% for validationDatas in basket_element.getValidationDatas() %}
|
|
{% if validationDatas.getNote() != '' %}
|
|
<div class="note_wrapper ui-corner-all {% if validationDatas.getParticipant().getUser().getId() == app.getAuthenticatedUser().getId() %}my_note{% endif %} ">
|
|
<span class="note_author title15">
|
|
{{validationDatas.getParticipant().getUser().getDisplayName()}}
|
|
</span> : {{ validationDatas.getNote()|nl2br }}
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
<form>
|
|
<textarea>{{basket_element.getUserValidationDatas(app.getAuthenticatedUser()).getNote()}}</textarea>
|
|
<div class="buttons">
|
|
<button class="note_closer ui-corner-all">
|
|
{{ 'boutton::fermer' | trans }}
|
|
</button>
|
|
<button class="note_saver ui-corner-all" id="note_saver_{{basket_element.getId()}}">
|
|
{{ 'boutton::enregistrer' | trans }}
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|