|
|
@@ -571,75 +571,75 @@ ${ dashboard.layout_skeleton(suffix='search') }
|
|
|
<script type="text/html" id="facet-toggle2">
|
|
|
<div class="pull-left margin-right-20">
|
|
|
## Dimension 1
|
|
|
- <!-- ko if: $root.isEditing -->
|
|
|
- <!-- ko if: properties.canRange() && typeof properties.type != "undefined" -->
|
|
|
- <div class="facet-field-cnt">
|
|
|
- <span class="facet-field-label facet-field-label-fixed-width">${ _('Type') }</span>
|
|
|
- <a href="javascript: void(0)" title="${ _('Toggle how to group the values') }" data-bind="click: $root.collection.toggleRangeFacet2">
|
|
|
- <i class="fa" data-bind="css: { 'fa-arrows-h': properties.type() == 'range', 'fa-circle': properties.type() == 'field', 'fa-level-up': properties.type() == 'range-up' }, attr: { title: properties.type() == 'field' ? 'Range' : properties.type() == 'range-up' ? 'Range and up' : 'Term' }"></i>
|
|
|
- <span data-bind="visible: properties.type() == 'range'">${_('range')}</span>
|
|
|
- <span data-bind="visible: properties.type() == 'range-up'">${_('range & up')}</span>
|
|
|
- <span data-bind="visible: properties.type() == 'field'">${_('field')}</span>
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- <!-- /ko -->
|
|
|
-
|
|
|
- <!-- ko if: widgetType() != 'hit-widget' -->
|
|
|
- <div class="facet-field-cnt">
|
|
|
- <span class="facet-field-label facet-field-label-fixed-width">${ _('Sorting') }</span>
|
|
|
- <a href="javascript: void(0)" title="${ _('Toggle sort order') }" data-bind="click: function() { $root.collection.toggleSortFacet2($data, $data); }">
|
|
|
- <i class="fa" data-bind="css: { 'fa-caret-down': properties.sort() == 'desc', 'fa-caret-up': properties.sort() == 'asc', 'fa-sort': properties.sort() == 'default' }"></i>
|
|
|
- <span data-bind="visible: properties.sort() == 'desc'">${_('descending')}</span>
|
|
|
- <span data-bind="visible: properties.sort() == 'asc'">${_('ascending')}</span>
|
|
|
- <span data-bind="visible: properties.sort() == 'default'">${_('default')}</span>
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- <!-- /ko -->
|
|
|
-
|
|
|
-
|
|
|
- <!-- ko if: type() == 'range' || type() == 'range-up' || (type() == 'nested' && typeof properties.min != "undefined") -->
|
|
|
- <!-- ko ifnot: properties.isDate() -->
|
|
|
- <div class="slider-cnt" data-bind="slider: {start: properties.min, end: properties.max, gap: properties.initial_gap, min: properties.initial_start, max: properties.initial_end, properties: properties, labels: SLIDER_LABELS}"></div>
|
|
|
- <!-- /ko -->
|
|
|
- <!-- ko if: properties.isDate() && $root.collection.timeFilter && $root.collection.timeFilter.field && $root.collection.timeFilter.field() != field() -->
|
|
|
- <div data-bind="daterangepicker: {start: properties.start, end: properties.end, gap: properties.initial_gap, relatedgap: properties.gap, min: properties.min, max: properties.max}"></div>
|
|
|
- <!-- /ko -->
|
|
|
- <!-- /ko -->
|
|
|
-
|
|
|
-
|
|
|
- <div class="facet-field-cnt">
|
|
|
- <span class="spinedit-cnt">
|
|
|
- <span class="facet-field-label facet-field-label-fixed-width">
|
|
|
- ${ _('Limit') }
|
|
|
- </span>
|
|
|
- <input type="text" class="input-medium" data-bind="spinedit: properties.limit"/>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="facet-field-cnt">
|
|
|
- <span class="spinedit-cnt">
|
|
|
- <span class="facet-field-label facet-field-label-fixed-width">
|
|
|
- ${ _('Min Count') }
|
|
|
- </span>
|
|
|
- <input type="text" class="input-medium" data-bind="spinedit: properties.mincount"/>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="facet-field-cnt" data-bind="visible: $root.collection.nested.enabled">
|
|
|
- <span class="spinedit-cnt">
|
|
|
- <span class="facet-field-label">
|
|
|
- ${ _('Domain') }
|
|
|
- </span>
|
|
|
- ${ _('Parent') }
|
|
|
- <select data-bind="selectedOptions: properties.domain.blockParent, options: $root.collection.nestedNames" size="5" multiple="true"></select>
|
|
|
- ${ _('Children') }
|
|
|
- <select data-bind="selectedOptions: properties.domain.blockChildren, options: $root.collection.nestedNames" size="5" multiple="true"></select>
|
|
|
-
|
|
|
- <input type="text" class="input-medium" data-bind="spinedit: properties.mincount"/>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- <!-- /ko -->
|
|
|
- </div>
|
|
|
+## <!-- ko if: $root.isEditing -->
|
|
|
+## <!-- ko if: properties.canRange() && typeof properties.type != "undefined" -->
|
|
|
+## <div class="facet-field-cnt">
|
|
|
+## <span class="facet-field-label facet-field-label-fixed-width">${ _('Type') }</span>
|
|
|
+## <a href="javascript: void(0)" title="${ _('Toggle how to group the values') }" data-bind="click: $root.collection.toggleRangeFacet2">
|
|
|
+## <i class="fa" data-bind="css: { 'fa-arrows-h': properties.type() == 'range', 'fa-circle': properties.type() == 'field', 'fa-level-up': properties.type() == 'range-up' }, attr: { title: properties.type() == 'field' ? 'Range' : properties.type() == 'range-up' ? 'Range and up' : 'Term' }"></i>
|
|
|
+## <span data-bind="visible: properties.type() == 'range'">${_('range')}</span>
|
|
|
+## <span data-bind="visible: properties.type() == 'range-up'">${_('range & up')}</span>
|
|
|
+## <span data-bind="visible: properties.type() == 'field'">${_('field')}</span>
|
|
|
+## </a>
|
|
|
+## </div>
|
|
|
+## <!-- /ko -->
|
|
|
+##
|
|
|
+## <!-- ko if: widgetType() != 'hit-widget' -->
|
|
|
+## <div class="facet-field-cnt">
|
|
|
+## <span class="facet-field-label facet-field-label-fixed-width">${ _('Sorting') }</span>
|
|
|
+## <a href="javascript: void(0)" title="${ _('Toggle sort order') }" data-bind="click: function() { $root.collection.toggleSortFacet2($data, $data); }">
|
|
|
+## <i class="fa" data-bind="css: { 'fa-caret-down': properties.sort() == 'desc', 'fa-caret-up': properties.sort() == 'asc', 'fa-sort': properties.sort() == 'default' }"></i>
|
|
|
+## <span data-bind="visible: properties.sort() == 'desc'">${_('descending')}</span>
|
|
|
+## <span data-bind="visible: properties.sort() == 'asc'">${_('ascending')}</span>
|
|
|
+## <span data-bind="visible: properties.sort() == 'default'">${_('default')}</span>
|
|
|
+## </a>
|
|
|
+## </div>
|
|
|
+## <!-- /ko -->
|
|
|
+##
|
|
|
+##
|
|
|
+## <!-- ko if: type() == 'range' || type() == 'range-up' || (type() == 'nested' && typeof properties.min != "undefined") -->
|
|
|
+## <!-- ko ifnot: properties.isDate() -->
|
|
|
+## <div class="slider-cnt" data-bind="slider: {start: properties.min, end: properties.max, gap: properties.initial_gap, min: properties.initial_start, max: properties.initial_end, properties: properties, labels: SLIDER_LABELS}"></div>
|
|
|
+## <!-- /ko -->
|
|
|
+## <!-- ko if: properties.isDate() && $root.collection.timeFilter && $root.collection.timeFilter.field && $root.collection.timeFilter.field() != field() -->
|
|
|
+## <div data-bind="daterangepicker: {start: properties.start, end: properties.end, gap: properties.initial_gap, relatedgap: properties.gap, min: properties.min, max: properties.max}"></div>
|
|
|
+## <!-- /ko -->
|
|
|
+## <!-- /ko -->
|
|
|
+##
|
|
|
+##
|
|
|
+## <div class="facet-field-cnt">
|
|
|
+## <span class="spinedit-cnt">
|
|
|
+## <span class="facet-field-label facet-field-label-fixed-width">
|
|
|
+## ${ _('Limit') }
|
|
|
+## </span>
|
|
|
+## <input type="text" class="input-medium" data-bind="spinedit: properties.limit"/>
|
|
|
+## </span>
|
|
|
+## </div>
|
|
|
+##
|
|
|
+## <div class="facet-field-cnt">
|
|
|
+## <span class="spinedit-cnt">
|
|
|
+## <span class="facet-field-label facet-field-label-fixed-width">
|
|
|
+## ${ _('Min Count') }
|
|
|
+## </span>
|
|
|
+## <input type="text" class="input-medium" data-bind="spinedit: properties.mincount"/>
|
|
|
+## </span>
|
|
|
+## </div>
|
|
|
+##
|
|
|
+## <div class="facet-field-cnt" data-bind="visible: $root.collection.nested.enabled">
|
|
|
+## <span class="spinedit-cnt">
|
|
|
+## <span class="facet-field-label">
|
|
|
+## ${ _('Domain') }
|
|
|
+## </span>
|
|
|
+## ${ _('Parent') }
|
|
|
+## <select data-bind="selectedOptions: properties.domain.blockParent, options: $root.collection.nestedNames" size="5" multiple="true"></select>
|
|
|
+## ${ _('Children') }
|
|
|
+## <select data-bind="selectedOptions: properties.domain.blockChildren, options: $root.collection.nestedNames" size="5" multiple="true"></select>
|
|
|
+##
|
|
|
+## <input type="text" class="input-medium" data-bind="spinedit: properties.mincount"/>
|
|
|
+## </span>
|
|
|
+## </div>
|
|
|
+## <!-- /ko -->
|
|
|
+## </div>
|
|
|
|
|
|
## Dimensions > 1
|
|
|
<!-- ko if: $root.isEditing -->
|
|
|
@@ -1770,19 +1770,19 @@ ${ dashboard.layout_skeleton(suffix='search') }
|
|
|
<!-- ko with: $root.collection.getFacetById($parent.id()) -->
|
|
|
<div>
|
|
|
|
|
|
- <span data-bind="template: { name: 'metric-form' }"></span>
|
|
|
+ ##<span data-bind="template: { name: 'metric-form' }"></span>
|
|
|
<span data-bind="template: { name: 'facet-toggle2' }"></span>
|
|
|
|
|
|
<div class="pull-right" style="margin-top: 40px">
|
|
|
|
|
|
- <div class="inline-block hide" style="padding-bottom: 10px; padding-right: 20px">
|
|
|
- <span class="facet-field-label hide">${ _('Sorting') }</span>
|
|
|
- <a href="javascript: void(0)" title="${ _('Toggle sort order') }" class="hide" data-bind="click: $root.collection.toggleSortFacet">
|
|
|
- <i class="fa" data-bind="css: { 'fa-caret-down': properties.sort() == 'desc', 'fa-caret-up': properties.sort() == 'asc' }"></i>
|
|
|
- <span data-bind="visible: properties.sort() == 'desc'">${_('descending')}</span>
|
|
|
- <span data-bind="visible: properties.sort() == 'asc'">${_('ascending')}</span>
|
|
|
- </a>
|
|
|
- </div>
|
|
|
+ ##<div class="inline-block hide" style="padding-bottom: 10px; padding-right: 20px">
|
|
|
+ ## <span class="facet-field-label hide">${ _('Sorting') }</span>
|
|
|
+ ## <a href="javascript: void(0)" title="${ _('Toggle sort order') }" class="hide" data-bind="click: $root.collection.toggleSortFacet">
|
|
|
+ ## <i class="fa" data-bind="css: { 'fa-caret-down': properties.sort() == 'desc', 'fa-caret-up': properties.sort() == 'asc' }"></i>
|
|
|
+ ## <span data-bind="visible: properties.sort() == 'desc'">${_('descending')}</span>
|
|
|
+ ## <span data-bind="visible: properties.sort() == 'asc'">${_('ascending')}</span>
|
|
|
+ ## </a>
|
|
|
+ ##</div>
|
|
|
|
|
|
<!-- ko if: properties.isDate -->
|
|
|
<div class="inline-block" style="padding-bottom: 10px; padding-right: 20px">
|
|
|
@@ -2109,8 +2109,8 @@ ${ dashboard.layout_skeleton(suffix='search') }
|
|
|
<select data-bind="options: $parent.properties.facets_form.aggregate.metrics, optionsText: 'label', optionsValue: 'value', value: $data.function" class="input-small"></select>
|
|
|
<!-- /ko -->
|
|
|
|
|
|
- <!-- ko if: ($data.function() != 'field' || typeof properties == "undefined") && $data.metrics -->
|
|
|
- <select data-bind="options: $data.metrics, optionsText: 'label', optionsValue: 'value', value: $data.function" class="input-small"></select>
|
|
|
+ <!-- ko if: $data.function() != 'field' -->
|
|
|
+ <select data-bind="options: $parents[1].properties.facets_form.aggregate.metrics, optionsText: 'label', optionsValue: 'value', value: $data.function" class="input-small"></select>
|
|
|
<!-- /ko -->
|
|
|
|
|
|
<!-- ko if: $data.function() == 'percentile' -->
|
|
|
@@ -2133,7 +2133,7 @@ ${ dashboard.layout_skeleton(suffix='search') }
|
|
|
<input data-bind="value: formula, visible: $parent.field() == 'formula', valueUpdate: 'afterkeydown'"></input>
|
|
|
<input data-bind="value: plain_formula" type="hidden"></input>
|
|
|
|
|
|
- <!-- ko if: $data.function() != 'field' && $data.metrics -->
|
|
|
+ <!-- ko if: $data.function() != 'field' -->
|
|
|
<div class="facet-field-cnt">
|
|
|
<span class="facet-field-label facet-field-label-fixed-width">${ _('Sorting') }</span>
|
|
|
<a href="javascript: void(0)" title="${ _('Toggle sort order') }" data-bind="click: function() { $root.collection.toggleSortFacet2($parents[1], $parent); }">
|