PHRAS-2669 #comment Workzone basket : add border color for selected item #time 4h

This commit is contained in:
Harrys Ravalomanana
2020-04-20 11:13:39 +04:00
parent 53a5dd2bdb
commit 51aeb4bd5a
4 changed files with 24 additions and 31 deletions

View File

@@ -65,7 +65,7 @@
"normalize-css": "^2.1.0",
"npm": "^6.0.0",
"npm-modernizr": "^2.8.3",
"phraseanet-production-client": "0.34.174-d",
"phraseanet-production-client": "0.34.175-d",
"requirejs": "^2.3.5",
"tinymce": "^4.0.28",
"underscore": "^1.8.3",

View File

@@ -346,18 +346,6 @@
{% import 'common/thumbnail.html.twig' as thumbnail %}
<div class="chim-content">
{% if app['settings'].getUserSetting(app.getAuthenticatedUser(), 'basket_title_display') == '1' %}
<div class="title">
{{ record.get_title()|truncate(20, "...") }}
</div>
{% endif %}
{% if app['settings'].getUserSetting(app.getAuthenticatedUser(), 'basket_status_display') == '1' %}
<div class="status" style="position:relative;height:20px;overflow-y:visible;z-index:15;">
{% for flag in record_flags(record) %}
<img src="{{ flag.path }}" title="{{ attribute(flag.labels, app.locale) }}" />
{% endfor %}
</div>
{% endif %}
<div class="CHIM diapo CHIM_{{record.get_serialize_key()}} open-preview-action"
data-kind="{% if wz_scope == 'groupings' %}REG{% else %}BASK{% endif %}"
data-position="{{ ord }}"
@@ -365,7 +353,20 @@
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() }}"/>
<div class="diapo_top">
{% if app['settings'].getUserSetting(app.getAuthenticatedUser(), 'basket_title_display') == '1' %}
<div class="title">
{{ record.get_title()|truncate(20, "...") }}
</div>
{% endif %}
{% if app['settings'].getUserSetting(app.getAuthenticatedUser(), 'basket_status_display') == '1' %}
<div class="status" style="position:relative;height:20px;overflow-y:visible;z-index:15;">
{% for flag in record_flags(record) %}
<img src="{{ flag.path }}" title="{{ attribute(flag.labels, app.locale) }}" />
{% endfor %}
</div>
{% endif %}
</div>
<div class="record-number">
{{record.getNumber()}}
</div>

View File

@@ -73,6 +73,11 @@
color: {{"#" ~ app['settings'].getUserSetting(app.getAuthenticatedUser(), 'fontcolor-selection', 'FFFFFF')}};
background-color: {{"#" ~ app['settings'].getUserSetting(app.getAuthenticatedUser(), 'background-selection', 'ab47bc')}};
}
#idFrameC .diapo.selected {
border: 3px solid {{"#" ~ app['settings'].getUserSetting(app.getAuthenticatedUser(), 'background-selection', 'ab47bc')}} !important;
background-color: transparent;
}
</style>
{% endblock %}
@@ -1001,17 +1006,4 @@
});
});
</script>
<style type="text/css">
.chim-feedback-item {
padding: 10px;
}
.ui-accordion .content {
padding: 0 5px;
text-align: center;
}
.ui-accordion .content .basket-content {
padding-left: 0;
}
</style>
{% endblock %}

View File

@@ -7577,10 +7577,10 @@ phraseanet-common@^0.4.5-d:
js-cookie "^2.1.0"
pym.js "^1.3.1"
phraseanet-production-client@0.34.174-d:
version "0.34.174-d"
resolved "https://registry.yarnpkg.com/phraseanet-production-client/-/phraseanet-production-client-0.34.174-d.tgz#1896144e78602b04a748d3f5ec33e1d848510222"
integrity sha512-xZ270lzhMEYtKkUmUq5yeBiKHClpVgybgDsMZ9/v9Rez6l860ZAV7Ry9HS11pwX7GfDgvnDYz3eVYCuw7VbRcw==
phraseanet-production-client@0.34.175-d:
version "0.34.175-d"
resolved "https://registry.yarnpkg.com/phraseanet-production-client/-/phraseanet-production-client-0.34.175-d.tgz#282c2cd039083aa99d85eb9cc573076eb0a06e06"
integrity sha512-9I1F0STZTsuSgtJrI0rmjkjf3M4Eca+JuwCf+q1XpDX1DThpiyGlr/0DgRkhpAEQL7Vhg4W3vW0RTmTL/Eh9sA==
dependencies:
"@mapbox/mapbox-gl-language" "^0.9.2"
"@turf/turf" "^5.1.6"