mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Baskets templates
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
$.ajax({
|
||||
type: $form.attr('method'),
|
||||
url: $form.attr('action'),
|
||||
data: $form.serializeArray(),
|
||||
dataType: 'json',
|
||||
beforeSend:function(){
|
||||
|
||||
|
19
templates/web/prod/Baskets/Reorder.html.twig
Normal file
19
templates/web/prod/Baskets/Reorder.html.twig
Normal file
@@ -0,0 +1,19 @@
|
||||
{% import 'common/thumbnail.html' as thumbnail %}
|
||||
|
||||
{% for element in basket.getElements() %}
|
||||
<div id="ORDER_{{ element.getId() }}" class="CHIM diapo" style="height:130px;overflow:hidden;">
|
||||
<div class="title" title="{{ element.getRecord().get_title() }}" style="position:relative;z-index:1200;height:30px;overflow:visible;text-align:center;">
|
||||
<span>{{ element.getRecord().get_title() }}</span>
|
||||
{{ thumbnail.format(element.getRecord().get_thumbnail(), 80, 80, '', session) }}
|
||||
<form style="display:none;">
|
||||
<input type="hidden" name="id" value="{{ element.getId() }}"/>
|
||||
<input type="hidden" name="title" value="{{ element.getRecord().get_title() }}"/>
|
||||
<input type="hidden" name="default" value="{{ element.getOrd() }}"/>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form method="POST" action="/prod/baskets/{{ basket.getId() }}/reorder/">
|
||||
|
||||
</form>
|
||||
{% endfor %}
|
@@ -1,74 +0,0 @@
|
||||
<div style="margin:0 7px;overflow:hidden;">
|
||||
{% set basket_length = basket.getElements()|length %}
|
||||
<div class="tools">
|
||||
|
||||
|
||||
<button class="ui-corner-all TOOL_disktt_btn basket_window" title="{% trans 'action : exporter' %}">
|
||||
<img src="/skins/prod/000000/images/disktt_history.gif"/>
|
||||
</button>
|
||||
<button class="ui-corner-all TOOL_print_btn basket_window" title="{% trans 'action : print' %}">
|
||||
<img src="/skins/prod/000000/images/print_history.gif"/>
|
||||
</button>
|
||||
|
||||
{% if 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') %}
|
||||
<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') %}
|
||||
<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') %}
|
||||
<button class="ui-corner-all TOOL_pushdoc_btn basket_window" title="{% trans 'action : push' %}">
|
||||
<img src="/skins/prod/000000/images/pushdoc_history.gif"/>
|
||||
</button>
|
||||
{% endif %}
|
||||
{% if 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>
|
||||
<button class="ui-corner-all TOOL_publish_btn basket_window" title="{% trans 'action : publier' %}">
|
||||
<img src="/skins/icons/rss16.png"/>
|
||||
</button>
|
||||
{% endif %}
|
||||
|
||||
{% if 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>
|
||||
{% endif %}
|
||||
<button class="ui-corner-all TOOL_trash_btn basket_window" title="{% trans 'action : supprimer' %}">
|
||||
<img src="/skins/icons/delete.png"/>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
<div class="alert_datas_changed ui-corner-all">{% trans 'Certaines donnees du panier ont change' %} <a class="basket_refresher" href="#">{% trans 'rafraichir' %}</a></div>
|
||||
{% if basket_length == 0 %}
|
||||
<div style="height:120px;"></div>
|
||||
{% endif %}
|
||||
|
||||
{% if basket.is_grouping() %}
|
||||
{% set basket_scope = 'groupings'%}
|
||||
{% else %}
|
||||
{% set basket_scope = 'objects'%}
|
||||
{% endif %}
|
||||
|
||||
{% if basket.is_my_valid() %}
|
||||
{% include 'prod/basket_as_validation.twig'%}
|
||||
{% else %}
|
||||
{% include 'prod/basket_default.twig'%}
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user