mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
50 lines
2.7 KiB
Twig
50 lines
2.7 KiB
Twig
{% macro prod(record, entry_id)%}
|
|
{% if not entry_id %}
|
|
<a style="float:right;padding:0;margin:0;cursor:pointer;" class="contextMenuTrigger"
|
|
id="contextTrigger_{{record.baseId}}_{{record.recordId}}">▼</a>
|
|
<table cellspacing="0" cellpadding="0" style="display:none;"
|
|
id="answerContext_{{record.baseId}}_{{record.recordId}}" class="contextMenu answercontextmenu">
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<div class="context-menu context-menu-theme-vista">
|
|
{% if app['acl'].get(app['authentication'].getUser()).has_right_on_base(record.baseId, 'canputinalbum') and not record.story %}
|
|
<div title="" class="context-menu-item">
|
|
<div class="context-menu-item-inner"
|
|
onclick="evt_add_in_chutier('{{record.databoxId}}','{{record.recordId}}',false,this);return(false);">
|
|
{{ 'action : ajouter au panier' | trans }}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% if app['acl'].get(app['authentication'].getUser()).has_right_on_base(record.baseId, 'candwnldpreview') or app['acl'].get(app['authentication'].getUser()).has_right_on_base(record.baseId, 'candwnldhd') %}
|
|
<div title="" class="context-menu-item">
|
|
<div class="context-menu-item-inner"
|
|
onclick="evt_dwnl('{{record.databoxId}}_{{record.recordId}}',false,this);return(false);">
|
|
{{ 'action : exporter' | trans }}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
<div title="" class="context-menu-item">
|
|
<div class="context-menu-item-inner"
|
|
onclick="evt_print('{{record.databoxId}}_{{record.recordId}}');return(false);">
|
|
{{ 'action : print' | trans }}
|
|
</div>
|
|
</div>
|
|
{% if app['conf'].get(['registry', 'actions', 'social-tools']) == 'all' or (app['conf'].get(['registry', 'actions', 'social-tools']) == 'publishers' and app['acl'].get(app['authentication'].getUser()).has_right_on_sbas(record.databoxId, 'bas_chupub')) %}
|
|
{% if record.story is empty %}
|
|
<div title="" class="context-menu-item">
|
|
<div class="context-menu-item-inner"
|
|
onclick="shareThis('{{record.baseId}}','{{record.recordId}}');">
|
|
{{ 'reponses:: partager' | trans }}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
{% endif %}
|
|
{% endmacro %}
|