mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 09:53:15 +00:00
96 lines
4.3 KiB
Twig
96 lines
4.3 KiB
Twig
{% import "common/thumbnail.html.twig" as thumbnail %}
|
|
|
|
{% extends "common/index.html.twig" %}
|
|
|
|
{% block javascript %}
|
|
<script type="text/javascript" src="/assets/production/commons{% if not app.debug %}.min{% endif %}.js"></script>
|
|
<script type="text/javascript" src="/assets/production/lightbox-mobile{% if not app.debug %}.min{% endif %}.js"></script>
|
|
<script type="text/javascript">
|
|
|
|
|
|
var lightboxApp = lightboxMobileApplication.bootstrap({
|
|
lang: '{{ app.locale }}',
|
|
baseUrl: '{{ app['request'].getUriForPath('/') }}',
|
|
basePath: '{{ app.request.basePath|e('js') }}',
|
|
releasable: false
|
|
});
|
|
</script>
|
|
{% endblock %}
|
|
{% block stylesheet %}
|
|
<link type="text/css" rel="stylesheet" href="/assets/lightbox/css/lightbox-mobile{% if not app.debug %}.min{% endif %}.css" />
|
|
|
|
<style type="text/css">
|
|
div[data-role="page"] {
|
|
position: relative;
|
|
}
|
|
|
|
#content {
|
|
position: fixed;
|
|
top:50px;
|
|
bottom: 0;
|
|
right: 0;
|
|
left: 0;
|
|
text-align: center;
|
|
overflow-y: scroll;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
</style>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% set record = basket_element.getRecord(app) %}
|
|
|
|
|
|
<div data-role="page" id="page">
|
|
<div data-role="header">
|
|
<a href="{{ path('lightbox_validation', { 'basket' : basket_element.getBasket().getId() }) }}"
|
|
data-icon="arrow-l">{{ 'Back' | trans }}</a>
|
|
<h1>{{basket_element.getOrd()}} - {{record.get_title()}}</h1>
|
|
<a rel="external" href="{{ path('lightbox') }}" data-icon="home" data-iconpos="notext" data-direction="reverse"
|
|
class="ui-btn-right jqm-home">{{ 'Home' | trans }}</a>
|
|
</div>
|
|
<div id="content" data-role="content">
|
|
{{ thumbnail.format100percent(record.get_preview()) }}
|
|
<div class="nav_button">
|
|
{% if prevId != NULL %}
|
|
<a data-ajax="false" id="left-btn"
|
|
href="{{ path('lightbox_ajax_load_basketelement', { 'sselcont_id' : prevId }) }}"
|
|
class="ui-btn ui-shadow ui-corner-all ui-icon-carat-l ui-btn-icon-notext">Left</a>
|
|
{% endif %}
|
|
{% if nextId != NULL %}
|
|
<a data-ajax="false" id="right-btn" data-ajax="false"
|
|
href="{{ path('lightbox_ajax_load_basketelement', { 'sselcont_id' : nextId }) }}"
|
|
class="ui-btn ui-shadow ui-corner-all ui-icon-carat-r ui-btn-icon-notext">Right</a>
|
|
{% endif %}
|
|
<div style="clear: both;"></div>
|
|
</div>
|
|
{% if basket_element.getBasket().getValidation() %}
|
|
{% if basket_element.getBasket().getValidation().getParticipant(app.getAuthenticatedUser()).getCanAgree() %}
|
|
<fieldset data-role="controlgroup" data-type="horizontal" style="text-align:center;">
|
|
<input {% if basket_element.getUserValidationDatas(app.getAuthenticatedUser()).getAgreement() == true%}checked="checked"{% endif %} type="radio" name="radio-view" id="radio-view-yes_{{basket_element.getId()}}" value="yes" />
|
|
<label class="agreement_radio" style="width:110px;text-align:center;"
|
|
for="radio-view-yes_{{ basket_element.getId() }}">{{ 'validation:: OUI' | trans }}</label>
|
|
<input {% if basket_element.getUserValidationDatas(app.getAuthenticatedUser()).getAgreement() == false and basket_element.getUserValidationDatas(app.getAuthenticatedUser()).getAgreement() is not null %}checked="checked"{% endif %} type="radio" name="radio-view" id="radio-view-no_{{basket_element.getId()}}" value="no" />
|
|
<label class="agreement_radio" style="width:110px;text-align:center;"
|
|
for="radio-view-no_{{ basket_element.getId() }}">{{ 'validation:: NON' | trans }}</label>
|
|
</fieldset>
|
|
{% endif %}
|
|
<div style="text-align:center;margin:0 0 1em 0">
|
|
<a href="{{ path('lightbox_ajax_note_form', { 'sselcont_id' : basket_element.getId() }) }}" data-role="button" data-inline="true" data-rel="dialog" data-transition="slidedown">
|
|
{{ 'validation:: editer ma note' | trans }}
|
|
</a>
|
|
</div>
|
|
<div>
|
|
<ul data-role="listview" id="notes_{{basket_element.getId()}}">
|
|
{% include 'lightbox/sc_note.html.twig' %}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
<div data-role="footer">
|
|
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|