Эх сурвалжийг харах

[search] Editable widget popup should open on the right

Romain Rigaux 11 жил өмнө
parent
commit
4b8faae

+ 3 - 3
apps/search/src/search/templates/admin_collections.mako

@@ -43,7 +43,7 @@ ${ commonheader(_('Search'), "search", user, "29px") | n,unicode }
       <input type="text" placeholder="${_('Filter dashboards...')}" class="input-xlarge search-query" id="filterInput" data-bind="visible: collections().length > 0 && !isLoading()">
       &nbsp;
       &nbsp;
-      <a class="btn" href="${ url('search:new_search') }" title="${ _('Create a new dashboard') }"><i class="fa fa-plus-circle"></i> ${ _('Dashboard') }</a>      
+      <a data-bind="visible: collections().length > 0 && !isLoading()" class="btn" href="${ url('search:new_search') }" title="${ _('Create a new dashboard') }"><i class="fa fa-plus-circle"></i> ${ _('Dashboard') }</a>      
     </%def>
 
     <%def name="creation()">    
@@ -54,9 +54,9 @@ ${ commonheader(_('Search'), "search", user, "29px") | n,unicode }
     <div class="span10 offset1 center importBtn" style="cursor: pointer">
       <i class="fa fa-plus-circle waiting"></i>
       <h1 class="emptyMessage">
-        ${ _('There are currently no collections defined.') }<br/>
+        ${ _('There are currently no dashboards defined.') }<br/>
         <a class="btn importBtn" href="${ url('search:new_search') }">
-          <i class="fa fa-file-o"></i> ${ _('Dashboard') }
+          <i class="fa fa-plus-circle"></i> ${ _('Dashboard') }
         </a> 
       </h1>
     </div>

+ 2 - 2
apps/search/src/search/templates/search.mako

@@ -276,10 +276,10 @@ ${ commonheader(_('Search'), "search", user, "80px") | n,unicode }
         &nbsp;
       </span>
       <span data-bind="with: $root.collection.getFacetById(id())">
-        <span data-bind="editable: label, editableOptions: {enabled: $root.isEditing()}"></span>
+        <span data-bind="editable: label, editableOptions: {enabled: $root.isEditing(), placement: 'right'}"></span>
       </span>
       <!-- ko ifnot: $root.collection.getFacetById(id()) -->
-        <span data-bind="editable: name, editableOptions: {enabled: $root.isEditing()}"></span>
+        <span data-bind="editable: name, editableOptions: {enabled: $root.isEditing(), placement: 'right'}"></span>
       <!-- /ko -->
       <div class="inline pull-right" data-bind="visible: $root.isEditing">
         <a href="javascript:void(0)" data-bind="click: function(){remove($parent, this)}"><i class="fa fa-times"></i></a>