mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
refactor layout of facet preferences
This commit is contained in:
0
node_modules/.gitkeep
generated
vendored
0
node_modules/.gitkeep
generated
vendored
12
package-lock.json
generated
12
package-lock.json
generated
@@ -16,9 +16,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"acorn": {
|
"acorn": {
|
||||||
"version": "5.5.1",
|
"version": "5.5.3",
|
||||||
"resolved": "https://registry.npmjs.org/acorn/-/acorn-5.5.1.tgz",
|
"resolved": "https://registry.npmjs.org/acorn/-/acorn-5.5.3.tgz",
|
||||||
"integrity": "sha512-D/KGiCpM/VOtTMDS+wfjywEth926WUrArrzYov4N4SI7t+3y8747dPpCmmAvrm/Z3ygqMHnyPxvYYO0yTdn/nQ=="
|
"integrity": "sha512-jd5MkIUlbbmb07nXH0DT3y7rDVtkzDi4XZOUVWAer8ajmF/DTSSbl5oNFyDOl/OXA33Bl79+ypHhl2pN20VeOQ=="
|
||||||
},
|
},
|
||||||
"acorn-dynamic-import": {
|
"acorn-dynamic-import": {
|
||||||
"version": "2.0.2",
|
"version": "2.0.2",
|
||||||
@@ -7842,9 +7842,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"phraseanet-production-client": {
|
"phraseanet-production-client": {
|
||||||
"version": "0.33.5",
|
"version": "0.33.7",
|
||||||
"resolved": "https://registry.npmjs.org/phraseanet-production-client/-/phraseanet-production-client-0.33.5.tgz",
|
"resolved": "https://registry.npmjs.org/phraseanet-production-client/-/phraseanet-production-client-0.33.7.tgz",
|
||||||
"integrity": "sha512-mu/XHMW4MUT5cGjt30g6CBXJgacnnQGTwrOHK9XyzMboyjXjOfocAc6jEXZXdn5CFem+BXJbg1OmGZPbf/aaAA==",
|
"integrity": "sha512-r0ERaJamj4lUDyzkjItS5l1fCQVQdKKT0y4SvFnQt/uBPeypBS5LPavyshTSeonyjZv3G9kHMQUKfPtLg4GhHA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"blueimp-canvas-to-blob": {
|
"blueimp-canvas-to-blob": {
|
||||||
"version": "3.5.0",
|
"version": "3.5.0",
|
||||||
|
@@ -714,35 +714,31 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
|
<h1>{{ 'index::advance_search: facet' | trans }}</h1>
|
||||||
<h1>{{ 'index::advance_search: facet-order' | trans }}</h1>
|
<h1>{{ 'index::advance_search: facet-order' | trans }}</h1>
|
||||||
<form class="form-inline">
|
<form class="form-inline">
|
||||||
{% set order_facet = app['settings'].getUserSetting(app.getAuthenticatedUser(), 'order_facet') %}
|
{% set order_facet = app['settings'].getUserSetting(app.getAuthenticatedUser(), 'order_facet') %}
|
||||||
<label class="select" for="orderFacet">
|
<label class="select" for="orderFacet">
|
||||||
<select class="preferences-facet-order" name="orderFacet">
|
<select class="preferences-facet-order" name="orderFacet">
|
||||||
<option {% if order_facet == constant('Alchemy\\Phrasea\\Core\\Configuration\\DisplaySettingService::ORDER_ALPHA_ASC') %} selected="selected" {% endif %}
|
|
||||||
value="{{ constant('Alchemy\\Phrasea\\Core\\Configuration\\DisplaySettingService::ORDER_ALPHA_ASC') }}">{{ 'Alphabetic asc' | trans }}</option>
|
|
||||||
<option {% if order_facet == constant('Alchemy\\Phrasea\\Core\\Configuration\\DisplaySettingService::ORDER_BY_BCT') %} selected="selected" {% endif %}
|
<option {% if order_facet == constant('Alchemy\\Phrasea\\Core\\Configuration\\DisplaySettingService::ORDER_BY_BCT') %} selected="selected" {% endif %}
|
||||||
value="{{ constant('Alchemy\\Phrasea\\Core\\Configuration\\DisplaySettingService::ORDER_BY_BCT') }}">{{ 'index::advance_search: facet-tech-order' | trans }}</option>
|
value="{{ constant('Alchemy\\Phrasea\\Core\\Configuration\\DisplaySettingService::ORDER_BY_BCT') }}">{{ 'index::advance_search: facet-tech-order' | trans }}</option>
|
||||||
|
<option {% if order_facet == constant('Alchemy\\Phrasea\\Core\\Configuration\\DisplaySettingService::ORDER_ALPHA_ASC') %} selected="selected" {% endif %}
|
||||||
|
value="{{ constant('Alchemy\\Phrasea\\Core\\Configuration\\DisplaySettingService::ORDER_ALPHA_ASC') }}">{{ 'Alphabetic asc' | trans }}</option>
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
|
||||||
<div class="box">
|
|
||||||
<h1>{{ 'index::advance_search: facet-values-order' | trans }}</h1>
|
<h1>{{ 'index::advance_search: facet-values-order' | trans }}</h1>
|
||||||
<form class="form-inline">
|
<form class="form-inline">
|
||||||
{% set facet_values_order = app['settings'].getUserSetting(app.getAuthenticatedUser(), 'facet_values_order') %}
|
{% set facet_values_order = app['settings'].getUserSetting(app.getAuthenticatedUser(), 'facet_values_order') %}
|
||||||
<label class="select" for="facetValuesOrder">
|
<label class="select" for="facetValuesOrder">
|
||||||
<select class="preferences-facet-values-order" name="facetValuesOrder">
|
<select class="preferences-facet-values-order" name="facetValuesOrder">
|
||||||
<option {% if facet_values_order == constant('Alchemy\\Phrasea\\Core\\Configuration\\DisplaySettingService::ORDER_ALPHA_ASC') %} selected="selected" {% endif %}
|
|
||||||
value="{{ constant('Alchemy\\Phrasea\\Core\\Configuration\\DisplaySettingService::ORDER_ALPHA_ASC') }}">{{ 'Alphabetic asc' | trans }}</option>
|
|
||||||
<option {% if facet_values_order == constant('Alchemy\\Phrasea\\Core\\Configuration\\DisplaySettingService::ORDER_BY_HITS') %} selected="selected" {% endif %}
|
<option {% if facet_values_order == constant('Alchemy\\Phrasea\\Core\\Configuration\\DisplaySettingService::ORDER_BY_HITS') %} selected="selected" {% endif %}
|
||||||
value="{{ constant('Alchemy\\Phrasea\\Core\\Configuration\\DisplaySettingService::ORDER_BY_HITS') }}">{{ 'index::advance_search: order-by-hits' | trans }}</option>
|
value="{{ constant('Alchemy\\Phrasea\\Core\\Configuration\\DisplaySettingService::ORDER_BY_HITS') }}">{{ 'index::advance_search: order-by-hits' | trans }}</option>
|
||||||
|
<option {% if facet_values_order == constant('Alchemy\\Phrasea\\Core\\Configuration\\DisplaySettingService::ORDER_ALPHA_ASC') %} selected="selected" {% endif %}
|
||||||
|
value="{{ constant('Alchemy\\Phrasea\\Core\\Configuration\\DisplaySettingService::ORDER_ALPHA_ASC') }}">{{ 'Alphabetic asc' | trans }}</option>
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
|
||||||
<div class="box">
|
|
||||||
<h1>{{ 'index::advance_search: facet' | trans }}</h1>
|
|
||||||
{% set facetFilter = app['settings'].getUserSetting(app.getAuthenticatedUser(), 'facet') %}
|
{% set facetFilter = app['settings'].getUserSetting(app.getAuthenticatedUser(), 'facet') %}
|
||||||
<label class="checkbox inline" for="ADVSRCH_FILTER_FACET" style="margin-bottom: 1em">
|
<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 %}>
|
<input id="ADVSRCH_FILTER_FACET" type="checkbox" name="filter_facet" {% if facetFilter == 'true' %}checked="checked"{% endif %}>
|
||||||
|
@@ -5316,8 +5316,8 @@ phraseanet-common@^0.4.1:
|
|||||||
pym.js "^1.3.1"
|
pym.js "^1.3.1"
|
||||||
|
|
||||||
phraseanet-production-client@^0.33.0:
|
phraseanet-production-client@^0.33.0:
|
||||||
version "0.33.5"
|
version "0.33.7"
|
||||||
resolved "https://registry.yarnpkg.com/phraseanet-production-client/-/phraseanet-production-client-0.33.5.tgz#f73066ac98786a473ee5ff918aa6f14babb9580e"
|
resolved "https://registry.yarnpkg.com/phraseanet-production-client/-/phraseanet-production-client-0.33.7.tgz#7b5ecb6e3001de9132cd12cb6574f6d25dc25cb9"
|
||||||
dependencies:
|
dependencies:
|
||||||
axios "^0.16.2"
|
axios "^0.16.2"
|
||||||
backbone "^1.3.3"
|
backbone "^1.3.3"
|
||||||
|
Reference in New Issue
Block a user