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

@@ -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 %}