PHRAS-2875 Port of PHRAS-2864

This commit is contained in:
Harrys Ravalomanana
2020-01-21 18:10:28 +04:00
parent 0152e8d95f
commit bcc05fc543
4 changed files with 45 additions and 15 deletions

View File

@@ -5,8 +5,37 @@
</a>
</div>
<div class="bloc">
<div id="basket-filter" class="basket-filter">
<span class="filter-title">{{ 'See' | trans }} : </span>
<span class="filter-item">
<label id="basket-list" class="checkbox inline" for="basketFilter">
<input type="checkbox" class="checkbox " name="basketFilter" value="basket" checked>
{{ 'Basket' | trans }}
</label>
</span>
<span class="filter-item">
<label id="feedback-list" class="checkbox inline" for="basketFilter">
<input type="checkbox" class="checkbox " name="basketFilter" value="feedback" checked>
{{ 'Feedback' | trans }}
</label>
</span>
<span class="filter-item">
<label id="push-list" class="checkbox inline" for="basketFilter">
<input type="checkbox" class="checkbox " name="basketFilter" value="push" checked >
{{ 'Push' | trans }}
</label>
</span>
<span class="filter-item">
<label id="story-list" class="checkbox inline" for="basketFilter">
<input type="checkbox" class="checkbox " name="basketFilter" value="story" checked>
{{ 'Stories' | trans }}
</label>
</span>
</div>
<div class="insidebloc">
{% set content = WorkZone.getContent(srt) %}
<div id="validations-block" class="validations-block">
{% for basket in content.get(constant('\\Alchemy\\Phrasea\\Helper\\WorkZone::VALIDATIONS')) %}
<div tooltipsrc="{{ path('prod_tooltip_basket', { 'basket' : basket.getId() }) }}"
id="SSTT_{{basket.getId()}}"
@@ -31,7 +60,7 @@
class="basket_title"
src="/assets/common/images/icons/valid.png" />
</td>
<td>
<td class="contextMenuWrapper">
<a class="contextMenuTrigger" href="#">
<i class="icomoon icon-circle fa-stack-2x fa-inverse-bg" aria-hidden="true"></i>
<i class="icomoon icon-round-more_horiz-24px white fa-stack-1x fa-inverse" aria-hidden="true"></i>
@@ -81,13 +110,14 @@
</div>
<div id="SSTT_content_{{basket.getId()}}" class="content basket" style="overflow:hidden;"></div>
{% endfor %}
</div>
<div id="all_baskets-block" class="all_baskets-block">
{% for basket in content.get(constant('\\Alchemy\\Phrasea\\Helper\\WorkZone::BASKETS')) %}
<div tooltipsrc="{{ path('prod_tooltip_basket', { 'basket' : basket.getId() }) }}"
id="SSTT_{{basket.getId()}}"
class="basketTips ui-accordion-header ui-state-default
ui-corner-all header SSTT basket {% if not basket.isRead() %}unread{% endif %}
{% if basket.getId() == selected_id and selected_type == 'basket' %}active{% endif %}">
{% if basket.getId() == selected_id and selected_type == 'basket' %}active{% endif %}{% if basket.getValidation() %}feedbacks-block{% elseif basket.getPusher() %}pushes-block{% else %}baskets-block{% endif %} ">
<a class="workzone-menu-title" href="{{ path('prod_baskets_basket', { 'basket' : basket.getId() }) }}" style="">
<span>
{% if basket.getValidation() %}
@@ -128,7 +158,7 @@
</td>
{% endif %}
-->
<td>
<td class="contextMenuWrapper">
<a class="contextMenuTrigger" href="#">
<i class="icomoon icon-circle fa-stack-2x fa-inverse-bg" aria-hidden="true"></i>
<i class="icomoon icon-round-more_horiz-24px white fa-stack-1x fa-inverse" aria-hidden="true"></i></a>
@@ -214,9 +244,8 @@
</div>
<div id="SSTT_content_{{basket.getId()}}" class="content basket" style="overflow:hidden;"> </div>
{% endfor %}
</div>
<div id="stories-block" class="stories-block">
{% for story in content.get(constant('\\Alchemy\\Phrasea\\Helper\\WorkZone::STORIES')) %}
<div tooltipsrc="{{ path('prod_tooltip_story', { 'sbas_id' : story.getRecord(app).get_sbas_id(), 'record_id' : story.getRecord(app).get_record_id() }) }}"
id="SSWZ_{{story.getId()}}" sbas="{{story.getSbasId()}}"
@@ -233,7 +262,7 @@
<div class="menu">
<table>
<tr>
<td>
<td class="contextMenuWrapper">
<a class="contextMenuTrigger " href="#">
<i class="icomoon icon-circle fa-stack-2x fa-inverse-bg" aria-hidden="true"></i>
<i class="icomoon icon-round-more_horiz-24px white fa-stack-1x fa-inverse" aria-hidden="true"></i>
@@ -299,6 +328,7 @@
{% endfor %}
</div>
</div>
</div>
{% endmacro %}
@@ -333,7 +363,7 @@
id="CHIM_{% if wz_scope == 'groupings' %}{{record.get_serialize_key()}}{% else %}{{ contained.getId() }}{% endif %}">
<input type="hidden" name="id" value="{{ record.get_serialize_key() }}"/>
<div style="position:absolute;background-color:#959595;color:black;font-weight:bold;padding:3px;z-index:90;">
<div class="record-number">
{{record.getNumber()}}
</div>
{{thumbnail.format(record.get_thumbnail,140,140, '', true, false)}}

View File

@@ -1,5 +1,5 @@
<div>
<button class="tools-accordion"><span>Actions<i class="fa fa-chevron-right rotate"></i></span></button>
<button class="tools-accordion"><span>Actions</span></button>
<div class="tools-panel">
<button class="ui-corner-all TOOL_disktt_btn story_window" data-selection-source="story">