{% macro bas_list(module, search_datas) %} {% set unique_id = module.getRandom() %} {% for base in search_datas['bases'] %} {% set sbas_id = base['sbas_id'] %}
{% endfor %} {% endmacro %} {% extends "common/index_bootstrap.html.twig" %} {% block icon %} {% endblock %} {% block rss %} {% for feed in feeds %} {% set link = feed.get_user_link(registry, app['phraseanet.user'], 'rss') %} {% set link = feed.get_user_link(registry, app['phraseanet.user'], 'atom') %} {% endfor %} {% endblock %} {% block stylesheet %} {% endblock %} {% block javascript %} {% endblock %} {% block content %} {% set search_datas = module_prod.get_search_datas() %}
Phraseanet
{% trans 'Chargement' %}
{% set ratio = app['phraseanet.user'].getPrefs('search_window') %} {% if ratio == 0 %} {% set ratio = '0.333' %} {% endif %} {% set w1 = (100 * ratio)|round %} {% set w2 = (100 - w1) %}
{% import 'prod/WorkZone/Macros.html.twig' as WorkZoneMacros %} {{WorkZoneMacros.make_bloc(app, WorkZone)}}
{% if GV_thesaurus %}
    {% for base in search_datas['bases'] %} {% if base['thesaurus'] %}
  • {{base['sbas_id']|sbas_names(app)}}
      {% trans 'chargement' %}
  • {% endif %} {% endfor %}
{% if app['phraseanet.user'].ACL().has_access_to_module('thesaurus') %}
    {% for base in search_datas['bases'] %} {% if base['cterms'] %}
  • {{base['sbas_id']|sbas_names(app)}}
      {% trans 'chargement' %}
  • {% endif %} {% endfor %}
{% endif %}
{% endif %}
{% if GV_multiAndReport %} {% else %} {% endif %}
{% set actions = {} %} {% 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 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 app['phraseanet.user'].ACL().has_right('deleterecord') and app['phraseanet.user'].ACL().has_right('addrecord') %} {% set label %} {% trans 'action : collection' %} {% endset %} {% set actions = actions|merge( { 'move' : {'icon': "/skins/prod/000000/images/chgcoll_history.gif", 'class':'TOOL_chgcoll_btn', 'label' : label} }) %} {% endif %} {% set n_actions = actions|length %} {% if n_actions > 1 %}
{% for action in actions %} {% if loop.first %} {% endif %} {% endfor %}
{% elseif n_actions == 1 %}
{% for action in actions %} {% endfor %}
{% endif %} {% if app['phraseanet.user'].ACL().has_right('push') and app['phraseanet.user'].ACL().has_right('bas_chupub') %} {% elseif app['phraseanet.user'].ACL().has_right('push') %}
{% elseif app['phraseanet.user'].ACL().has_right('bas_chupub') %}
{% endif %} {% if app['phraseanet.user'].ACL().has_right('doctools') %}
{% endif %} {% if app['phraseanet.user'].ACL().has_right('deleterecord') %}
{% endif %}
{% endblock %} {% block extra_content %}
{{cgus_agreement|raw}}
{% if GV_google_api is not empty %}
{% endif %}
{% trans 'boutton::fermer' %}
{% endblock %}