PHRAS-3073 #comment add basket preference + display doc type #comment 3h

This commit is contained in:
Harrys Ravalomanana
2020-05-20 19:20:59 +04:00
parent 2c387552fa
commit fdfb4122d5
13 changed files with 879 additions and 138 deletions

View File

@@ -378,6 +378,9 @@
<i class="icomoon icon-round-list-24px white" ></i>
</span>
{% endif %}
{% if app['settings'].getUserSetting(app.getAuthenticatedUser(), 'basket_type_display') == '1' %}
<div class="basket_type"> {{ record_doctype_icon(record) }}</div>
{% endif %}
<a
{% if wz_scope == 'groupings' %}
id="WZEL{{ container.get_sbas_id() }}_{{ container.get_record_id() }}_{{ record.get_sbas_id() }}_{{ record.get_record_id() }}"

View File

@@ -989,6 +989,15 @@
{{ 'Afficher le titre' | trans }}
</label>
</div>
<div>
{% set basket_type_display = app['settings'].getUserSetting(app.getAuthenticatedUser(), 'basket_type_display') %}
<label for="basket_type_display" class="checkbox">
<input
name="basket_type_display" type="checkbox" class="checkbox preferences-options-basket-type" value="1"
id="basket_type_display" {% if basket_type_display == '1' %}checked="checked"{% endif %} />
{{ 'Afficher le type' | trans }}
</label>
</div>
</div>
</div>