Files
Phraseanet/templates/web/prod/actions/printer_default.html.twig
Jean-Yves Gaulier 32fbf049cf PHRAS-2757_print-feedback_4.1
Add a print format when printing a feedback basket
Only the creator of the feedback can print it.
2020-01-09 20:31:09 +01:00

66 lines
3.5 KiB
Twig

<form target="_blank" name="formprintpage" method="POST" action="{{ path('prod_printer_print') }}">
<div id="printBox">
<div style="padding:10px;">
{% if basketFeedbackId %}
<h4>{{ 'phraseanet:: basket feedback' | trans }}</h4>
<input type="hidden" name="ssel" value="{{ basketFeedbackId }}" />
<div style="margin: 10px 0 20px 0; padding: 0 10px;">
<label for="RADI_PRE_BF" class="radio">
<input type="radio" name="lay" value="feedback" id="RADI_PRE_BF" />
{{ 'print:: basket feedback' | trans }}
</label>
</div>
{% endif %}
{% if printer.get_count_actionable() > 0 %}
{% if printer.get_count_preview() > 0 %}
<h4>{{ 'phraseanet:: preview' | trans }}</h4>
<div style="margin: 10px 0 20px 0; padding: 0 10px;">
<label for="RADI_PRE_LAB" class="radio">
<input type="radio" name="lay" value="preview" id="RADI_PRE_LAB" />
{{ 'print:: image de choix seulement' | trans }}
</label>
<label for="RADI_PRE_CAP" class="radio">
<input type="radio" name="lay" value="previewCaption" id="RADI_PRE_CAP" />
{{ 'print:: image de choix et description' | trans }}
</label>
<label for="RADI_PRE_TDM" class="radio">
<input type="radio" name="lay" value="previewCaptionTdm" id="RADI_PRE_TDM" />
{{ 'print:: image de choix et description avec planche contact' | trans }}
</label>
<label for="RADI_CAP" class="radio">
<input type="radio" name="lay" value="caption" id="RADI_CAP" />
{{ 'print:: description' | trans }}
</label>
</div>
{% endif %}
{% if printer.get_count_thumbnail() > 0 %}
<h4>{{ 'print:: imagette' | trans }}</h4>
<div style="margin: 10px 0 20px 0; padding: 0 10px;">
<label for="RADI_PRE_THUM" class="radio">
<input type="radio" name="lay" value="thumbnailList" id="RADI_PRE_THUM" />
{{ 'print:: liste d\'imagettes' | trans }}
</label>
<label for="RADI_PRE_THUMGRI" class="radio">
<input type="radio" name="lay" checked value="thumbnailGrid" id="RADI_PRE_THUMGRI" />
{{ 'print:: planche contact (mosaique)' | trans }}
</label>
</div>
{% endif %}
{% if printer.get_count_thumbnail() > 0 or printer.get_count_preview() > 0 %}
<div style="margin-bottom: 10px; text-align: center;">
<input type="hidden" name="lst" value="{{ printer.get_serialize_list }}" />
<button type="submit" class="btn btn-inverse">{{ 'boutton::imprimer' | trans }}</button>
</div>
{% endif %}
{% elseif printer.get_count_element_received() > 0 %}
{{ 'None of the selected records can be printed' | trans }}
{% else %}
{{ 'export:: erreur : aucun document selectionne' | trans }}
{% endif %}
</div>
</div>
</form>