mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
79 lines
4.1 KiB
Twig
79 lines
4.1 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_FBO" class="radio">
|
|
<input type="radio" name="lay" checked value="feedbackOnly" id="RADI_PRE_FBO" />
|
|
{{ 'print:: basket feedback only' | trans }}
|
|
</label>
|
|
<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" {% if not basketFeedbackId %} checked {% endif %} 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>
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
var $form = $("form[name=formprintpage]");
|
|
$form.bind('submit', function(){
|
|
$("#DIALOG").dialog('destroy');
|
|
});
|
|
});
|
|
</script>
|