mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Remove user var from templates
This commit is contained in:
@@ -54,8 +54,8 @@
|
||||
</p>
|
||||
</div>
|
||||
{% else %}
|
||||
{% if user is not none %}
|
||||
{% set username = '<b>' ~ user.get_display_name() ~ '</b>' %}
|
||||
{% if app['phraseanet.user'] is not none %}
|
||||
{% set username = '<b>' ~ app['phraseanet.user'].get_display_name() ~ '</b>' %}
|
||||
<div id="hello-box" class="span6 offset3">
|
||||
<p class="login_hello">
|
||||
{% trans %}
|
||||
|
@@ -37,8 +37,8 @@
|
||||
<h1 id="namePhr">{{home_title}}</h1>
|
||||
</div>
|
||||
|
||||
{% if user is not none %}
|
||||
{% set username = '<b>' ~ user.get_display_name() ~ '</b>' %}
|
||||
{% if app['phraseanet.user'] is not none %}
|
||||
{% set username = '<b>' ~ app['phraseanet.user'].get_display_name() ~ '</b>' %}
|
||||
<div id="hello-box" class="span6 offset3">
|
||||
<p class="login_hello">
|
||||
{% trans %}
|
||||
|
@@ -21,12 +21,12 @@
|
||||
<div data-role="content">
|
||||
{{ thumbnail.format100percent(record.get_preview(),'', record.get_thumbnail()) }}
|
||||
{% if basket_element.getBasket().getValidation() %}
|
||||
{% if basket_element.getBasket().getValidation().getParticipant(user, app).getCanAgree() %}
|
||||
{% if basket_element.getBasket().getValidation().getParticipant(app['phraseanet.user'], app).getCanAgree() %}
|
||||
<fieldset data-role="controlgroup" data-type="horizontal" style="text-align:center;">
|
||||
<input {% if basket_element.getUserValidationDatas(user, app).getAgreement() == true%}checked="checked"{% endif %} type="radio" name="radio-view" id="radio-view-yes_{{basket_element.getId()}}" value="yes" />
|
||||
<input {% if basket_element.getUserValidationDatas(app['phraseanet.user'], app).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:130px;text-align:center;" for="radio-view-yes_{{basket_element.getId()}}">{% trans 'validation:: OUI' %}</label>
|
||||
|
||||
<input {% if basket_element.getUserValidationDatas(user, app).getAgreement() == false and basket_element.getUserValidationDatas(user, app).getAgreement() is not null %}checked="checked"{% endif %} type="radio" name="radio-view" id="radio-view-no_{{basket_element.getId()}}" value="no" />
|
||||
<input {% if basket_element.getUserValidationDatas(app['phraseanet.user'], app).getAgreement() == false and basket_element.getUserValidationDatas(app['phraseanet.user'], app).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:130px;text-align:center;" for="radio-view-no_{{basket_element.getId()}}">{% trans 'validation:: NON' %}</label>
|
||||
</fieldset>
|
||||
{% endif %}
|
||||
|
@@ -19,7 +19,7 @@
|
||||
<form action="">
|
||||
<textarea class="note_area"
|
||||
id="note_area_{{basket_element.getId()}}"
|
||||
{% if basket_element.getUserValidationDatas(user, app).getNote() == '' %}placeholder="Note"{% endif %}>{{basket_element.getUserValidationDatas(user, app).getNote()}}</textarea>
|
||||
{% if basket_element.getUserValidationDatas(app['phraseanet.user'], app).getNote() == '' %}placeholder="Note"{% endif %}>{{basket_element.getUserValidationDatas(app['phraseanet.user'], app).getNote()}}</textarea>
|
||||
<button type="submit" class="note_area_validate">{% trans 'boutton::valider' %}</button>
|
||||
<input name="sselcont_id" value="{{basket_element.getId()}}" type="hidden"/>
|
||||
</form>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{% for validationDatas in basket_element.getValidationDatas() %}
|
||||
{% set is_mine = validationDatas.getParticipant().getUser(app).get_id() == user.get_id() %}
|
||||
{% set is_mine = validationDatas.getParticipant().getUser(app).get_id() == app['phraseanet.user'].get_id() %}
|
||||
{% if validationDatas.getNote() != '' or (validationDatas.getAgreement() is not null and is_mine) %}
|
||||
<li>
|
||||
<h3 style="text-align:left;">
|
||||
|
@@ -24,8 +24,8 @@
|
||||
<ul class="image_set">
|
||||
{% for basket_element in basket.getElements() %}
|
||||
<li class="image_box" id="sselcontid_{{basket_element.getId()}}">
|
||||
{% if basket_element.getBasket().getValidation() and basket_element.getBasket().getValidation().getParticipant(user, app).getCanAgree() %}
|
||||
<div class="valid_choice valid_choice_{{basket_element.getId()}} {% if basket_element.getUserValidationDatas(user, app).getAgreement() == true %}agree{% elseif basket_element.getUserValidationDatas(user, app).getAgreement() == false and basket_element.getUserValidationDatas(user, app).getAgreement() is not null %}disagree{% endif %}">
|
||||
{% if basket_element.getBasket().getValidation() and basket_element.getBasket().getValidation().getParticipant(app['phraseanet.user'], app).getCanAgree() %}
|
||||
<div class="valid_choice valid_choice_{{basket_element.getId()}} {% if basket_element.getUserValidationDatas(app['phraseanet.user'], app).getAgreement() == true %}agree{% elseif basket_element.getUserValidationDatas(app['phraseanet.user'], app).getAgreement() == false and basket_element.getUserValidationDatas(app['phraseanet.user'], app).getAgreement() is not null %}disagree{% endif %}">
|
||||
</div>
|
||||
{% endif %}
|
||||
<a href="/lightbox/ajax/LOAD_BASKET_ELEMENT/{{basket_element.getId()}}/">
|
||||
|
@@ -31,7 +31,7 @@
|
||||
<div class="control-group">
|
||||
<label class="form_label control-label" for="form_login">{% trans 'admin::compte-utilisateur identifiant' %}</label>
|
||||
<div class="controls">
|
||||
<p>{{ user.get_login() }}</p>
|
||||
<p>{{ app['phraseanet.user'].get_login() }}</p>
|
||||
<p class="form_alert help-block"></p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -39,13 +39,13 @@
|
||||
<label class="form_label control-label" for="form_gender">{% trans 'admin::compte-utilisateur sexe' %}</label>
|
||||
<div class="controls">
|
||||
<select>
|
||||
<option {% if user.get_gender() == "0" %}selected{% endif %} value="0" >
|
||||
<option {% if app['phraseanet.user'].get_gender() == "0" %}selected{% endif %} value="0" >
|
||||
{% trans 'admin::compte-utilisateur:sexe: mademoiselle' %}
|
||||
</option>
|
||||
<option {% if user.get_gender() == "1" %}selected{% endif %} value="1" >
|
||||
<option {% if app['phraseanet.user'].get_gender() == "1" %}selected{% endif %} value="1" >
|
||||
{% trans 'admin::compte-utilisateur:sexe: madame' %}
|
||||
</option>
|
||||
<option {% if user.get_gender() == "2" %}selected{% endif %} value="2" >
|
||||
<option {% if app['phraseanet.user'].get_gender() == "2" %}selected{% endif %} value="2" >
|
||||
{% trans 'admin::compte-utilisateur:sexe: monsieur' %}
|
||||
</option>
|
||||
</select>
|
||||
@@ -55,42 +55,42 @@
|
||||
<div class="control-group">
|
||||
<label class="form_label control-label" for="form_lastname">{% trans 'admin::compte-utilisateur nom' %}</label>
|
||||
<div class="controls">
|
||||
<input class="input_element" type="text" name="form_lastname" id="form_lastname" value="{{ user.get_lastname() }}" />
|
||||
<input class="input_element" type="text" name="form_lastname" id="form_lastname" value="{{ app['phraseanet.user'].get_lastname() }}" />
|
||||
<p class="form_alert help-block"></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="form_label control-label" for="form_firstname">{% trans 'admin::compte-utilisateur prenom' %}</label>
|
||||
<div class="controls">
|
||||
<input class="input_element" type="text" name="form_firstname" id="form_firstname" value="{{ user.get_firstname() }}" />
|
||||
<input class="input_element" type="text" name="form_firstname" id="form_firstname" value="{{ app['phraseanet.user'].get_firstname() }}" />
|
||||
<p class="form_alert help-block"></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="form_label control-label" for="form_firstname">{% trans 'admin::compte-utilisateur email' %}</label>
|
||||
<div class="controls">
|
||||
<p>{{ user.get_email() }} <a href="/account/reset-email/" target="_self">{% trans 'login:: Changer mon adresse email' %}</a></p>
|
||||
<p>{{ app['phraseanet.user'].get_email() }} <a href="/account/reset-email/" target="_self">{% trans 'login:: Changer mon adresse email' %}</a></p>
|
||||
<p class="form_alert help-block"></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="form_label control-label" for="form_address">{% trans 'admin::compte-utilisateur adresse' %}</label>
|
||||
<div class="controls">
|
||||
<input class="input_element" type="text" name="form_address" id="form_address" value="{{ user.get_address() }}" />
|
||||
<input class="input_element" type="text" name="form_address" id="form_address" value="{{ app['phraseanet.user'].get_address() }}" />
|
||||
<p class="form_alert help-block"></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="form_label control-label" for="form_zip">{% trans 'admin::compte-utilisateur code postal' %}</label>
|
||||
<div class="controls">
|
||||
<input class="input_element" type="text" name="form_zip" id="form_zip" value="{{ user.get_zipcode() }}" />
|
||||
<input class="input_element" type="text" name="form_zip" id="form_zip" value="{{ app['phraseanet.user'].get_zipcode() }}" />
|
||||
<p class="form_alert help-block"></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="form_label control-label" for="form_city">{% trans 'admin::compte-utilisateur ville' %}</label>
|
||||
<div class="controls">
|
||||
<input class="input_element geoname_field" type="text" name="form_geonameid" id="form_geonameid" geonameid="{{ user.get_geonameid() }}" value="{{ app['geonames'].name_from_id(user.get_geonameid()) }}" />
|
||||
<input class="input_element geoname_field" type="text" name="form_geonameid" id="form_geonameid" geonameid="{{ app['phraseanet.user'].get_geonameid() }}" value="{{ app['geonames'].name_from_id(app['phraseanet.user'].get_geonameid()) }}" />
|
||||
<p class="form_alert help-block"></p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -104,35 +104,35 @@
|
||||
<div class="control-group">
|
||||
<label class="form_label control-label" for="form_function">{% trans 'admin::compte-utilisateur poste' %}</label>
|
||||
<div class="controls">
|
||||
<input class="input_element" type="text" name="form_function" id="form_function" value="{{ user.get_position() }}" />
|
||||
<input class="input_element" type="text" name="form_function" id="form_function" value="{{ app['phraseanet.user'].get_position() }}" />
|
||||
<p class="form_alert help-block"></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="form_label control-label" for="form_company">{% trans 'admin::compte-utilisateur societe' %}</label>
|
||||
<div class="controls">
|
||||
<input class="input_element" type="text" name="form_company" id="form_company" value="{{ user.get_company() }}" />
|
||||
<input class="input_element" type="text" name="form_company" id="form_company" value="{{ app['phraseanet.user'].get_company() }}" />
|
||||
<p class="form_alert help-block"></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="form_label control-label" for="form_activity">{% trans 'admin::compte-utilisateur activite' %}</label>
|
||||
<div class="controls">
|
||||
<input class="input_element" type="text" name="form_activity" id="form_activity" value="{{ user.get_job() }}" />
|
||||
<input class="input_element" type="text" name="form_activity" id="form_activity" value="{{ app['phraseanet.user'].get_job() }}" />
|
||||
<p class="form_alert help-block"></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="form_label control-label" for="form_phone">{% trans 'admin::compte-utilisateur telephone' %}</label>
|
||||
<div class="controls">
|
||||
<input class="input_element" type="text" name="form_phone" id="form_phone" value="{{ user.get_tel() }}" />
|
||||
<input class="input_element" type="text" name="form_phone" id="form_phone" value="{{ app['phraseanet.user'].get_tel() }}" />
|
||||
<p class="form_alert help-block"></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="form_label control-label" for="form_fax">{% trans 'admin::compte-utilisateur fax' %}</label>
|
||||
<div class="controls">
|
||||
<input class="input_element" type="text" name="form_fax" id="form_fax" value="{{ user.get_fax() }}" />
|
||||
<input class="input_element" type="text" name="form_fax" id="form_fax" value="{{ app['phraseanet.user'].get_fax() }}" />
|
||||
<p class="form_alert help-block"></p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -145,7 +145,7 @@
|
||||
<label class="form_label control-label"></label>
|
||||
<div class="controls">
|
||||
<label class="checkbox" for="notif_{{ notification['id'] }}">
|
||||
<input type="checkbox" id="notif_{{ notification['id'] }}" name="notifications[{{ notification['id'] }}]" {% if not user.getPrefs('notification_' ~ notification['id']) == '0' %}checked{% endif %} value="1"/>
|
||||
<input type="checkbox" id="notif_{{ notification['id'] }}" name="notifications[{{ notification['id'] }}]" {% if not app['phraseanet.user'].getPrefs('notification_' ~ notification['id']) == '0' %}checked{% endif %} value="1"/>
|
||||
{{ notification['description'] }}
|
||||
</label>
|
||||
<p class="form_alert help-block"></p>
|
||||
@@ -158,50 +158,50 @@
|
||||
<div class="control-group">
|
||||
<label class="form_label control-label" for="form_activeFTP">{% trans 'admin::compte-utilisateur:ftp: Activer le compte FTP' %}</label>
|
||||
<div class="controls">
|
||||
<input class="input_element" type="checkbox" name="form_activeFTP" id="form_activeFTP" {% if user.get_activeftp() %}checked{% endif %} onchange="if(this.checked){$('#ftpinfos').slideDown();}else{$('#ftpinfos').slideUp();}" />
|
||||
<input class="input_element" type="checkbox" name="form_activeFTP" id="form_activeFTP" {% if app['phraseanet.user'].get_activeftp() %}checked{% endif %} onchange="if(this.checked){$('#ftpinfos').slideDown();}else{$('#ftpinfos').slideUp();}" />
|
||||
<p class="form_alert help-block"></p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="ftpinfos" style="display: {% if user.get_activeftp() %}block{% else %}none{% endif %}">
|
||||
<div id="ftpinfos" style="display: {% if app['phraseanet.user'].get_activeftp() %}block{% else %}none{% endif %}">
|
||||
<div class="control-group">
|
||||
<label class="form_label control-label" for="form_addrFTP">{% trans 'phraseanet:: adresse' %}</label>
|
||||
<div class="controls">
|
||||
<input class="input_element" type="text" name="form_addrFTP" id="form_addrFTP" value="{{ user.get_ftp_address() }}" />
|
||||
<input class="input_element" type="text" name="form_addrFTP" id="form_addrFTP" value="{{ app['phraseanet.user'].get_ftp_address() }}" />
|
||||
<p class="form_alert help-block"></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="form_label control-label" for="form_loginFTP">{% trans 'admin::compte-utilisateur identifiant' %}</label>
|
||||
<div class="controls">
|
||||
<input class="input_element" type="text" name="form_loginFTP" id="form_loginFTP" value="{{ user.get_ftp_login() }}" />
|
||||
<input class="input_element" type="text" name="form_loginFTP" id="form_loginFTP" value="{{ app['phraseanet.user'].get_ftp_login() }}" />
|
||||
<p class="form_alert help-block"></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="form_label control-label" for="form_pwdFTP">{% trans 'admin::compte-utilisateur mot de passe' %}</label>
|
||||
<div class="controls">
|
||||
<input class="input_element" type="text" name="form_pwdFTP" id="form_pwdFTP" value="{{ user.get_ftp_password() }}" />
|
||||
<input class="input_element" type="text" name="form_pwdFTP" id="form_pwdFTP" value="{{ app['phraseanet.user'].get_ftp_password() }}" />
|
||||
<p class="form_alert help-block"></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="form_label control-label" for="form_destFTP">{% trans 'admin::compte-utilisateur:ftp: repertoire de destination ftp' %}</label>
|
||||
<div class="controls">
|
||||
<input class="input_element" type="text" name="form_destFTP" id="form_destFTP" value="{{ user.get_ftp_dir() }}" />
|
||||
<input class="input_element" type="text" name="form_destFTP" id="form_destFTP" value="{{ app['phraseanet.user'].get_ftp_dir() }}" />
|
||||
<p class="form_alert help-block"></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="form_label control-label" for="form_prefixFTPfolder">{% trans 'admin::compte-utilisateur:ftp: prefixe des noms de dossier ftp' %}</label>
|
||||
<div class="controls">
|
||||
<input class="input_element" type="text" name="form_prefixFTPfolder" id="form_prefixFTPfolder" value="{{ user.get_ftp_dir_prefix() }}" />
|
||||
<input class="input_element" type="text" name="form_prefixFTPfolder" id="form_prefixFTPfolder" value="{{ app['phraseanet.user'].get_ftp_dir_prefix() }}" />
|
||||
<p class="form_alert help-block"></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="form_label control-label" for="form_passifFTP">{% trans 'admin::compte-utilisateur:ftp: Utiliser le mode passif' %}</label>
|
||||
<div class="controls">
|
||||
<input class="input_element" type="checkbox" name="form_passifFTP" id="form_passifFTP" {% if user.get_ftp_passif() == "1" %}checked{% endif %} />
|
||||
<input class="input_element" type="checkbox" name="form_passifFTP" id="form_passifFTP" {% if app['phraseanet.user'].get_ftp_passif() == "1" %}checked{% endif %} />
|
||||
<p class="form_alert help-block"></p>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -68,7 +68,7 @@ $(document).ready(function() {
|
||||
<div class="control-group">
|
||||
<label class="form_label control-label" for="form_login">{% trans 'admin::compte-utilisateur identifiant' %}</label>
|
||||
<div class="controls">
|
||||
<p>{{ user.get_login() }}</p>
|
||||
<p>{{ app['phraseanet.user'].get_login() }}</p>
|
||||
<p class="form_alert help-block"></p>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -64,7 +64,7 @@
|
||||
<div class="control-group">
|
||||
<label class="form_label control-label" for="form_login">{% trans 'admin::compte-utilisateur identifiant' %}</label>
|
||||
<div class="controls">
|
||||
<p>{{ user.get_login() }}</p>
|
||||
<p>{{ app['phraseanet.user'].get_login() }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
@@ -80,7 +80,7 @@
|
||||
<span style="font-size: 10px;">{% trans '8 caracteres minimum' %}</span>
|
||||
</label>
|
||||
<div class="controls">
|
||||
<input type="hidden" id="form_login" value="{{ user.get_login() }}" autocomplete="off" />
|
||||
<input type="hidden" id="form_login" value="{{ app['phraseanet.user'].get_login() }}" autocomplete="off" />
|
||||
<input type="password" id="form_password" name="form_password" />
|
||||
<p class="form_alert help-block"></p>
|
||||
<div class="password-meter">
|
||||
|
@@ -34,7 +34,7 @@
|
||||
<li>{{ collection.get_record_amount() }} records <a target="_self" href="/admin/collection/{{ collection.get_base_id() }}/informations/details/">{% trans 'phraseanet:: details' %}</a></li>
|
||||
</ul>
|
||||
|
||||
{% if user.ACL.has_right_on_base(bas_id, 'manage') %}
|
||||
{% if app['phraseanet.user'].ACL.has_right_on_base(bas_id, 'manage') %}
|
||||
<div class="well well-small">
|
||||
<h5>{% trans 'admin::collection:: Gestionnaires des commandes' %}</h5>
|
||||
<form id="admin_adder" action="/admin/collection/{{ bas_id }}/order/admins/" method="post" style="margin:0;">
|
||||
@@ -120,7 +120,7 @@
|
||||
<h5>{% trans 'admin::base:collection: minilogo actuel' %}</h5>
|
||||
{% if collection.getLogo(bas_id, app) is not empty %}
|
||||
<div class="thumbnail" style="width:120px;height:24px;margin-top:5px;margin-bottom:5px">{{ collection.getLogo(bas_id, app) | raw }}</div>
|
||||
{% if user.ACL.has_right_on_base(bas_id, 'manage') %}
|
||||
{% if app['phraseanet.user'].ACL.has_right_on_base(bas_id, 'manage') %}
|
||||
<form method="post" action="/admin/collection/{{ bas_id }}/picture/mini-logo/delete/" style="margin:0;">
|
||||
<button class="btn btn-danger btn-mini" >
|
||||
<i class="icon-trash icon-white"></i>
|
||||
@@ -128,7 +128,7 @@
|
||||
</button>
|
||||
</form>
|
||||
{% endif%}
|
||||
{% elseif user.ACL.has_right_on_base(bas_id, 'manage') %}
|
||||
{% elseif app['phraseanet.user'].ACL.has_right_on_base(bas_id, 'manage') %}
|
||||
<span>{% trans 'admin::base:collection: aucun fichier (minilogo, watermark ...)' %}</span>
|
||||
<form class="fileupload no-ajax" enctype="multipart/form-data" method="post" action="/admin/collection/{{ bas_id }}/picture/mini-logo/" style="margin:0;">
|
||||
<input name="newLogo" type="file" accept="image/*" />
|
||||
@@ -141,7 +141,7 @@
|
||||
<h5>{% trans "Watermark" %}</h5>
|
||||
{% if collection.getWatermark(bas_id) is not empty %}
|
||||
<div class="thumbnail">{{ collection.getWatermark(bas_id)| raw }}</div>
|
||||
{% if user.ACL.has_right_on_base(bas_id, 'manage') %}
|
||||
{% if app['phraseanet.user'].ACL.has_right_on_base(bas_id, 'manage') %}
|
||||
<form method="post" action="/admin/collection/{{ bas_id }}/picture/watermark/delete/" style="margin:0;">
|
||||
<button class="btn btn-danger btn-mini">
|
||||
<i class="icon-trash icon-white"></i>
|
||||
@@ -149,7 +149,7 @@
|
||||
</button>
|
||||
</form>
|
||||
{% endif%}
|
||||
{% elseif user.ACL.has_right_on_base(bas_id, 'manage') %}
|
||||
{% elseif app['phraseanet.user'].ACL.has_right_on_base(bas_id, 'manage') %}
|
||||
<span>{% trans 'admin::base:collection: aucun fichier (minilogo, watermark ...)' %}</span>
|
||||
<form class="fileupload no-ajax" enctype="multipart/form-data" method="post" action="/admin/collection/{{ bas_id }}/picture/watermark/" style="margin:0;">
|
||||
<input name="newWm" type="file" accept="image/*" />
|
||||
@@ -162,7 +162,7 @@
|
||||
<h5>{% trans "Stamp logo" %}</h5>
|
||||
{% if collection.getStamp(bas_id) is not empty %}
|
||||
<div class="thumbnail" style="max-height:120px;max-width:260px">{{ collection.getStamp(bas_id)| raw }}</div>
|
||||
{% if user.ACL.has_right_on_base(bas_id, 'manage') %}
|
||||
{% if app['phraseanet.user'].ACL.has_right_on_base(bas_id, 'manage') %}
|
||||
<form method="post" action="/admin/collection/{{ bas_id }}/picture/stamp-logo/delete/" style="margin:0;">
|
||||
<button class="btn btn-danger btn-mini">
|
||||
<i class="icon-trash icon-white"></i>
|
||||
@@ -170,7 +170,7 @@
|
||||
</button>
|
||||
</form>
|
||||
{% endif%}
|
||||
{% elseif user.ACL.has_right_on_base(bas_id, 'manage') %}
|
||||
{% elseif app['phraseanet.user'].ACL.has_right_on_base(bas_id, 'manage') %}
|
||||
<span>{% trans 'admin::base:collection: aucun fichier (minilogo, watermark ...)' %}</span>
|
||||
<form class="fileupload no-ajax" enctype="multipart/form-data" method="post" action="/admin/collection/{{ bas_id }}/picture/stamp-logo/" style="margin:0;">
|
||||
<input name="newStamp" type="file" accept="image/*" />
|
||||
@@ -183,7 +183,7 @@
|
||||
<h5>{% trans 'admin::base:collection: image de presentation : ' %}</h5>
|
||||
{% if collection.getPresentation(bas_id) is not empty %}
|
||||
<div class="thumbnail" style="width:650px;height:200px">{{ collection.getPresentation(bas_id)| raw }}</div>
|
||||
{% if user.ACL.has_right_on_base(bas_id, 'manage') %}
|
||||
{% if app['phraseanet.user'].ACL.has_right_on_base(bas_id, 'manage') %}
|
||||
<form method="post" action="/admin/collection/{{ bas_id }}/picture/banner/delete/" style="margin:0;">
|
||||
<button class="btn btn-danger btn-mini">
|
||||
<i class="icon-trash icon-white"></i>
|
||||
@@ -191,7 +191,7 @@
|
||||
</button>
|
||||
</form>
|
||||
{% endif%}
|
||||
{% elseif user.ACL.has_right_on_base(bas_id, 'manage') %}
|
||||
{% elseif app['phraseanet.user'].ACL.has_right_on_base(bas_id, 'manage') %}
|
||||
<span>{% trans 'admin::base:collection: aucun fichier (minilogo, watermark ...)' %}</span>
|
||||
<form class="fileupload no-ajax" enctype="multipart/form-data" method="post" action="/admin/collection/{{ bas_id }}/picture/banner/" style="margin:0;">
|
||||
<input name="newBanner" type="file" accept="image/*" />
|
||||
|
@@ -32,10 +32,10 @@
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
{% if user.ACL().get_granted_base(["canadmin"]) | length > 0 %}
|
||||
{% if app['phraseanet.user'].ACL().get_granted_base(["canadmin"]) | length > 0 %}
|
||||
<select id="othcollsel" name="othcollsel" disabled>
|
||||
<option>{% trans "choisir" %}</option>
|
||||
{% for baseId, collection in user.ACL().get_granted_base(["canadmin"]) %}
|
||||
{% for baseId, collection in app['phraseanet.user'].ACL().get_granted_base(["canadmin"]) %}
|
||||
<option value="{{ baseId }}">{{ collection.get_name() }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
|
@@ -101,9 +101,9 @@
|
||||
<tr title="{{ _self.tooltip_connected_users(row) | e }}" class="{% if loop.index is odd %}odd{% else %}even{% endif %} usrTips" id="TREXP_{{ row.getId()}}">
|
||||
|
||||
{% if row.getId() == app['session'].get('session_id') %}
|
||||
<td style="color:#ff0000"><i>{{ user.get_display_name() }}</i></td>
|
||||
<td style="color:#ff0000"><i>{{ row.getUser(app).get_display_name() }}</i></td>
|
||||
{% else %}
|
||||
<td>{{ user.get_display_name() }}</td>
|
||||
<td>{{ row.getUser(app).get_display_name() }}</td>
|
||||
{% endif %}
|
||||
|
||||
<td>
|
||||
|
@@ -37,7 +37,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{% if user.ACL().is_admin() %}
|
||||
{% if app['phraseanet.user'].ACL().is_admin() %}
|
||||
<div class="db_infos">
|
||||
<h2>{% trans 'admin::base: Version' %}</h2>
|
||||
|
||||
|
@@ -30,7 +30,7 @@
|
||||
|
||||
<li>
|
||||
{% trans 'admin::base: Alias' %} : <span id="viewname">{{ databox.get_viewname() }}</span>
|
||||
{% if user.ACL().has_right_on_sbas(databox.get_sbas_id(), "bas_manage") %}
|
||||
{% if app['phraseanet.user'].ACL().has_right_on_sbas(databox.get_sbas_id(), "bas_manage") %}
|
||||
<img src="/skins/icons/edit_0.gif" id="show-view-name" />
|
||||
<div class="well well-small" id="change-view-name" style="display:none;">
|
||||
<form method="post" action="{{ path('admin_database_rename', {'databox_id': databox.get_sbas_id()}) }}">
|
||||
@@ -87,7 +87,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if user.ACL().has_right_on_sbas(databox.get_sbas_id(), "bas_manage") %}
|
||||
{% if app['phraseanet.user'].ACL().has_right_on_sbas(databox.get_sbas_id(), "bas_manage") %}
|
||||
<div class="well well-small">
|
||||
<form method="post" action="{{ path('admin_database_set_indexable', {'databox_id': databox.get_sbas_id()}) }}" style="margin:0;">
|
||||
<label class="checkbox" for="is_indexable">
|
||||
@@ -152,7 +152,7 @@
|
||||
<li>
|
||||
<form class="form-inline" method="post" action="{{ path('admin_database_mount_collection', {'databox_id': databox.get_sbas_id(), 'collection_id' : collId }) }}">
|
||||
{% trans "Monter" %} {{ name }}
|
||||
{% if user.ACL().get_granted_base(["canadmin"]) | length > 0 %}
|
||||
{% if app['phraseanet.user'].ACL().get_granted_base(["canadmin"]) | length > 0 %}
|
||||
<label for="othcollsel">{% trans "admin::base:collection: Vous pouvez choisir une collection de reference pour donenr des acces " %}</label>
|
||||
<select id="othcollsel" name="othcollsel" >
|
||||
<option>{% trans "choisir" %}</option>
|
||||
@@ -201,7 +201,7 @@
|
||||
<h4>{% trans "admin::base: logo impression PDF" %}</h4>
|
||||
<div id="printLogoDIV_OK">
|
||||
<img class="thumbnail" id="printLogo" src="/custom/minilogos/logopdf_{{ databox.get_sbas_id() }}.jpg" />
|
||||
{% if user.ACL().has_right_on_sbas(databox.get_sbas_id(), "bas_manage") %}
|
||||
{% if app['phraseanet.user'].ACL().has_right_on_sbas(databox.get_sbas_id(), "bas_manage") %}
|
||||
<form method="post" target="right" action="{{ path('admin_database_delete_logo', {'databox_id': databox.get_sbas_id()}) }}" >
|
||||
<button class="btn btn-mini btn-danger">{% trans "admin::base:collection: supprimer le logo" %}</button>
|
||||
</form>
|
||||
@@ -209,7 +209,7 @@
|
||||
</div>
|
||||
<div id="printLogoDIV_NONE">
|
||||
{% trans "admin::base:collection: aucun fichier (minilogo, watermark ...)" %}
|
||||
{% if user.ACL().has_right_on_sbas(databox.get_sbas_id(), "bas_manage") %}
|
||||
{% if app['phraseanet.user'].ACL().has_right_on_sbas(databox.get_sbas_id(), "bas_manage") %}
|
||||
<input id="fileupload" class="no-ajax" type="file" name="newLogoPdf" data-url="{{ path('admin_database_submit_logo', {'databox_id': databox.get_sbas_id()}) }}" accept="image/jpg, image/jpeg">
|
||||
<i>{% trans "admin::base: envoyer un logo (jpeg 35px de hauteur max)" %}</i>
|
||||
{% endif %}
|
||||
|
@@ -337,16 +337,16 @@
|
||||
</div>
|
||||
</td>
|
||||
<td style="text-align:center;width:19px;" title="{% trans 'Allowed to publish' %}">
|
||||
{{_self.format_checkbox(user, rights, 'bas_chupub', users, 'sbas')}}
|
||||
{{_self.format_checkbox(app['phraseanet.user'], rights, 'bas_chupub', users, 'sbas')}}
|
||||
</td>
|
||||
<td style="text-align:center;width:19px;" title="{% trans 'Manage Thesaurus' %}">
|
||||
{{_self.format_checkbox(user, rights, 'bas_modif_th', users, 'sbas')}}
|
||||
{{_self.format_checkbox(app['phraseanet.user'], rights, 'bas_modif_th', users, 'sbas')}}
|
||||
</td>
|
||||
<td style="text-align:center;width:19px;" title="{% trans 'Manage Database' %}">
|
||||
{{_self.format_checkbox(user, rights, 'bas_manage', users, 'sbas')}}
|
||||
{{_self.format_checkbox(app['phraseanet.user'], rights, 'bas_manage', users, 'sbas')}}
|
||||
</td>
|
||||
<td style="text-align:center;width:19px;" title="{% trans 'Manage DB fields' %}">
|
||||
{{_self.format_checkbox(user, rights, 'bas_modify_struct', users, 'sbas')}}
|
||||
{{_self.format_checkbox(app['phraseanet.user'], rights, 'bas_modify_struct', users, 'sbas')}}
|
||||
</td>
|
||||
<td style="text-align:center;width:48px;"></td>
|
||||
</tr>
|
||||
@@ -356,25 +356,25 @@
|
||||
{{rights['base_id']|bas_names(app)}}
|
||||
</td>
|
||||
<td class="users_col case_right_access" title="{% trans 'Access' %}">
|
||||
{{_self.format_checkbox(user, rights, 'access', users, 'base')}}
|
||||
{{_self.format_checkbox(app['phraseanet.user'], rights, 'access', users, 'base')}}
|
||||
</td>
|
||||
<td class="users_col case_right_actif" title="{% trans 'Active' %}">
|
||||
{{_self.format_checkbox(user, rights, 'actif', users, 'base')}}
|
||||
{{_self.format_checkbox(app['phraseanet.user'], rights, 'actif', users, 'base')}}
|
||||
</td>
|
||||
<td class="users_col case_right_canputinalbum" title="{% trans 'Allowed to add in basket' %}">
|
||||
{{_self.format_checkbox(user, rights, 'canputinalbum', users, 'base')}}
|
||||
{{_self.format_checkbox(app['phraseanet.user'], rights, 'canputinalbum', users, 'base')}}
|
||||
</td>
|
||||
<td class="users_col case_right_candwnldpreview" title="{% trans 'Access to preview' %}">
|
||||
{{_self.format_checkbox(user, rights, 'candwnldpreview', users, 'base')}}
|
||||
{{_self.format_checkbox(app['phraseanet.user'], rights, 'candwnldpreview', users, 'base')}}
|
||||
</td>
|
||||
<td class="users_col case_right_nowatermark" title="{% trans 'Remove watermark' %}">
|
||||
{{_self.format_checkbox(user, rights, 'nowatermark', users, 'base')}}
|
||||
{{_self.format_checkbox(app['phraseanet.user'], rights, 'nowatermark', users, 'base')}}
|
||||
</td>
|
||||
<td class="users_col case_right_candwnldhd" title="{% trans 'Access to HD' %}">
|
||||
{{_self.format_checkbox(user, rights, 'candwnldhd', users, 'base')}}
|
||||
{{_self.format_checkbox(app['phraseanet.user'], rights, 'candwnldhd', users, 'base')}}
|
||||
</td>
|
||||
<td class="users_col case_right_cancmd" title="{% trans 'Allowed to order' %}">
|
||||
{{_self.format_checkbox(user, rights, 'cancmd', users, 'base')}}
|
||||
{{_self.format_checkbox(app['phraseanet.user'], rights, 'cancmd', users, 'base')}}
|
||||
</td>
|
||||
<td class="users_col case_right_quota" title="{% trans 'Set download quotas' %}">
|
||||
<div class="quota_trigger quota_{{rights['base_id']}}">
|
||||
@@ -410,34 +410,34 @@
|
||||
<td style="text-align:center;width:100px;"></td>
|
||||
|
||||
<td class="users_col case_right_canaddrecord" title="{% trans 'Allowed to add' %}">
|
||||
{{_self.format_checkbox(user, rights, 'canaddrecord', users, 'base')}}
|
||||
{{_self.format_checkbox(app['phraseanet.user'], rights, 'canaddrecord', users, 'base')}}
|
||||
</td>
|
||||
<td class="users_col case_right_canmodifrecord" title="{% trans 'Allowed to edit' %}">
|
||||
{{_self.format_checkbox(user, rights, 'canmodifrecord', users, 'base')}}
|
||||
{{_self.format_checkbox(app['phraseanet.user'], rights, 'canmodifrecord', users, 'base')}}
|
||||
</td>
|
||||
<td class="users_col case_right_chgstatus" title="{% trans 'Allowed to change statuses' %}">
|
||||
{{_self.format_checkbox(user, rights, 'chgstatus', users, 'base')}}
|
||||
{{_self.format_checkbox(app['phraseanet.user'], rights, 'chgstatus', users, 'base')}}
|
||||
</td>
|
||||
<td class="users_col case_right_candeleterecord" title="{% trans 'Allowed to delete' %}">
|
||||
{{_self.format_checkbox(user, rights, 'candeleterecord', users, 'base')}}
|
||||
{{_self.format_checkbox(app['phraseanet.user'], rights, 'candeleterecord', users, 'base')}}
|
||||
</td>
|
||||
<td class="users_col case_right_imgtools" title="{% trans 'Access to image tools' %}">
|
||||
{{_self.format_checkbox(user, rights, 'imgtools', users, 'base')}}
|
||||
{{_self.format_checkbox(app['phraseanet.user'], rights, 'imgtools', users, 'base')}}
|
||||
</td>
|
||||
<td class="users_col case_right_canadmin" title="{% trans 'Manage users' %}">
|
||||
{{_self.format_checkbox(user, rights, 'canadmin', users, 'base')}}
|
||||
{{_self.format_checkbox(app['phraseanet.user'], rights, 'canadmin', users, 'base')}}
|
||||
</td>
|
||||
<td class="users_col case_right_canreport" title="{% trans 'Allowed to access report' %}">
|
||||
{{_self.format_checkbox(user, rights, 'canreport', users, 'base')}}
|
||||
{{_self.format_checkbox(app['phraseanet.user'], rights, 'canreport', users, 'base')}}
|
||||
</td>
|
||||
<td class="users_col case_right_canpush" title="{% trans 'Allowed to push' %}">
|
||||
{{_self.format_checkbox(user, rights, 'canpush', users, 'base')}}
|
||||
{{_self.format_checkbox(app['phraseanet.user'], rights, 'canpush', users, 'base')}}
|
||||
</td>
|
||||
<td class="users_col case_right_manage" title="{% trans 'Manage collection' %}">
|
||||
{{_self.format_checkbox(user, rights, 'manage', users, 'base')}}
|
||||
{{_self.format_checkbox(app['phraseanet.user'], rights, 'manage', users, 'base')}}
|
||||
</td>
|
||||
<td class="users_col case_right_modify" title="{% trans 'Manage values lists' %}">
|
||||
{{_self.format_checkbox(user, rights, 'modify_struct', users, 'base')}}
|
||||
{{_self.format_checkbox(app['phraseanet.user'], rights, 'modify_struct', users, 'base')}}
|
||||
</td>
|
||||
<td colspan="5">
|
||||
|
||||
|
@@ -97,7 +97,7 @@
|
||||
<div class="controls">
|
||||
<select id="edit_pub_base_id" class="input-large" name="base_id" {% if feed.is_public() %}disabled="disabled"{% endif %}>
|
||||
<option value="">{% trans 'Non-Restreinte (publique)' %}</option>
|
||||
{% for databox in user.ACL().get_granted_sbas('bas_chupub') %}
|
||||
{% for databox in app['phraseanet.user'].ACL().get_granted_sbas('bas_chupub') %}
|
||||
<optgroup label="{{ databox.get_viewname() }}">
|
||||
{% for collection in databox.get_collections() %}
|
||||
<option {% if feed.get_collection() and feed.get_collection().get_base_id() == collection.get_base_id() %}selected="selected"{% endif %} value="{{ collection.get_base_id() }}">{{ collection.get_name() }}</option>
|
||||
|
@@ -21,7 +21,7 @@
|
||||
<div class="controls">
|
||||
<select id="add_pub_base_id" class="input-large" name="base_id">
|
||||
<option value="">{% trans 'Non-Restreinte (publique)' %}</option>
|
||||
{% for databox in user.ACL().get_granted_sbas('bas_chupub') %}
|
||||
{% for databox in app['phraseanet.user'].ACL().get_granted_sbas('bas_chupub') %}
|
||||
<optgroup label="{{ databox.get_viewname() }}">
|
||||
{% for collection in databox.get_collections() %}
|
||||
<option value="{{ collection.get_base_id() }}">{{ collection.get_name() }}</option>
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
<ul id="tree" class="filetree">
|
||||
|
||||
{% if user.ACL().is_admin() %}
|
||||
{% if app['phraseanet.user'].ACL().is_admin() %}
|
||||
<li>
|
||||
<a target="right" href="/admin/dashboard/" class="ajax">
|
||||
<img src="/skins/admin/Dashboard.png" />
|
||||
@@ -15,7 +15,7 @@
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if user.ACL().is_admin() %}
|
||||
{% if app['phraseanet.user'].ACL().is_admin() %}
|
||||
<li>
|
||||
<a target="right" href="/admin/setup/" class="ajax">
|
||||
<img src="/skins/admin/Setup.png" />
|
||||
@@ -38,7 +38,7 @@
|
||||
</a>
|
||||
</li>
|
||||
|
||||
{% if user.ACL().has_right('manageusers') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right('manageusers') %}
|
||||
<li class="{% if feature == 'users' %}selected{% endif %}">
|
||||
<a target="right" href="/admin/users/search/" class="ajax zone_editusers">
|
||||
<img src="/skins/admin/Users.png" />
|
||||
@@ -53,7 +53,7 @@
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if user.ACL().has_right('bas_chupub') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right('bas_chupub') %}
|
||||
<li class="">
|
||||
<a target="right" href="/admin/publications/list/" class="ajax">
|
||||
<img src="/skins/icons/rss16.png" />
|
||||
@@ -62,7 +62,7 @@
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if user.ACL().has_right('taskmanager') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right('taskmanager') %}
|
||||
<li class="{% if feature == 'taskmanager' %}selected{% endif %}">
|
||||
<a target="right" href="/admin/task-manager/tasks/" class="ajax">
|
||||
<img src="/skins/admin/TaskManager.png" />
|
||||
@@ -105,7 +105,7 @@
|
||||
</div>
|
||||
<ul>
|
||||
|
||||
{% if user.ACL().has_right_on_sbas( sbas_id , 'bas_modify_struct') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right_on_sbas( sbas_id , 'bas_modify_struct') %}
|
||||
<li>
|
||||
<a target="right" class="ajax" href="/admin/structure/{{ sbas_id }}/">
|
||||
<img src="/skins/icons/miniadjust01.gif"/>
|
||||
@@ -146,7 +146,7 @@
|
||||
{% set seeUsrGene = false %}
|
||||
|
||||
{% for coll in databox.get_collections() %}
|
||||
{% if user.ACL.has_right_on_base( coll.get_base_id() , 'canadmin') %}
|
||||
{% if app['phraseanet.user'].ACL.has_right_on_base( coll.get_base_id() , 'canadmin') %}
|
||||
{% set seeUsrGene = true %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
@@ -161,9 +161,9 @@
|
||||
{% endif %}
|
||||
|
||||
{% for collection in databox.get_collections() %}
|
||||
{% if (collection.get_base_id() in user.ACL.get_granted_base(['canadmin'])|keys
|
||||
or collection.get_base_id() in user.ACL.get_granted_base(['manage'])|keys
|
||||
or collection.get_base_id() in user.ACL.get_granted_base(['modify_struct'])|keys) %}
|
||||
{% if (collection.get_base_id() in app['phraseanet.user'].ACL.get_granted_base(['canadmin'])|keys
|
||||
or collection.get_base_id() in app['phraseanet.user'].ACL.get_granted_base(['manage'])|keys
|
||||
or collection.get_base_id() in app['phraseanet.user'].ACL.get_granted_base(['modify_struct'])|keys) %}
|
||||
|
||||
<li>
|
||||
<div style="padding:0 0 2px 0;">
|
||||
@@ -173,7 +173,7 @@
|
||||
</div>
|
||||
<ul>
|
||||
|
||||
{% if (user.ACL.has_right_on_base(collection.get_base_id(), 'modify_struct')) %}
|
||||
{% if (app['phraseanet.user'].ACL.has_right_on_base(collection.get_base_id(), 'modify_struct')) %}
|
||||
<li>
|
||||
<a target="right" href="/admin/collection/{{ collection.get_base_id() }}/suggested-values/" class="ajax">
|
||||
<img src="/skins/icons/foldph20open_0.gif"/>
|
||||
@@ -182,10 +182,10 @@
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if (user.ACL.has_right_on_base( collection.get_base_id(), 'canadmin')) %}
|
||||
{% if (user.ACL.has_right_on_base( collection.get_base_id(), 'canmodifrecord')
|
||||
and user.ACL.has_right_on_base( collection.get_base_id(), 'manage')
|
||||
and user.ACL.has_right_on_sbas( sbas_id, 'bas_manage') ) %}
|
||||
{% if (app['phraseanet.user'].ACL.has_right_on_base( collection.get_base_id(), 'canadmin')) %}
|
||||
{% if (app['phraseanet.user'].ACL.has_right_on_base( collection.get_base_id(), 'canmodifrecord')
|
||||
and app['phraseanet.user'].ACL.has_right_on_base( collection.get_base_id(), 'manage')
|
||||
and app['phraseanet.user'].ACL.has_right_on_sbas( sbas_id, 'bas_manage') ) %}
|
||||
<li>
|
||||
<a target="right" href="/admin/users/search/?base_id[]={{ collection.get_base_id() }}" class="ajax">
|
||||
<img src="/skins/admin/Users.png"/>
|
||||
|
@@ -55,7 +55,7 @@
|
||||
</div>
|
||||
{% else %}
|
||||
{% if user is not none %}
|
||||
{% set username = '<b>' ~ user.get_display_name() ~ '</b>' %}
|
||||
{% set username = '<b>' ~ app['phraseanet.user'].get_display_name() ~ '</b>' %}
|
||||
<div id="hello-box" class="span6 offset3">
|
||||
<p class="login_hello">
|
||||
{% trans %}
|
||||
|
@@ -38,7 +38,7 @@
|
||||
</div>
|
||||
|
||||
{% if user is not none %}
|
||||
{% set username = '<b>' ~ user.get_display_name() ~ '</b>' %}
|
||||
{% set username = '<b>' ~ app['phraseanet.user'].get_display_name() ~ '</b>' %}
|
||||
<div id="hello-box" class="span6 offset3">
|
||||
<p class="login_hello">
|
||||
{% trans %}
|
||||
|
@@ -6,7 +6,7 @@
|
||||
{% import 'common/caption_templates/preview.html.twig' as cap_prev %}
|
||||
|
||||
{% if user %}
|
||||
{% set business = user.ACL().has_right_on_base(record.get_base_id(), 'canmodifrecord') %}
|
||||
{% set business = app['phraseanet.user'].ACL().has_right_on_base(record.get_base_id(), 'canmodifrecord') %}
|
||||
{% else %}
|
||||
{% set business = false %}
|
||||
{% endif %}
|
||||
|
@@ -152,7 +152,7 @@
|
||||
<div>
|
||||
{% trans 'export::mail: destinataire' %}
|
||||
<input type="text" value="" name="destmail" class="required span4">
|
||||
{% set my_email = user.get_email() %}
|
||||
{% set my_email = app['phraseanet.user'].get_email() %}
|
||||
{% if my_email != '' %}
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="reading_confirm" value="1" />
|
||||
@@ -263,9 +263,9 @@
|
||||
<label class="control-label" for="sexe">{% trans 'Civility' %}</label>
|
||||
<div class="controls">
|
||||
<select name="sexe" id="sexe">
|
||||
<option {% if user.get_gender == 0 %}selected="selected"{% endif %} value="0">{% trans 'admin::compte-utilisateur:sexe: mademoiselle' %}</option>
|
||||
<option {% if user.get_gender == 1 %}selected="selected"{% endif %} value="1">{% trans 'admin::compte-utilisateur:sexe: madame' %}</option>
|
||||
<option {% if user.get_gender == 2 %}selected="selected"{% endif %} value="2">{% trans 'admin::compte-utilisateur:sexe: monsieur' %}</option>
|
||||
<option {% if app['phraseanet.user'].get_gender == 0 %}selected="selected"{% endif %} value="0">{% trans 'admin::compte-utilisateur:sexe: mademoiselle' %}</option>
|
||||
<option {% if app['phraseanet.user'].get_gender == 1 %}selected="selected"{% endif %} value="1">{% trans 'admin::compte-utilisateur:sexe: madame' %}</option>
|
||||
<option {% if app['phraseanet.user'].get_gender == 2 %}selected="selected"{% endif %} value="2">{% trans 'admin::compte-utilisateur:sexe: monsieur' %}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -273,70 +273,70 @@
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="usr_lastname">{% trans 'admin::compte-utilisateur nom' %} *</label>
|
||||
<div class="controls">
|
||||
<input id='usr_lastname' type="text" name="usr_nom" class="required" value="{{ user.get_lastname() }}"/>
|
||||
<input id='usr_lastname' type="text" name="usr_nom" class="required" value="{{ app['phraseanet.user'].get_lastname() }}"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="usr_firstname">{% trans 'admin::compte-utilisateur prenom' %} *</label>
|
||||
<div class="controls">
|
||||
<input type="text" name="usr_prenom" class="required" id="usr_firstname" value="{{ user.get_firstname() }}"/>
|
||||
<input type="text" name="usr_prenom" class="required" id="usr_firstname" value="{{ app['phraseanet.user'].get_firstname() }}"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="usr_mail"> {% trans 'admin::compte-utilisateur email' %} *</label>
|
||||
<div class="controls">
|
||||
<input class="required" type="text" name="usr_mail" id="usr_mail" value="{{ user.get_email() }}"/>
|
||||
<input class="required" type="text" name="usr_mail" id="usr_mail" value="{{ app['phraseanet.user'].get_email() }}"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="usr_tel">{% trans 'admin::compte-utilisateur telephone' %}</label>
|
||||
<div class="controls">
|
||||
<input type="text" name="tel" id="usr_tel" value="{{ user.get_tel() }}"/>
|
||||
<input type="text" name="tel" id="usr_tel" value="{{ app['phraseanet.user'].get_tel() }}"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="usr_societe">{% trans 'admin::compte-utilisateur societe' %}</label>
|
||||
<div class="controls">
|
||||
<input type="text" name="societe" id="usr_societe" value="{{ user.get_company() }}"/>
|
||||
<input type="text" name="societe" id="usr_societe" value="{{ app['phraseanet.user'].get_company() }}"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="usr_function">{% trans 'admin::compte-utilisateur poste' %}</label>
|
||||
<div class="controls">
|
||||
<input type="text" name="fonction" id="usr_fonction" value="{{ user.get_job() }}"/>
|
||||
<input type="text" name="fonction" id="usr_fonction" value="{{ app['phraseanet.user'].get_job() }}"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="usr_address">{% trans 'admin::compte-utilisateur adresse' %} *</label>
|
||||
<div class="controls">
|
||||
<input class="required" type="text" name="adresse" id="usr_adresse" value="{{ user.get_address() }}"/>
|
||||
<input class="required" type="text" name="adresse" id="usr_adresse" value="{{ app['phraseanet.user'].get_address() }}"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="usr_zip_code">{% trans 'admin::compte-utilisateur code postal' %} *</label>
|
||||
<div class="controls">
|
||||
<input id="usr_zip_code" type="text" name="cpostal" name="cpostal" class="required" value="{{ user.get_zipcode() }}"/>
|
||||
<input id="usr_zip_code" type="text" name="cpostal" name="cpostal" class="required" value="{{ app['phraseanet.user'].get_zipcode() }}"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="command_geoname_field">{% trans 'admin::compte-utilisateur ville' %} *</label>
|
||||
<div class="controls">
|
||||
<input class="required geoname_field" type="text" name="geonameid" id="command_geoname_field" geonameid="{{ user.get_geonameid() }}" value="{{ app['geonames'].name_from_id(user.get_geonameid()) }}" />
|
||||
<input class="required geoname_field" type="text" name="geonameid" id="command_geoname_field" geonameid="{{ app['phraseanet.user'].get_geonameid() }}" value="{{ app['geonames'].name_from_id(app['phraseanet.user'].get_geonameid()) }}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="usr_fax">{% trans 'admin::compte-utilisateur fax' %}</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="usr_fax" name="fax" value="{{ user.get_fax() }}"/>
|
||||
<input type="text" id="usr_fax" name="fax" value="{{ app['phraseanet.user'].get_fax() }}"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -516,7 +516,7 @@
|
||||
$('input[name="obj[]"]:checked', $('#download')).each(function(i,n){
|
||||
$('input[name="obj[]"][value="'+$(n).val()+'"]', $('#sendmail')).attr('checked', true);
|
||||
});
|
||||
$('input[name="destmail"]', $('#sendmail')).val("{{user.get_email()}}");
|
||||
$('input[name="destmail"]', $('#sendmail')).val("{{app['phraseanet.user'].get_email()}}");
|
||||
$('#dialog_dwnl .tabs').tabs('select',1);
|
||||
}
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{% macro prod(record, user, entry_id)%}
|
||||
{% macro prod(record, entry_id)%}
|
||||
{% if not entry_id %}
|
||||
<a style="float:right;padding:0;margin:0;cursor:pointer;" class="contextMenuTrigger"
|
||||
id="contextTrigger_{{record.get_base_id}}_{{record.get_record_id}}">▼</a>
|
||||
@@ -8,7 +8,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<div class="context-menu context-menu-theme-vista">
|
||||
{% if user.ACL.has_right_on_base(record.get_base_id, 'canputinalbum') and not record.is_grouping() %}
|
||||
{% if app['phraseanet.user'].ACL.has_right_on_base(record.get_base_id, 'canputinalbum') and not record.is_grouping() %}
|
||||
<div title="" class="context-menu-item">
|
||||
<div class="context-menu-item-inner"
|
||||
onclick="evt_add_in_chutier('{{record.get_sbas_id}}','{{record.get_record_id}}',false,this);return(false);">
|
||||
@@ -16,7 +16,7 @@
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if user.ACL.has_right_on_base(record.get_base_id, 'candwnldpreview') or user.ACL.has_right_on_base(record.get_base_id, 'candwnldhd') %}
|
||||
{% if app['phraseanet.user'].ACL.has_right_on_base(record.get_base_id, 'candwnldpreview') or app['phraseanet.user'].ACL.has_right_on_base(record.get_base_id, 'candwnldhd') %}
|
||||
<div title="" class="context-menu-item">
|
||||
<div class="context-menu-item-inner"
|
||||
onclick="evt_dwnl('{{record.get_sbas_id}}_{{record.get_record_id}}',false,this);return(false);">
|
||||
|
@@ -33,7 +33,7 @@
|
||||
{% endif %}
|
||||
</li>
|
||||
|
||||
{% if app['browser'].isNewGeneration and registry.get('GV_thesaurus') == true and user.ACL.has_access_to_module('thesaurus') %}
|
||||
{% if app['browser'].isNewGeneration and registry.get('GV_thesaurus') == true and app['phraseanet.user'].ACL.has_access_to_module('thesaurus') %}
|
||||
<li>
|
||||
<a target="_blank" href="/thesaurus2/">
|
||||
<span class="{% if module == "thesaurus" %}selected{% endif %}">
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
|
||||
{# MODULE #}
|
||||
{% if user.ACL.has_access_to_module('admin') %}
|
||||
{% if app['phraseanet.user'].ACL.has_access_to_module('admin') %}
|
||||
<li>
|
||||
<a target="_blank" href="/admin/">
|
||||
<span class="{% if module == "admin" %}selected{% endif %}">
|
||||
@@ -56,7 +56,7 @@
|
||||
{% endif %}
|
||||
|
||||
{# MODULE #}
|
||||
{% if user.ACL.has_access_to_module('report') %}
|
||||
{% if app['phraseanet.user'].ACL.has_access_to_module('report') %}
|
||||
<li>
|
||||
<a target="_blank" href="/report/">
|
||||
<span class="{% if module == "report" %}selected{% endif %}">
|
||||
@@ -77,7 +77,7 @@
|
||||
|
||||
{# MODULE #}
|
||||
{% if module == "prod" %}
|
||||
{% if user.ACL.has_access_to_module('upload') %}
|
||||
{% if app['phraseanet.user'].ACL.has_access_to_module('upload') %}
|
||||
<li>
|
||||
{% set link = '/prod/upload/' %}
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if module == "prod" and user.ACL.has_right('order_master') %}
|
||||
{% if module == "prod" and app['phraseanet.user'].ACL.has_right('order_master') %}
|
||||
<li>
|
||||
<a href="{{ path('prod_orders') }}" class="dialog full-dialog" title="{% trans 'Orders manager' %}">
|
||||
<span>
|
||||
@@ -143,14 +143,14 @@
|
||||
{% endif %}
|
||||
<li>
|
||||
{% if app.isAuthenticated() %}
|
||||
{% if user.is_guest %}
|
||||
{% if app['phraseanet.user'].is_guest %}
|
||||
<span>
|
||||
{% trans 'Guest' %}
|
||||
</span>
|
||||
{% else %}
|
||||
<a target="_blank" href="/account/" title="{% trans 'login:: Mon compte' %}">
|
||||
<span>
|
||||
{{user.get_login()}}
|
||||
{{app['phraseanet.user'].get_login()}}
|
||||
</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
@@ -9,7 +9,7 @@
|
||||
|
||||
{% set previewHtml5 = null %}
|
||||
|
||||
{% if user.ACL().has_access_to_subdef(record, 'preview') %}
|
||||
{% if app['phraseanet.user'].ACL().has_access_to_subdef(record, 'preview') %}
|
||||
{% set preview_obj = record.get_preview() %}
|
||||
{% else %}
|
||||
{% set preview_obj = record.get_thumbnail() %}
|
||||
|
@@ -14,11 +14,11 @@
|
||||
</table>
|
||||
{% if basket.getValidation() %}
|
||||
<div style="margin-left:10px;width:220px;">
|
||||
{{ basket.getValidation().getValidationString(app, user) }}
|
||||
{{ 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(user, app).getCanSeeOthers() or validation_data.getParticipant().getUser(app) == app['phraseanet.user'] %}
|
||||
{% 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 %}
|
||||
@@ -27,19 +27,19 @@
|
||||
{% set classuser = 'disagree' %}
|
||||
{% endif %}
|
||||
{% set participant = validation_data.getParticipant().getUser(app) %}
|
||||
<li class="{% if participant.get_id() == user.get_id() %}me{% endif %} {{classuser}} userchoice">{{participant.get_display_name()}}</li>
|
||||
<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(user, app).getCanAgree() %}
|
||||
{% 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(user, app).getAgreement() %}
|
||||
{% 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>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{% if basket.getValidation() and basket.getValidation().getParticipant(user, app).getCanAgree() %}
|
||||
{% if basket.getValidation() and basket.getValidation().getParticipant(app['phraseanet.user'], app).getCanAgree() %}
|
||||
<button class="confirm_report" title="{% trans 'validation::envoyer mon rapport'%}">
|
||||
<img src="/skins/lightbox/envoyerie6.gif"/>
|
||||
{% trans 'validation::envoyer mon rapport'%}
|
||||
|
@@ -84,7 +84,7 @@
|
||||
<div class="right_column_wrapper right_column_wrapper_caption left unselectable" style="width:230px;height:auto;">
|
||||
<div id="record_infos">
|
||||
<div class="container">
|
||||
{% set business = user.ACL().has_right_on_base(first_item.get_record().get_base_id(), 'canmodifrecord') %}
|
||||
{% set business = app['phraseanet.user'].ACL().has_right_on_base(first_item.get_record().get_base_id(), 'canmodifrecord') %}
|
||||
{% if first_item %}
|
||||
{{caption.format_caption(first_item.get_record(), '', null, business)}}
|
||||
{% endif %}
|
||||
|
@@ -56,7 +56,7 @@
|
||||
</h2>
|
||||
{% if basket.getValidation().isFinished() %}
|
||||
{% trans '(validation) session terminee' %}
|
||||
{% elseif basket.getValidation().getParticipant(user, app).getIsConfirmed() %}
|
||||
{% elseif basket.getValidation().getParticipant(app['phraseanet.user'], app).getIsConfirmed() %}
|
||||
{% trans '(validation) envoyee' %}
|
||||
{% else %}
|
||||
{% trans '(validation) a envoyer' %}
|
||||
@@ -72,7 +72,7 @@
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div>{{ basket.getDescription() }}</div>
|
||||
<div>{{ basket.getValidation.getValidationString(app, user) }}</div>
|
||||
<div>{{ basket.getValidation.getValidationString(app, app['phraseanet.user']) }}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@@ -9,9 +9,9 @@
|
||||
{% if basket.getValidation() %}
|
||||
<div class="agreement">
|
||||
<img src="/skins/lightbox/agree.png"
|
||||
class="agree_button {%if element.getUserValidationDatas(user, app).getAgreement() == false or element.getUserValidationDatas(user, app).getAgreement() is null %}not_decided{%endif%} agree_{{element.getId()}}" />
|
||||
class="agree_button {%if element.getUserValidationDatas(app['phraseanet.user'], app).getAgreement() == false or element.getUserValidationDatas(app['phraseanet.user'], app).getAgreement() is null %}not_decided{%endif%} agree_{{element.getId()}}" />
|
||||
<img src="/skins/lightbox/disagree.png"
|
||||
class="disagree_button {%if element.getUserValidationDatas(user, app).getAgreement() == true or element.getUserValidationDatas(user, app).getAgreement() is null %}not_decided{%endif%} disagree_{{element.getId()}}" />
|
||||
class="disagree_button {%if element.getUserValidationDatas(app['phraseanet.user'], app).getAgreement() == true or element.getUserValidationDatas(app['phraseanet.user'], app).getAgreement() is null %}not_decided{%endif%} disagree_{{element.getId()}}" />
|
||||
</div>
|
||||
{% endif %}
|
||||
{{thumbnail.format(element.getRecord(app).get_thumbnail,114,85, '', true, false)}}
|
||||
|
@@ -102,7 +102,7 @@
|
||||
<div id="record_infos">
|
||||
<div class="container">
|
||||
{% if basket_element %}
|
||||
{% set business = user.ACL().has_right_on_base(basket_element.getRecord(app).get_base_id(), 'canmodifrecord') %}
|
||||
{% set business = app['phraseanet.user'].ACL().has_right_on_base(basket_element.getRecord(app).get_base_id(), 'canmodifrecord') %}
|
||||
{{caption.format_caption(basket_element.getRecord(app), '', null, business)}}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
@@ -13,10 +13,10 @@
|
||||
</tbody>
|
||||
</table>
|
||||
{% if basket.getValidation() %}
|
||||
<div>{{ basket.getValidation().getValidationString(app, user) }}</div>
|
||||
<div>{{ basket.getValidation().getValidationString(app, app['phraseanet.user']) }}</div>
|
||||
<ul>
|
||||
{% for choice in basket_element.getValidationDatas() %}
|
||||
{% if basket.getValidation().getParticipant(user, app).getCanSeeOthers() or choice.getParticipant().getUser(app) == app['phraseanet.user'] %}
|
||||
{% if basket.getValidation().getParticipant(app['phraseanet.user'], app).getCanSeeOthers() or choice.getParticipant().getUser(app) == app['phraseanet.user'] %}
|
||||
{% if choice.getAgreement() == true %}
|
||||
{% set classuser = 'agree' %}
|
||||
{% elseif choice.getAgreement() is null %}
|
||||
@@ -25,17 +25,17 @@
|
||||
{% set classuser = 'disagree' %}
|
||||
{% endif %}
|
||||
{% set participant = choice.getParticipant().getUser(app) %}
|
||||
<li class="{% if participant.get_id() == user.get_id() %}me{% endif %} {{classuser}} userchoice">{{participant.get_display_name()}}</li>
|
||||
<li class="{% if participant.get_id() == app['phraseanet.user'].get_id() %}me{% endif %} {{classuser}} userchoice">{{participant.get_display_name()}}</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="PNB user_infos">
|
||||
{% if basket_element and basket_element.getBasket().getValidation() and basket.getValidation().getParticipant(user, app).getCanAgree() %}
|
||||
{% if basket_element and basket_element.getBasket().getValidation() and basket.getValidation().getParticipant(app['phraseanet.user'], app).getCanAgree() %}
|
||||
<div class="PNB choices">
|
||||
<div style="height:60px;">
|
||||
{% set agreement = basket_element.getUserValidationDatas(user, app).getAgreement() %}
|
||||
{% set agreement = basket_element.getUserValidationDatas(app['phraseanet.user'], app).getAgreement() %}
|
||||
<div 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-big.png"/><span class="title15">{% trans 'validation:: OUI' %}</span>
|
||||
</div>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{% if basket.getValidation() and basket.getValidation().getParticipant(user, app).getCanAgree() %}
|
||||
{% if basket.getValidation() and basket.getValidation().getParticipant(app['phraseanet.user'], app).getCanAgree() %}
|
||||
<button class="confirm_report" title="{% trans 'validation::envoyer mon rapport'%}">
|
||||
<img src="/skins/lightbox/envoyer.png"/>
|
||||
{% trans 'validation::envoyer mon rapport'%}
|
||||
|
@@ -80,7 +80,7 @@
|
||||
<div class="right_column_wrapper caption right_column_wrapper_caption PNB">
|
||||
<div id="record_infos" class="PNB">
|
||||
<div class="container PNB">
|
||||
{% set business = user.ACL().has_right_on_base(first_item.get_record().get_base_id(), 'canmodifrecord') %}
|
||||
{% set business = app['phraseanet.user'].ACL().has_right_on_base(first_item.get_record().get_base_id(), 'canmodifrecord') %}
|
||||
{% if first_item %}
|
||||
{{caption.format_caption(first_item.get_record(), '', null, business)}}
|
||||
{% endif %}
|
||||
|
@@ -57,7 +57,7 @@
|
||||
</h2>
|
||||
{% if basket.getValidation().isFinished() %}
|
||||
{% trans '(validation) session terminee' %}
|
||||
{% elseif basket.getValidation().getParticipant(user, app).getIsConfirmed() %}
|
||||
{% elseif basket.getValidation().getParticipant(app['phraseanet.user'], app).getIsConfirmed() %}
|
||||
{% trans '(validation) envoyee' %}
|
||||
{% else %}
|
||||
{% trans '(validation) a envoyer' %}
|
||||
@@ -73,7 +73,7 @@
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div>{{ basket.getDescription() }}</div>
|
||||
<div>{{ basket.getValidation().getValidationString(app, user) }}</div>
|
||||
<div>{{ basket.getValidation().getValidationString(app, app['phraseanet.user']) }}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@@ -10,9 +10,9 @@
|
||||
{% if basket.getValidation() %}
|
||||
<div class="agreement">
|
||||
<img src="/skins/lightbox/agree.png"
|
||||
class="agree_button {%if element.getUserValidationDatas(user, app).getAgreement() == false or element.getUserValidationDatas(user, app).getAgreement() is null %}not_decided{%endif%} agree_{{element.getId()}}" />
|
||||
class="agree_button {%if element.getUserValidationDatas(app['phraseanet.user'], app).getAgreement() == false or element.getUserValidationDatas(app['phraseanet.user'], app).getAgreement() is null %}not_decided{%endif%} agree_{{element.getId()}}" />
|
||||
<img src="/skins/lightbox/disagree.png"
|
||||
class="disagree_button {%if element.getUserValidationDatas(user, app).getAgreement() == true or element.getUserValidationDatas(user, app).getAgreement() is null %}not_decided{%endif%} disagree_{{element.getId()}}" />
|
||||
class="disagree_button {%if element.getUserValidationDatas(app['phraseanet.user'], app).getAgreement() == true or element.getUserValidationDatas(app['phraseanet.user'], app).getAgreement() is null %}not_decided{%endif%} disagree_{{element.getId()}}" />
|
||||
</div>
|
||||
{% endif %}
|
||||
{{thumbnail.format(element.getRecord(app).get_thumbnail,114,85, '', true, false)}}
|
||||
|
@@ -9,7 +9,7 @@
|
||||
<hr/>
|
||||
{% for validationDatas in basket_element.getValidationDatas() %}
|
||||
{% if validationDatas.getNote() != '' %}
|
||||
<div class="note_wrapper ui-corner-all {% if validationDatas.getParticipant().getUser(app).get_id() == user.get_id() %}my_note{% endif %} ">
|
||||
<div class="note_wrapper ui-corner-all {% if validationDatas.getParticipant().getUser(app).get_id() == app['phraseanet.user'].get_id() %}my_note{% endif %} ">
|
||||
<span class="note_author title15">
|
||||
{{validationDatas.getParticipant().getUser(app).get_display_name()}}
|
||||
</span> : {{ validationDatas.getNote()|nl2br }}
|
||||
@@ -18,7 +18,7 @@
|
||||
{% endfor %}
|
||||
|
||||
<form>
|
||||
<textarea>{{basket_element.getUserValidationDatas(user, app).getNote()}}</textarea>
|
||||
<textarea>{{basket_element.getUserValidationDatas(app['phraseanet.user'], app).getNote()}}</textarea>
|
||||
<div class="buttons">
|
||||
<button class="note_closer ui-corner-all">
|
||||
{% trans 'boutton::fermer' %}
|
||||
|
@@ -1,8 +1,8 @@
|
||||
{% if basket_element and basket_element.getBasket().getValidation() %}
|
||||
<div class="agreement_selector" style="display:none;">
|
||||
<img src="/skins/lightbox/agree-big.png"
|
||||
class="{% if basket_element.getUserValidationDatas (user, app) != true %}not_decided{% endif %} agree_{{basket_element.getId()}}"/>
|
||||
class="{% if basket_element.getUserValidationDatas (app['phraseanet.user'], app) != true %}not_decided{% endif %} agree_{{basket_element.getId()}}"/>
|
||||
<img src="/skins/lightbox/disagree-big.png"
|
||||
class="{% if basket_element.getUserValidationDatas (user, app) != false %}not_decided{% endif %} disagree_{{basket_element.getId()}}" />
|
||||
class="{% if basket_element.getUserValidationDatas (app['phraseanet.user'], app) != false %}not_decided{% endif %} disagree_{{basket_element.getId()}}" />
|
||||
</div>
|
||||
{% endif %}
|
||||
|
@@ -100,7 +100,7 @@
|
||||
<div id="record_infos" class="PNB">
|
||||
<div class="container PNB">
|
||||
{% if basket_element %}
|
||||
{% set business = user.ACL().has_right_on_base(basket_element.getRecord(app).get_base_id(), 'canmodifrecord') %}
|
||||
{% set business = app['phraseanet.user'].ACL().has_right_on_base(basket_element.getRecord(app).get_base_id(), 'canmodifrecord') %}
|
||||
{{caption.format_caption(basket_element.getRecord(app), '', null, business)}}
|
||||
{% endif %}
|
||||
</div>
|
||||
@@ -184,7 +184,7 @@
|
||||
<div id="dialog_dwnl" title="{% trans 'action : exporter' %}" style="display:none;"></div>
|
||||
<script type="text/javascript">
|
||||
{% if basket.getValidation() %}
|
||||
p4.releasable = {% if basket.getValidation().getParticipant(user, app).isReleasable() %}"{% trans 'Do you want to send your report ?' %}"{% else %}false{% endif %}
|
||||
p4.releasable = {% if basket.getValidation().getParticipant(app['phraseanet.user'], app).isReleasable() %}"{% trans 'Do you want to send your report ?' %}"{% else %}false{% endif %}
|
||||
{% endif %}
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
<label>{% trans 'Collection' %}</label>
|
||||
<select name="base_id">
|
||||
{% for collection in user.ACL().get_granted_base(['canaddrecord']) %}
|
||||
{% for collection in app['phraseanet.user'].ACL().get_granted_base(['canaddrecord']) %}
|
||||
<option value="{{ collection.get_base_id() }}">{{ collection.get_databox().get_viewname() }} / {{ collection.get_name() }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
|
@@ -1,7 +1,7 @@
|
||||
{% extends 'prod/Tooltip/Tooltip.html.twig'%}
|
||||
|
||||
{% set title %}
|
||||
user.get_display_name()
|
||||
app['phraseanet.user'].get_display_name()
|
||||
{% endset %}
|
||||
{% set width = 300 %}
|
||||
{% set maxwidth = null %}
|
||||
@@ -12,12 +12,12 @@
|
||||
<img style="margin:14px 8px;" src="/skins/icons/user.png"/>
|
||||
</div>
|
||||
<div class="PNB" style="left:100px;">
|
||||
<h1> {{ user.get_display_name() }}</h1>
|
||||
<h1> {{ app['phraseanet.user'].get_display_name() }}</h1>
|
||||
<ul>
|
||||
<li>{{ user.get_email() }}</li>
|
||||
<li>{{ user.get_company() }}</li>
|
||||
<li>{{ user.get_job() }}</li>
|
||||
<li>{{ user.get_position() }}</li>
|
||||
<li>{{ app['phraseanet.user'].get_email() }}</li>
|
||||
<li>{{ app['phraseanet.user'].get_company() }}</li>
|
||||
<li>{{ app['phraseanet.user'].get_job() }}</li>
|
||||
<li>{{ app['phraseanet.user'].get_position() }}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -10,36 +10,36 @@
|
||||
<img src="/skins/prod/000000/images/print_history.gif"/>
|
||||
</button>
|
||||
|
||||
{% if user.ACL().has_right('modifyrecord') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right('modifyrecord') %}
|
||||
<button class="ui-corner-all TOOL_ppen_btn basket_window" title="{% trans 'action : editer' %}">
|
||||
<img src="/skins/prod/000000/images/ppen_history.gif"/>
|
||||
</button>
|
||||
{% endif %}
|
||||
|
||||
{% if user.ACL().has_right('changestatus') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right('changestatus') %}
|
||||
<button class="ui-corner-all TOOL_chgstatus_btn basket_window" title="{% trans 'action : status' %}">
|
||||
<img src="/skins/prod/000000/images/chgstatus_history.gif"/>
|
||||
</button>
|
||||
{% endif %}
|
||||
|
||||
{% if user.ACL().has_right('deleterecord') and user.ACL().has_right('addrecord') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right('deleterecord') and app['phraseanet.user'].ACL().has_right('addrecord') %}
|
||||
<button class="ui-corner-all TOOL_chgcoll_btn basket_window" title="{% trans 'action : collection' %}">
|
||||
<img src="/skins/prod/000000/images/chgcoll_history.gif"/>
|
||||
</button>
|
||||
{% endif %}
|
||||
|
||||
{% if user.ACL().has_right('push') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right('push') %}
|
||||
<button class="ui-corner-all TOOL_pushdoc_btn basket_window" title="{% trans 'action : push' %}">
|
||||
<img src="/skins/icons/push16.png"/>
|
||||
</button>
|
||||
{% endif %}
|
||||
|
||||
{% if user.ACL().has_right('push') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right('push') %}
|
||||
<button class="ui-corner-all TOOL_feedback_btn basket_window" title="{% trans 'Feedback' %}">
|
||||
<img src="/skins/icons/feedback16.png"/>
|
||||
</button>
|
||||
{% endif %}
|
||||
{% if user.ACL().has_right('bas_chupub') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right('bas_chupub') %}
|
||||
<button class="ui-corner-all TOOL_bridge_btn basket_window" title="{% trans 'action : bridge' %}">
|
||||
<img src="/skins/icons/door.png"/>
|
||||
</button>
|
||||
@@ -48,7 +48,7 @@
|
||||
</button>
|
||||
{% endif %}
|
||||
|
||||
{% if user.ACL().has_right('doctools') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right('doctools') %}
|
||||
<button class="ui-corner-all TOOL_imgtools_btn basket_window" title="{% trans 'action : outils' %}">
|
||||
<img src="/skins/prod/000000/images/imgtools_history.gif"/>
|
||||
</button>
|
||||
@@ -68,9 +68,9 @@
|
||||
{% import 'prod/WorkZone/Macros.html.twig' as Macros %}
|
||||
|
||||
{% if basket.getValidation() %}
|
||||
{{ Macros.display_validation(app, basket, ordre, user) }}
|
||||
{{ Macros.display_validation(app, basket, ordre) }}
|
||||
{% else %}
|
||||
{{ Macros.display_basket(app, basket, user) }}
|
||||
{{ Macros.display_basket(app, basket) }}
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
@@ -239,12 +239,12 @@
|
||||
{% endmacro %}
|
||||
|
||||
|
||||
{% macro element(wz_scope, container, contained, record, ord, user) %}
|
||||
{% macro element(wz_scope, container, contained, record, ord) %}
|
||||
{% set box_height = 110 %}
|
||||
{% if user.getPrefs('basket_title_display') == '1' %}
|
||||
{% if app['phraseanet.user'].getPrefs('basket_title_display') == '1' %}
|
||||
{% set box_height = (box_height + 20) %}
|
||||
{% endif %}
|
||||
{% if user.getPrefs('basket_status_display') == '1' %}
|
||||
{% if app['phraseanet.user'].getPrefs('basket_status_display') == '1' %}
|
||||
{% set box_height = (box_height + 20) %}
|
||||
{% endif %}
|
||||
|
||||
@@ -254,12 +254,12 @@
|
||||
class="CHIM diapo CHIM_{{record.get_serialize_key()}}" style="height:{{box_height}}px;"
|
||||
id="CHIM_{% if wz_scope == 'groupings' %}{{record.get_serialize_key()}}{% else %}{{ contained.getId() }}{% endif %}">
|
||||
<input type="hidden" name="id" value="{{ record.get_serialize_key() }}"/>
|
||||
{% if user.getPrefs('basket_title_display') == '1' %}
|
||||
{% if app['phraseanet.user'].getPrefs('basket_title_display') == '1' %}
|
||||
<div class="title">
|
||||
{{record.get_title()}}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if user.getPrefs('basket_status_display') == '1' %}
|
||||
{% if app['phraseanet.user'].getPrefs('basket_status_display') == '1' %}
|
||||
<div class="status" style="position:relative;height:20px;overflow-y:visible;z-index:15;">
|
||||
{{record.get_status_icons|raw}}
|
||||
</div>
|
||||
@@ -282,22 +282,22 @@
|
||||
class="WorkZoneElementRemover {{ wz_scope }}" title="{% trans 'delete'%}" >
|
||||
X
|
||||
</a>
|
||||
{% if user.getPrefs('basket_caption_display') == '1' %}
|
||||
{% if app['phraseanet.user'].getPrefs('basket_caption_display') == '1' %}
|
||||
<div class="captionRolloverTips" tooltipsrc="/prod/tooltip/caption/{{record.get_sbas_id()}}/{{record.get_record_id()}}/basket/?number={{record.get_number()}}"></div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro display_basket(app, basket, user) %}
|
||||
{% macro display_basket(app, basket) %}
|
||||
{% for basket_element in basket.getElements() %}
|
||||
<span class="wrapCHIM_{{ basket_element.getRecord(app).get_serialize_key() }}">
|
||||
{{ _self.element('basket', basket, basket_element, basket_element.getRecord(app), basket_element.getOrd(), user) }}
|
||||
{{ _self.element('basket', basket, basket_element, basket_element.getRecord(app), basket_element.getOrd()) }}
|
||||
</span>
|
||||
{% endfor %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro display_validation(app, basket, ordre, user) %}
|
||||
{% macro display_validation(app, basket, ordre) %}
|
||||
<div style="margin:5px 0;text-align:center;">
|
||||
<form>
|
||||
<select name="valid_ord">
|
||||
@@ -313,12 +313,12 @@
|
||||
<table style="width: 100%; min-width: 330px; display: inline-block;">
|
||||
<tr>
|
||||
<td style="width:80px;">
|
||||
{{ _self.element('basket', basket, basket_element, basket_element.getRecord(app), basket_element.getOrd(), user) }}
|
||||
{{ _self.element('basket', basket, basket_element, basket_element.getRecord(app), basket_element.getOrd()) }}
|
||||
</td>
|
||||
<td style="width:100%;">
|
||||
<table style=width:100%>
|
||||
{% for choice in basket_element.getValidationDatas() %}
|
||||
{% if basket.getValidation().getParticipant(user, app).getCanSeeOthers() or choice.getParticipant().getUser(app) == app['phraseanet.user'] %}
|
||||
{% if basket.getValidation().getParticipant(app['phraseanet.user'], app).getCanSeeOthers() or choice.getParticipant().getUser(app) == app['phraseanet.user'] %}
|
||||
<tr>
|
||||
<td> {{ choice.getParticipant().getUser(app).get_display_name() }} </td>
|
||||
<td>
|
||||
|
@@ -9,36 +9,36 @@
|
||||
<img src="/skins/prod/000000/images/print_history.gif"/>
|
||||
</button>
|
||||
|
||||
{% if user.ACL().has_right('modifyrecord') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right('modifyrecord') %}
|
||||
<button class="ui-corner-all TOOL_ppen_btn story_window" title="{% trans 'action : editer' %}">
|
||||
<img src="/skins/prod/000000/images/ppen_history.gif"/>
|
||||
</button>
|
||||
{% endif %}
|
||||
|
||||
{% if user.ACL().has_right('changestatus') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right('changestatus') %}
|
||||
<button class="ui-corner-all TOOL_chgstatus_btn story_window" title="{% trans 'action : status' %}">
|
||||
<img src="/skins/prod/000000/images/chgstatus_history.gif"/>
|
||||
</button>
|
||||
{% endif %}
|
||||
|
||||
{% if user.ACL().has_right('deleterecord') and user.ACL().has_right('addrecord') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right('deleterecord') and app['phraseanet.user'].ACL().has_right('addrecord') %}
|
||||
<button class="ui-corner-all TOOL_chgcoll_btn story_window" title="{% trans 'action : collection' %}">
|
||||
<img src="/skins/prod/000000/images/chgcoll_history.gif"/>
|
||||
</button>
|
||||
{% endif %}
|
||||
|
||||
{% if user.ACL().has_right('push') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right('push') %}
|
||||
<button class="ui-corner-all TOOL_pushdoc_btn story_window" title="{% trans 'action : push' %}">
|
||||
<img src="/skins/icons/push16.png"/>
|
||||
</button>
|
||||
{% endif %}
|
||||
|
||||
{% if user.ACL().has_right('push') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right('push') %}
|
||||
<button class="ui-corner-all TOOL_feedback_btn story_window" title="{% trans 'Feedback' %}">
|
||||
<img src="/skins/icons/feedback16.png"/>
|
||||
</button>
|
||||
{% endif %}
|
||||
{% if user.ACL().has_right('bas_chupub') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right('bas_chupub') %}
|
||||
<button class="ui-corner-all TOOL_bridge_btn story_window" title="{% trans 'action : bridge' %}">
|
||||
<img src="/skins/icons/door.png"/>
|
||||
</button>
|
||||
@@ -47,7 +47,7 @@
|
||||
</button>
|
||||
{% endif %}
|
||||
|
||||
{% if user.ACL().has_right('doctools') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right('doctools') %}
|
||||
<button class="ui-corner-all TOOL_imgtools_btn story_window" title="{% trans 'action : outils' %}">
|
||||
<img src="/skins/prod/000000/images/imgtools_history.gif"/>
|
||||
</button>
|
||||
@@ -73,7 +73,7 @@
|
||||
|
||||
{% for record in Story.get_children().get_elements() %}
|
||||
<span class="wrapCHIM_{{ record.get_serialize_key() }}">
|
||||
{{ Macros.element('groupings', Story, record, record, record.get_number(), user) }}
|
||||
{{ Macros.element('groupings', Story, record, record, record.get_number()) }}
|
||||
</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
@@ -33,7 +33,7 @@
|
||||
<input type="hidden" name="usr_id" value="{{ owner.getUser().get_id() }}" />
|
||||
</td>
|
||||
<td style="padding-right:10px;min-width:100px;">
|
||||
{% if user.get_id() == owner.getUser(app).get_id() %}
|
||||
{% if app['phraseanet.user'].get_id() == owner.getUser(app).get_id() %}
|
||||
{% if owner.getRole() == constant('\\Entities\\UsrListOwner::ROLE_ADMIN') %}
|
||||
{% trans 'You are Admin' %}
|
||||
{% endif %}
|
||||
@@ -53,7 +53,7 @@
|
||||
{% endif %}
|
||||
</td>
|
||||
<td style="width:15px">
|
||||
{% if user.get_id() != owner.getUser(app).get_id() %}
|
||||
{% if app['phraseanet.user'].get_id() != owner.getUser(app).get_id() %}
|
||||
<a href="#" class="deleter">
|
||||
<img src="/skins/prod/Push/close_badge.png" title="{% trans 'Remove' %}"/>
|
||||
</a>
|
||||
|
@@ -5,7 +5,7 @@
|
||||
<table style="height: 40px;">
|
||||
<tr>
|
||||
<td style="white-space:nowrap;">
|
||||
{% if list.getOwner(user, app).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_EDITOR') %}
|
||||
{% if list.getOwner(app['phraseanet.user'], app).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_EDITOR') %}
|
||||
<form class="form-inline" method="POST" name="SaveName" action="/prod/lists/list/{{ list.getId() }}/update/">
|
||||
<label>{% trans 'List Name' %}</label>
|
||||
<input type="text" name="name" style="margin: 0 5px;" value="{{ list.getName() }}"/>
|
||||
@@ -16,14 +16,14 @@
|
||||
{% endif %}
|
||||
</td>
|
||||
<td style="text-align:right;white-space:nowrap;">
|
||||
{% if list.getOwner(user, app).getRole() == constant('\\Entities\\UsrListOwner::ROLE_ADMIN') %}
|
||||
{% if list.getOwner(app['phraseanet.user'], app).getRole() == constant('\\Entities\\UsrListOwner::ROLE_ADMIN') %}
|
||||
<a href="/prod/lists/list/{{ list.getId() }}/share/" title="{% trans 'Share the list' %}" class="list_sharer">
|
||||
<img src="/skins/prod/Push/list-icon.png" />
|
||||
{% trans "Set sharing permission" %}
|
||||
</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
{% if list.getOwner(user, app).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_ADMIN') %}
|
||||
{% if list.getOwner(app['phraseanet.user'], app).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_ADMIN') %}
|
||||
<td style="text-align:right;white-space:nowrap;width:150px;">
|
||||
<button class="deleter btn btn-inverse">
|
||||
{% trans 'Delete' %}
|
||||
@@ -40,20 +40,20 @@
|
||||
<p>
|
||||
{% set length = '<span class="counter current">' ~ list.getEntries().count() ~ '</span>' %}
|
||||
{% trans %}{{ length }} peoples{% endtrans %}
|
||||
{% if list.getOwner(user, app).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_EDITOR') %}
|
||||
{% if list.getOwner(app['phraseanet.user'], app).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_EDITOR') %}
|
||||
<button class="EditToggle btn btn-inverse">{% trans 'Edit' %}</button>
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
<div class="PNB" style="top:35px;overflow:auto;">
|
||||
{% set role = list.getOwner(user, app).getRole() %}
|
||||
{% set role = list.getOwner(app['phraseanet.user'], app).getRole() %}
|
||||
{% for entry in list.getEntries() %}
|
||||
{{ ListsMacros.badgeReadonly(entry, role) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% if list.getOwner(user, app).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_EDITOR') %}
|
||||
{% if list.getOwner(app['phraseanet.user'], app).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_EDITOR') %}
|
||||
<div class="PNB content readwrite grey-bg" style="display:none;top:40px;">
|
||||
<form name="list-editor-search" method="POST" action="/prod/push/edit-list/{{ list.getId() }}/">
|
||||
<div class="PNB10" style="height:160px;">
|
||||
|
@@ -14,7 +14,7 @@
|
||||
{% set length = '<span class="counter">' ~ list.getEntries().count() ~ '</span>' %}
|
||||
<li class="list" style="padding:2px;">
|
||||
<a href="/prod/push/edit-list/{{ list.getId() }}/" class="list_link">
|
||||
{% if list.getOwner(user, app).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_EDITOR') %}
|
||||
{% if list.getOwner(app['phraseanet.user'], app).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_EDITOR') %}
|
||||
<img src="/skins/prod/Push/list-icon.png" />
|
||||
{% else %}
|
||||
<img src="/skins/icons/SHARE16.png" />
|
||||
|
@@ -48,7 +48,7 @@
|
||||
{% for list in lists %}
|
||||
<li class="list" style="padding:2px;">
|
||||
<a class="list_loader" href="/prod/push/list/{{ list.getId() }}/">
|
||||
{% if list.getOwner(user, app).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_EDITOR') %}
|
||||
{% if list.getOwner(app['phraseanet.user'], app).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_EDITOR') %}
|
||||
<img src="/skins/prod/Push/list-icon.png" />
|
||||
{% else %}
|
||||
<img src="/skins/icons/SHARE16.png" />
|
||||
@@ -73,7 +73,7 @@
|
||||
<input class="search" name="users-search" placeholder="{% trans 'Users' %}" type="text" style="width:210px;"/>
|
||||
<br/>
|
||||
{% trans 'Select a user in the list'%} <br/>
|
||||
{% if user.ACL().has_right('manageusers') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right('manageusers') %}
|
||||
{% trans 'or' %}
|
||||
<a href="/prod/push/add-user/" class="user_adder link">{% trans 'Add user' %}</a>
|
||||
{% endif %}
|
||||
|
@@ -1,11 +1,11 @@
|
||||
{% macro format_diapo(record, user, resizable) %}
|
||||
{% macro format_diapo(record, resizable) %}
|
||||
|
||||
{% if resizable == false %}
|
||||
{% set cont_width = 130 %}
|
||||
{% set cont_height = 140 %}
|
||||
{% else %}
|
||||
{% set cont_width = user.getPrefs('editing_images_size') %}
|
||||
{% set cont_height = user.getPrefs('editing_images_size') %}
|
||||
{% set cont_width = app['phraseanet.user'].getPrefs('editing_images_size') %}
|
||||
{% set cont_height = app['phraseanet.user'].getPrefs('editing_images_size') %}
|
||||
{% endif %}
|
||||
|
||||
{% set i = record.get_number() %}
|
||||
@@ -27,7 +27,7 @@
|
||||
{% endif %}
|
||||
|
||||
{% set class_status = 'nostatus' %}
|
||||
{% if user.ACL().has_right_on_base(record.get_base_id(), 'chgstatus') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right_on_base(record.get_base_id(), 'chgstatus') %}
|
||||
{% set class_status = '' %}
|
||||
{% endif %}
|
||||
|
||||
@@ -66,13 +66,13 @@
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro HTML_fieldlist(recordsRequest, fields, user) %}
|
||||
{% macro HTML_fieldlist(recordsRequest, fields) %}
|
||||
<div class="edit_field" id="EditFieldBox_status" onclick="return(edit_mdwn_status(event));" >
|
||||
{%trans 'prod::editing::fields: status ' %}
|
||||
</div>
|
||||
{% set cssfile = '000000' %}
|
||||
{% if user.getPrefs('css') %}
|
||||
{% set cssfile = user.getPrefs('css') %}
|
||||
{% if app['phraseanet.user'].getPrefs('css') %}
|
||||
{% set cssfile = app['phraseanet.user'].getPrefs('css') %}
|
||||
{% endif %}
|
||||
{% for field in fields %}
|
||||
{% set i = field.get_id() %}
|
||||
@@ -95,10 +95,10 @@
|
||||
{% endfor %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro HTML_Train(recordsRequest, user, is_reg) %}
|
||||
{% macro HTML_Train(recordsRequest, is_reg) %}
|
||||
{% for record in recordsRequest %}
|
||||
{% if loop.index != 1 or is_reg != '1' %}
|
||||
{{_self.format_diapo(record, user, true)}}
|
||||
{{_self.format_diapo(record, true)}}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endmacro %}
|
||||
@@ -127,7 +127,7 @@
|
||||
<input style="font-size:2px; width:5px;" type="text" id="editFakefocus" />
|
||||
</form>
|
||||
</div>
|
||||
<div id="EDIT_TOP" style="height:{{user.getPrefs('editing_top_box')}};">
|
||||
<div id="EDIT_TOP" style="height:{{app['phraseanet.user'].getPrefs('editing_top_box')}};">
|
||||
<div id="EDIT_MENU">
|
||||
<div id="EDIT_ZOOMSLIDER" >
|
||||
</div>
|
||||
@@ -135,26 +135,24 @@
|
||||
{% if recordsRequest.isSingleStory() %}
|
||||
<div class="GRP_IMAGE_REP">
|
||||
<div id="EDIT_GRPDIAPO">
|
||||
{{_self.format_diapo(recordsRequest.singleStory(), user, false)}}
|
||||
{{_self.format_diapo(recordsRequest.singleStory(), false)}}
|
||||
</div>
|
||||
</div>
|
||||
<div id="EDIT_FILM2" style="left:170px;">
|
||||
{{_self.HTML_Train(edit, user, '1')}}
|
||||
{{_self.HTML_Train(edit, '1')}}
|
||||
</div>
|
||||
{% else %}
|
||||
<div id="EDIT_FILM2" class='ui-corner-all'>
|
||||
{{_self.HTML_Train(recordsRequest, user)}}
|
||||
{{_self.HTML_Train(recordsRequest)}}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<!--<div id='EDIT_HSPLIT' class='gui_hsplitter' style='position:absolute; top:{{user.getPrefs('editing_top_box')}};z-index:9999'></div>-->
|
||||
|
||||
<div id='EDIT_MID'>
|
||||
<div id='EDIT_MID_L' class='ui-corner-all'>
|
||||
<div id="divS_wrapper" style="width:{{user.getPrefs('editing_right_box')}}">
|
||||
<div id="divS_wrapper" style="width:{{app['phraseanet.user'].getPrefs('editing_right_box')}}">
|
||||
<div id="divS">
|
||||
{{_self.HTML_fieldlist(recordsRequest, fields, user)}}
|
||||
{{_self.HTML_fieldlist(recordsRequest, fields)}}
|
||||
</div>
|
||||
</div>
|
||||
<div id="idEditZone">
|
||||
@@ -232,8 +230,7 @@
|
||||
<div id="idExplain" class="PNB"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!--<div id='EDIT_VSPLIT2' class='gui_vsplitter gui_vsplitter2' style='position:absolute; right:{{user.getPrefs('editing_left_box')}};z-index:9999;'></div>-->
|
||||
<div id="EDIT_MID_R" style="width:{{user.getPrefs('editing_left_box')}}">
|
||||
<div id="EDIT_MID_R" style="width:{{app['phraseanet.user'].getPrefs('editing_left_box')}}">
|
||||
<div style='position:absolute; top:0; left:0; right:0; bottom:0;' class='tabs'>
|
||||
<ul>
|
||||
{% if thesaurus %}
|
||||
|
@@ -44,9 +44,9 @@
|
||||
<label for="feed_add_subtitle">{% trans 'publication : sous titre' %}</label>
|
||||
<textarea id="feed_add_subtitle" name="subtitle">{{desc}}</textarea>
|
||||
<label for="feed_add_author_name">{% trans 'publication : autheur' %}</label>
|
||||
<input class="required_text" type="text" name="author_name" id="feed_add_author_name" value="{{ user.get_display_name() }}" />
|
||||
<input class="required_text" type="text" name="author_name" id="feed_add_author_name" value="{{ app['phraseanet.user'].get_display_name() }}" />
|
||||
<label for="feed_add_author_mail">{% trans 'publication : email autheur' %}</label>
|
||||
<input class="required_text" type="text" name="author_mail" id="feed_add_author_mail" value="{{ user.get_email() }}" />
|
||||
<input class="required_text" type="text" name="author_mail" id="feed_add_author_mail" value="{{ app['phraseanet.user'].get_email() }}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="PNB" style="width:50%;left:auto;">
|
||||
|
@@ -1,2 +1,2 @@
|
||||
{% import 'prod/feeds/entry_macro.html.twig' as _entry %}
|
||||
{{ _entry.format(entry.get_feed(), entry, user) }}
|
||||
{{ _entry.format(entry.get_feed(), entry) }}
|
@@ -1,4 +1,4 @@
|
||||
{% macro format(feed, entry, user)%}
|
||||
{% macro format(feed, entry)%}
|
||||
{% import 'prod/results/record.html.twig' as record_format %}
|
||||
|
||||
<div class="entry ui-corner-all" id="entry_{{ entry.get_id() }}">
|
||||
@@ -15,7 +15,7 @@
|
||||
</h1>
|
||||
</td>
|
||||
<td style="width:60px;text-align:right;">
|
||||
{% if entry.get_feed().is_owner(user) or entry.is_publisher(user) %}
|
||||
{% if entry.get_feed().is_owner(app['phraseanet.user']) or entry.is_publisher(app['phraseanet.user']) %}
|
||||
<a class="tools options feed_edit" href="/prod/feeds/entry/{{ entry.get_id() }}/edit/">
|
||||
<img src="/skins/icons/file-edit.png" title="{% trans 'boutton::editer' %}"/>
|
||||
</a>
|
||||
@@ -56,7 +56,7 @@
|
||||
{% for item in entry.get_content() %}
|
||||
{% set record = item.get_record() %}
|
||||
{% set prefix = 'PUBLI_' ~ item.get_id() %}
|
||||
{{record_format.block(record, user, false, null, prefix, entry.get_id())}}
|
||||
{{record_format.block(record, false, null, prefix, entry.get_id())}}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -54,7 +54,7 @@
|
||||
{% set entries = feed.get_entries(offset_start,5).get_entries() %}
|
||||
|
||||
{% for entry in entries %}
|
||||
{{ _entry.format(feed, entry, user) }}
|
||||
{{ _entry.format(feed, entry) }}
|
||||
{% endfor %}
|
||||
{% if entries|length == 0 %}
|
||||
<p>{% trans 'Aucune entree pour le moment' %}</p>
|
||||
|
@@ -46,9 +46,9 @@
|
||||
|
||||
{% block rss %}
|
||||
{% for feed in feeds %}
|
||||
{% set link = feed.get_user_link(registry, user, 'rss') %}
|
||||
{% set link = feed.get_user_link(registry, app['phraseanet.user'], 'rss') %}
|
||||
<link rel="alternate" type="{{ link.get_mimetype() }}" title="{{ link.get_title() }}" href="{{ link.get_href() }}" />
|
||||
{% set link = feed.get_user_link(registry, user, 'atom') %}
|
||||
{% set link = feed.get_user_link(registry, app['phraseanet.user'], 'atom') %}
|
||||
<link rel="alternate" type="{{ link.get_mimetype() }}" title="{{ link.get_title() }}" href="{{ link.get_href() }}" />
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
@@ -102,12 +102,12 @@
|
||||
|
||||
<style title="color_selection" type="text/css">
|
||||
/* .diapo.ui-selecting,#reorder_box .diapo.selecting, #EDIT_ALL .diapo.selecting, .list.selecting, .list.selecting .diapo {
|
||||
color: #{% if user.getPrefs('fontcolor-selection') != '' %}{{user.getPrefs('fontcolor-selection')}}{% else %}FFFFFF{% endif %};
|
||||
background-color: #{% if user.getPrefs('background-selection-disabled') != '' %}{{user.getPrefs('background-selection-disabled')}}{% else %}333333{% endif %};
|
||||
color: #{% if app['phraseanet.user'].getPrefs('fontcolor-selection') != '' %}{{app['phraseanet.user'].getPrefs('fontcolor-selection')}}{% else %}FFFFFF{% endif %};
|
||||
background-color: #{% if app['phraseanet.user'].getPrefs('background-selection-disabled') != '' %}{{app['phraseanet.user'].getPrefs('background-selection-disabled')}}{% else %}333333{% endif %};
|
||||
}*/
|
||||
.diapo.selected,#reorder_box .diapo.selected, #EDIT_ALL .diapo.selected, .list.selected, .list.selected .diapo {
|
||||
color: #{% if user.getPrefs('fontcolor-selection') != '' %}{{user.getPrefs('fontcolor-selection')}}{% else %}FFFFFF{% endif %};
|
||||
background-color: #{% if user.getPrefs('background-selection') != '' %}{{user.getPrefs('background-selection')}}{% else %}404040{% endif %};
|
||||
color: #{% if app['phraseanet.user'].getPrefs('fontcolor-selection') != '' %}{{app['phraseanet.user'].getPrefs('fontcolor-selection')}}{% else %}FFFFFF{% endif %};
|
||||
background-color: #{% if app['phraseanet.user'].getPrefs('background-selection') != '' %}{{app['phraseanet.user'].getPrefs('background-selection')}}{% else %}404040{% endif %};
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
@@ -132,7 +132,7 @@
|
||||
|
||||
<div id="desktop" class="PNB" style="overflow:hidden;">
|
||||
|
||||
{% set ratio = user.getPrefs('search_window') %}
|
||||
{% set ratio = app['phraseanet.user'].getPrefs('search_window') %}
|
||||
{% if ratio == 0 %}
|
||||
{% set ratio = '0.333' %}
|
||||
{% endif %}
|
||||
@@ -178,7 +178,7 @@
|
||||
<div id="THPD_tabs">
|
||||
<ul>
|
||||
<li class="th_tab"><a href="#THPD_T"><span>{% trans 'prod::thesaurusTab:thesaurus' %}</span></a></li>
|
||||
{% if user.ACL().has_access_to_module('thesaurus') %}
|
||||
{% if app['phraseanet.user'].ACL().has_access_to_module('thesaurus') %}
|
||||
<li class="th_tab"><a href="#THPD_C"><span>{% trans 'prod::thesaurusTab:candidats' %}</span></a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
@@ -216,7 +216,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% if user.ACL().has_access_to_module('thesaurus') %}
|
||||
{% if app['phraseanet.user'].ACL().has_access_to_module('thesaurus') %}
|
||||
<div id="THPD_C">
|
||||
<div id='THPD_C_treeBox' class="searchZone">
|
||||
<div onclick="Xclick(event);return(false);" ondblclick="CXdblClick(event);">
|
||||
@@ -298,7 +298,7 @@
|
||||
<div id="headBlock" class="PNB" style="height: 90px; bottom: auto;">
|
||||
<div style="margin: 15px auto; line-height: 30px; width: 580px;">
|
||||
<form id="searchForm" action="/prod/query/" name="phrasea_query" class="phrasea_query">
|
||||
<input autocomplete="off" class="search query" id="EDIT_query" name="qry" type="text" name="qry" value="{{user.getPrefs('start_page_query')}}">
|
||||
<input autocomplete="off" class="search query" id="EDIT_query" name="qry" type="text" name="qry" value="{{app['phraseanet.user'].getPrefs('start_page_query')}}">
|
||||
<a href="#" class="adv_trigger adv_search_button">
|
||||
<img src="/skins/icons/settings.png" title="{% trans 'Advanced Search' %}"/>
|
||||
</a>
|
||||
@@ -548,19 +548,19 @@
|
||||
</span>
|
||||
|
||||
{% set actions = {} %}
|
||||
{% if user.ACL().has_right('modifyrecord') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right('modifyrecord') %}
|
||||
{% set label %}
|
||||
{% trans 'action : editer' %}
|
||||
{% endset %}
|
||||
{% set actions = actions|merge( { 'edit' : {'icon': "/skins/prod/000000/images/ppen_history.gif", 'class':'TOOL_ppen_btn', 'label' : label} }) %}
|
||||
{% endif %}
|
||||
{% if user.ACL().has_right('changestatus') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right('changestatus') %}
|
||||
{% set label %}
|
||||
{% trans 'action : status' %}
|
||||
{% endset %}
|
||||
{% set actions = actions|merge( { 'status' : {'icon': "/skins/prod/000000/images/chgstatus_history.gif", 'class':'TOOL_chgstatus_btn', 'label' : label} }) %}
|
||||
{% endif %}
|
||||
{% if user.ACL().has_right('deleterecord') and user.ACL().has_right('addrecord') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right('deleterecord') and app['phraseanet.user'].ACL().has_right('addrecord') %}
|
||||
{% set label %}
|
||||
{% trans 'action : collection' %}
|
||||
{% endset %}
|
||||
@@ -608,7 +608,7 @@
|
||||
</span>
|
||||
{% endif %}
|
||||
|
||||
{% if user.ACL().has_right('push') and user.ACL().has_right('bas_chupub') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right('push') and app['phraseanet.user'].ACL().has_right('bas_chupub') %}
|
||||
<span class="dropdownButton">
|
||||
<div class="btn-group">
|
||||
<button class="TOOL_pushdoc_btn default_action results_window btn btn-inverse">
|
||||
@@ -639,7 +639,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
</span>
|
||||
{% elseif user.ACL().has_right('push') %}
|
||||
{% elseif app['phraseanet.user'].ACL().has_right('push') %}
|
||||
<span class="dropdownButton">
|
||||
<div class="btn-group">
|
||||
<button class="TOOL_pushdoc_btn default_action results_window btn btn-inverse" >
|
||||
@@ -656,7 +656,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
</span>
|
||||
{% elseif user.ACL().has_right('bas_chupub') %}
|
||||
{% elseif app['phraseanet.user'].ACL().has_right('bas_chupub') %}
|
||||
<span class="dropdownButton">
|
||||
<div class="btn-group">
|
||||
<button class="TOOL_pushdoc_btn default_action results_window btn btn-inverse" >
|
||||
@@ -675,7 +675,7 @@
|
||||
</span>
|
||||
{% endif %}
|
||||
|
||||
{% if user.ACL().has_right('doctools') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right('doctools') %}
|
||||
<span class="classicButton">
|
||||
<div class="btn-group">
|
||||
<button class="TOOL_imgtools_btn results_window btn btn-inverse" >
|
||||
@@ -684,7 +684,7 @@
|
||||
</div>
|
||||
</span>
|
||||
{% endif %}
|
||||
{% if user.ACL().has_right('deleterecord') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right('deleterecord') %}
|
||||
<span class="classicButton">
|
||||
<div class="btn-group">
|
||||
<button class="TOOL_trash_btn results_window btn btn-inverse" >
|
||||
@@ -697,11 +697,11 @@
|
||||
<div id="answers" class=" PNB10" style="top:48px; bottom:30px;">
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
{% if user.getPrefs('start_page') == 'QUERY' %}
|
||||
{% if app['phraseanet.user'].getPrefs('start_page') == 'QUERY' %}
|
||||
$('form[name="phrasea_query"]').addClass('triggerAfterInit')
|
||||
{% elseif user.getPrefs('start_page') == 'LAST_QUERY' %}
|
||||
{% elseif app['phraseanet.user'].getPrefs('start_page') == 'LAST_QUERY' %}
|
||||
$('form[name="phrasea_query"]').addClass('triggerAfterInit')
|
||||
{% elseif user.getPrefs('start_page') == 'PUBLI' %}
|
||||
{% elseif app['phraseanet.user'].getPrefs('start_page') == 'PUBLI' %}
|
||||
getHome('PUBLI');
|
||||
{% endif %}
|
||||
});
|
||||
@@ -758,7 +758,7 @@
|
||||
<div id="MESSAGE-push"></div>
|
||||
<div id="MESSAGE-publi"></div>
|
||||
<div id="DIALOG"></div>
|
||||
<div id="keyboard-dialog" class="{% if user.getPrefs('keyboard_infos') != '0' %}auto{% endif %}" style="display:none;" title="{% trans 'raccourci :: a propos des raccourcis claviers' %}">
|
||||
<div id="keyboard-dialog" class="{% if app['phraseanet.user'].getPrefs('keyboard_infos') != '0' %}auto{% endif %}" style="display:none;" title="{% trans 'raccourci :: a propos des raccourcis claviers' %}">
|
||||
<div>
|
||||
<h1>{% trans 'Raccourcis claviers en cours de recherche : ' %}</h1>
|
||||
<ul>
|
||||
@@ -822,7 +822,7 @@
|
||||
<div class="box">
|
||||
<div class="" style="float:left; width:49%;">
|
||||
<h1>{% trans 'Mode de presentation' %}</h1>
|
||||
{% set mod = user.getPrefs('view') %}
|
||||
{% set mod = app['phraseanet.user'].getPrefs('view') %}
|
||||
<label class="radio inline" for="thumbs_view">
|
||||
<input onchange="setPref('view',$(this).val())" name="view_type" type="radio" style="margin: 3px 0 0 -18px;" class="radio" value="thumbs" id="thumbs_view" {% if mod == 'thumbs' %}checked="checked"{% endif %}/>
|
||||
{% trans 'reponses:: mode vignettes' %}
|
||||
@@ -841,7 +841,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="box">
|
||||
{% set rollover_thumbnail = user.getPrefs('rollover_thumbnail') %}
|
||||
{% set rollover_thumbnail = app['phraseanet.user'].getPrefs('rollover_thumbnail') %}
|
||||
<h1>{% trans 'Presentation de vignettes' %}</h1>
|
||||
<label class="radio" for="rollover_caption">
|
||||
<input onchange="setPref('rollover_thumbnail',$(this).val())" name="rollover_thumbnail" type="radio" class="radio" value="caption" id="rollover_caption" {% if rollover_thumbnail == 'caption' %}checked="checked" {% endif %}/>
|
||||
@@ -853,7 +853,7 @@
|
||||
</label>
|
||||
</div>
|
||||
<div class="box">
|
||||
{% set technical_display = user.getPrefs('technical_display') %}
|
||||
{% set technical_display = app['phraseanet.user'].getPrefs('technical_display') %}
|
||||
<h1>{% trans 'Informations techniques' %}</h1>
|
||||
<label class="radio" for="technical_show">
|
||||
<input onchange="setPref('technical_display',$(this).val())" name="technical_display" type="radio" class="radio" value="1" id="technical_show" {% if technical_display == '1' %}checked="checked"{% endif %}/>
|
||||
@@ -869,7 +869,7 @@
|
||||
</label>
|
||||
</div>
|
||||
<div class="box">
|
||||
{% set doctype_display = user.getPrefs('doctype_display') %}
|
||||
{% set doctype_display = app['phraseanet.user'].getPrefs('doctype_display') %}
|
||||
<h1>{% trans 'Type de documents' %}</h1>
|
||||
<label class="checkbox" for="doctype_display_show">
|
||||
<input onchange="setPref('doctype_display',($(this).attr('checked') ? '1' :'0'))" name="doctype_display" type="checkbox" class="checkbox" value="1" id="doctype_display_show" {% if doctype_display != '0' %}checked="checked"{% endif %}/>
|
||||
@@ -882,14 +882,14 @@
|
||||
<h1>{% trans 'reponses:: images par pages : ' %}</h1>
|
||||
<div class="box">
|
||||
<div id="nperpage_slider" class="ui-corner-all" style="width:100px; display:inline-block;"></div>
|
||||
<input type="text" readonly style="width:35px;" value="{{user.getPrefs('images_per_page')}}" id="nperpage_value"/>
|
||||
<input type="text" readonly style="width:35px;" value="{{app['phraseanet.user'].getPrefs('images_per_page')}}" id="nperpage_value"/>
|
||||
</div>
|
||||
</div>
|
||||
<div style="float:right; width:49%;">
|
||||
<h1>{% trans 'reponses:: taille des images : ' %}</h1>
|
||||
<div class="box">
|
||||
<div id="sizeAns_slider" class="ui-corner-all" style="width:100px;display:inline-block;"></div>
|
||||
<input type="hidden" value="{{user.getPrefs('images_size')}}" id="sizeAns_value"/>
|
||||
<input type="hidden" value="{{app['phraseanet.user'].getPrefs('images_size')}}" id="sizeAns_value"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -904,7 +904,7 @@
|
||||
<div class="box">
|
||||
<div class="" style="float:left;width:100%;">
|
||||
<h1>{% trans 'Affichage au demarrage' %}</h1>
|
||||
{% set start_page_pref = user.getPrefs('start_page') %}
|
||||
{% set start_page_pref = app['phraseanet.user'].getPrefs('start_page') %}
|
||||
<div class="box" >
|
||||
<select class="span2" name="start_page" onchange="start_page_selector();">
|
||||
<option value="LAST_QUERY" {% if start_page_pref == 'LAST_QUERY' %}selected="selected"{% endif %} >
|
||||
@@ -920,7 +920,7 @@
|
||||
{% trans 'Aide' %}
|
||||
</option>
|
||||
</select>
|
||||
<input type="text" class="input-small" name="start_page_value" value="{{user.getPrefs('start_page_query')}}" style="display:{% if start_page_pref == 'QUERY' %}inline{% else %}none{% endif %}" />
|
||||
<input type="text" class="input-small" name="start_page_value" value="{{app['phraseanet.user'].getPrefs('start_page_query')}}" style="display:{% if start_page_pref == 'QUERY' %}inline{% else %}none{% endif %}" />
|
||||
<input type="button" class="btn btn-inverse" value="{% trans 'boutton::valider' %}" onclick="set_start_page();" />
|
||||
</div>
|
||||
</div>
|
||||
@@ -990,7 +990,7 @@
|
||||
<div class="box">
|
||||
<h1>{% trans 'Presentation de vignettes de panier' %}</h1>
|
||||
<div>
|
||||
{% set basket_status_display = user.getPrefs('basket_status_display') %}
|
||||
{% set basket_status_display = app['phraseanet.user'].getPrefs('basket_status_display') %}
|
||||
<label for="basket_status_display" class="checkbox">
|
||||
<input onchange="setPref('basket_status_display',($(this).attr('checked') ? '1' :'0'))"
|
||||
name="basket_status_display" type="checkbox" class="checkbox" value="1"
|
||||
@@ -999,7 +999,7 @@
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
{% set basket_caption_display = user.getPrefs('basket_caption_display') %}
|
||||
{% set basket_caption_display = app['phraseanet.user'].getPrefs('basket_caption_display') %}
|
||||
<label for="basket_caption_display" class="checkbox">
|
||||
<input onchange="setPref('basket_caption_display',($(this).attr('checked') ? '1' :'0'))"
|
||||
name="basket_caption_display" type="checkbox" class="checkbox" value="1"
|
||||
@@ -1008,7 +1008,7 @@
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
{% set basket_title_display = user.getPrefs('basket_title_display') %}
|
||||
{% set basket_title_display = app['phraseanet.user'].getPrefs('basket_title_display') %}
|
||||
<label for="basket_title_display" class="checkbox">
|
||||
<input onchange="setPref('basket_title_display',($(this).attr('checked') ? '1' :'0'))"
|
||||
name="basket_title_display" type="checkbox" class="checkbox" value="1"
|
||||
@@ -1038,7 +1038,7 @@
|
||||
<script type="text/javascript" src="{{registry.get('GV_STATIC_URL')}}/include/minify/f=include/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
p4.reg_delete="{% if user.getPrefs("warning_on_delete_story") %}true{% else %}false{% endif %}";
|
||||
p4.reg_delete="{% if app['phraseanet.user'].getPrefs("warning_on_delete_story") %}true{% else %}false{% endif %}";
|
||||
});
|
||||
|
||||
function sessionactive(){
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{% import 'common/caption_templates/preview.html.twig' as caption %}
|
||||
|
||||
{% if user.ACL().has_right_on_base(record.get_base_id, 'canmodifrecord') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right_on_base(record.get_base_id, 'canmodifrecord') %}
|
||||
<div class="edit_button" style="text-align:right">
|
||||
<a href="#" onclick="editThis('IMGT','{{record.get_serialize_key()}}');">
|
||||
<img style="vertical-align:middle" src="/skins/prod/000000/images/ppen_history.gif" />
|
||||
@@ -11,7 +11,7 @@
|
||||
<div style="text-align:center;">
|
||||
{{record.get_status_icons()|raw}}
|
||||
</div>
|
||||
{% set business = user.ACL().has_right_on_base(record.get_base_id(), 'canmodifrecord') %}
|
||||
{% set business = app['phraseanet.user'].ACL().has_right_on_base(record.get_base_id(), 'canmodifrecord') %}
|
||||
{% if record.is_from_reg() %}
|
||||
{{caption.format_caption(record, '', null, business)}}
|
||||
{% else %}
|
||||
|
@@ -55,7 +55,7 @@
|
||||
{% trans 'report::Modification du document -- je ne me souviens plus de quoi...' %}
|
||||
{% endif %}
|
||||
<span class="actor">
|
||||
{% if user.ACL().has_right_on_base(record.get_base_id(), 'canreport') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right_on_base(record.get_base_id(), 'canreport') %}
|
||||
{% if done['user'] and done['user'].get_id() != app['phraseanet.user'].get_id() %}
|
||||
{% set user_infos = done['user'].get_display_name() %}
|
||||
{% trans %}report:: par {{ user_infos }}{% endtrans %}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
|
||||
{% if (record.is_from_basket is empty) and user.ACL().has_right_on_base(record.get_base_id(), 'canputinalbum') %}
|
||||
{% if (record.is_from_basket is empty) and app['phraseanet.user'].ACL().has_right_on_base(record.get_base_id(), 'canputinalbum') %}
|
||||
<div sbas="{{record.get_sbas_id()}}" id="PREV_BASKADD_{{record.get_serialize_key}}"
|
||||
class="baskAdder" title="{% trans 'action : ajouter au panier' %}"
|
||||
onclick="evt_add_in_chutier('{{record.get_sbas_id()}}','{{record.get_record_id()}}',false,this);return(false);"></div>
|
||||
@@ -8,7 +8,7 @@
|
||||
<div class="printer" title="'{% trans 'action : print' %}"
|
||||
onclick="evt_print('{{record.get_sbas_id()}}_{{record.get_record_id()}}');return(false);"></div>
|
||||
|
||||
{% if user.ACL().has_right_on_base(record.get_base_id(), 'candwnldhd') or user.ACL().has_right_on_base(record.get_base_id(), 'candwnldpreview') %}
|
||||
{% if app['phraseanet.user'].ACL().has_right_on_base(record.get_base_id(), 'candwnldhd') or app['phraseanet.user'].ACL().has_right_on_base(record.get_base_id(), 'candwnldpreview') %}
|
||||
<div class="downloader" title="{% trans 'action : exporter' %}"
|
||||
onclick="evt_dwnl('{{record.get_sbas_id()}}_{{record.get_record_id()}}');return(false);"></div>
|
||||
{% endif %}
|
||||
|
@@ -15,7 +15,7 @@
|
||||
{% endtrans %}
|
||||
<br/>
|
||||
{% endif %}
|
||||
{% set th_size = user.getPrefs('images_size')%}
|
||||
{% set th_size = app['phraseanet.user'].getPrefs('images_size')%}
|
||||
<div class="selectable" style="margin:10px 0; float:left;">
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
|
@@ -8,7 +8,7 @@
|
||||
{% set ident = record.get_base_id ~ ' ' ~ record.get_record_id%}
|
||||
{% set sbas_id = record.get_sbas_id %}
|
||||
|
||||
{{record_format.block(record, user, highlight, searchEngine, 'IMGT', false)}}
|
||||
{{record_format.block(record, highlight, searchEngine, 'IMGT', false)}}
|
||||
{% endfor %}
|
||||
|
||||
{% endblock %}
|
||||
|
@@ -12,14 +12,14 @@
|
||||
<table style='width:100%;' cellspacing='0' cellpadding='0' border='0'>
|
||||
<tr>
|
||||
<td valign="top" style='width:{{th_size+50}}px'>
|
||||
{{record_format.block(record, user, highlight, searchEngine, 'IMGT', false)}}
|
||||
{{record_format.block(record, highlight, searchEngine, 'IMGT', false)}}
|
||||
</td>
|
||||
<td valign="middle">
|
||||
<div class='desc' style='max-height:{{th_size+70}}px;overflow-y:auto;'>
|
||||
<div class="fixeddesc">
|
||||
{% set business = user.ACL().has_right_on_base(record.get_base_id(), 'canmodifrecord') %}
|
||||
{% set business = app['phraseanet.user'].ACL().has_right_on_base(record.get_base_id(), 'canmodifrecord') %}
|
||||
{{caption.format_caption(record, highlight, searchEngine, business)}}
|
||||
{% if user.getPrefs('technical_display') == 'group' %}<hr/>{{record.get_technical_infos|raw}}{% endif %}
|
||||
{% if app['phraseanet.user'].getPrefs('technical_display') == 'group' %}<hr/>{{record.get_technical_infos|raw}}{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
@@ -20,7 +20,7 @@
|
||||
<br/>
|
||||
{% endif %}
|
||||
|
||||
{% set th_size = user.getPrefs('images_size')%}
|
||||
{% set th_size = app['phraseanet.user'].getPrefs('images_size')%}
|
||||
|
||||
{% if app['locale.I18n'] == 'fr' %}
|
||||
<div class="client_help">
|
||||
|
@@ -1,8 +1,8 @@
|
||||
{% macro block(record, user, highlight, searchEngine, prefix, entry_id)%}
|
||||
{% macro block(record, highlight, searchEngine, prefix, entry_id)%}
|
||||
{% import 'common/thumbnail.html.twig' as thumbnail %}
|
||||
{% import 'common/doctype_icons.html.twig' as doctype_icons %}
|
||||
{% import 'common/drop_down_options.html.twig' as drop_down %}
|
||||
{% set th_size = user.getPrefs('images_size')%}
|
||||
{% set th_size = app['phraseanet.user'].getPrefs('images_size')%}
|
||||
{% set sbas_id = record.get_sbas_id %}
|
||||
{% if entry_id %}
|
||||
<div style="width:{{th_size+30}}px;" sbas="{{sbas_id}}"
|
||||
@@ -31,8 +31,8 @@
|
||||
</div>
|
||||
{% set rollover_gif = record.get_rollover_thumbnail() %}
|
||||
|
||||
{% set user_technical_display = user.getPrefs('technical_display') %}
|
||||
{% set user_rollover_thumbnail = user.getPrefs('rollover_thumbnail') %}
|
||||
{% set user_technical_display = app['phraseanet.user'].getPrefs('technical_display') %}
|
||||
{% set user_rollover_thumbnail = app['phraseanet.user'].getPrefs('rollover_thumbnail') %}
|
||||
|
||||
{% set extraclass = '' %}
|
||||
{% if user_rollover_thumbnail == 'caption' and searchEngine is not null %}
|
||||
@@ -47,7 +47,7 @@
|
||||
{% endif %}
|
||||
<div class="thumb {{extraclass}} " tooltipsrc="{{tooltipsrc}}" style="height:{{th_size}}px; z-index:90;">
|
||||
<div class="doc_infos">
|
||||
{% if user.getPrefs('doctype_display') == '1' %}
|
||||
{% if app['phraseanet.user'].getPrefs('doctype_display') == '1' %}
|
||||
{{doctype_icons.format(record)}}
|
||||
{% endif %}
|
||||
<span class="duration">
|
||||
@@ -79,8 +79,8 @@
|
||||
{% set l_width = l_width + 20 %}
|
||||
{% endif %}
|
||||
<td style='text-align:right;width:{{l_width}}px;' valign='bottom'>
|
||||
{{drop_down.prod(record, user, entry_id)}}
|
||||
{% if record.has_preview() and user.ACL().has_access_to_subdef(record, 'preview') %}
|
||||
{{drop_down.prod(record, entry_id)}}
|
||||
{% if record.has_preview() and app['phraseanet.user'].ACL().has_access_to_subdef(record, 'preview') %}
|
||||
<div tooltipsrc="/prod/tooltip/preview/{{record.get_sbas_id()}}/{{record.get_record_id()}}/" class="previewTips"></div>
|
||||
{% endif %}
|
||||
{% if user_rollover_thumbnail == 'preview' %}
|
||||
|
@@ -303,8 +303,8 @@
|
||||
</h5>
|
||||
<ul class="thumbnails">
|
||||
{% for record in records %}
|
||||
{% if user.ACL().has_right_on_base(record.get_base_id(), "canaddrecord")
|
||||
and user.ACL().has_right_on_base(record.get_base_id(), "candeleterecord") %}
|
||||
{% if app['phraseanet.user'].ACL().has_right_on_base(record.get_base_id(), "canaddrecord")
|
||||
and app['phraseanet.user'].ACL().has_right_on_base(record.get_base_id(), "candeleterecord") %}
|
||||
<li class="records-subititution span3">
|
||||
<div class="thumbnail">
|
||||
<div class="record-thumb" style="text-align:center;">
|
||||
|
Reference in New Issue
Block a user