Browse Source

HUE-2401 [search] Visually report selected and excluded values for ranges too

Added labels and css classes
Enrico Berti 11 năm trước cách đây
mục cha
commit
287661dd41
1 tập tin đã thay đổi với 7 bổ sung1 xóa
  1. 7 1
      apps/search/src/search/templates/search.mako

+ 7 - 1
apps/search/src/search/templates/search.mako

@@ -1016,17 +1016,23 @@ ${ dashboard.layout_skeleton() }
          
       </div>
       <div class="content">
+        <strong>${_('selected')}</strong>
         <span data-bind="foreach: $data.properties" style="font-weight: normal">
           <!-- ko if: $.grep($parent.filter(), function(f) { return f.value() == $data.from() && ! f.exclude() }).length > 0 -->
+          <span class="label label-info">
             <strong>${_('from')}</strong> <span data-bind="text: $data.from"></span>
             <strong>${_('to')}</strong> <span data-bind="text: $data.to"></span>
+          </span>
           <!-- /ko -->
         </span>
         <br/>
-        <span data-bind="foreach: $data.properties" style="font-weight: normal"  class="excluded">
+        <strong>${_('excluded')}</strong>
+        <span data-bind="foreach: $data.properties" style="font-weight: normal" class="excluded">
           <!-- ko if: $.grep($parent.filter(), function(f) { return f.value() == $data.from() && f.exclude() }).length > 0 -->
+          <span class="label label-important">
             <strong>${_('from')}</strong> <span data-bind="text: $data.from"></span>
             <strong>${_('to')}</strong> <span data-bind="text: $data.to"></span>
+          </span>
           <!-- /ko -->
         </span>
       </div>