Merge pull request #2366 from mike-esokia/PHRAS-1529_PORT_PHRAS-1415

PHRAS-1529 PORT PHRAS-1415
This commit is contained in:
Nicolas Maillat
2017-11-15 15:48:03 +01:00
committed by GitHub

View File

@@ -143,6 +143,8 @@
$(document).ready(function(){
prodApp.appEvents.emit('workzone.doRemoveWarning', "{% if app['settings'].getUserSetting(app.getAuthenticatedUser(), "warning_on_delete_story") %}true{% else %}false{% endif %}");
prodApp.appEvents.emit('search.setFilterFacet', "{% if app['settings'].getUserSetting(app.getAuthenticatedUser(), "facet") %}{{ app['settings'].getUserSetting(app.getAuthenticatedUser(), "facet") }}{% else %}false{% endif %}")
});
</script>
@@ -662,6 +664,14 @@
</form>
</div>
</div>
<div class="box">
<h1>{{ 'index::advance_search: facet' | trans }}</h1>
{% set facetFilter = app['settings'].getUserSetting(app.getAuthenticatedUser(), 'facet') %}
<label class="checkbox inline" for="ADVSRCH_FILTER_FACET" style="margin-bottom: 1em">
<input id="ADVSRCH_FILTER_FACET" type="checkbox" name="filter_facet" {% if facetFilter == 'true' %}checked="checked"{% endif %}>
{{ 'index::advance_search: disable-facet' | trans }}
</label>
</div>
</div>
</div>
</div>