You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by dk...@apache.org on 2018/08/29 22:19:02 UTC

[sling-org-apache-sling-app-cms] 01/03: Fixing the path suggestions and field display without the search button

This is an automated email from the ASF dual-hosted git repository.

dklco pushed a commit to branch SLING-7858
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-app-cms.git

commit 6ce725115552606aca74eaddef0f7d70399b90ef
Author: Dan Klco <dk...@apache.org>
AuthorDate: Wed Aug 29 18:18:08 2018 -0400

    Fixing the path suggestions and field display without the search button
---
 .../libs/sling-cms/components/editor/fields/path/path.jsp | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/ui/src/main/resources/jcr_root/libs/sling-cms/components/editor/fields/path/path.jsp b/ui/src/main/resources/jcr_root/libs/sling-cms/components/editor/fields/path/path.jsp
index 133abe9..3d9e45f 100644
--- a/ui/src/main/resources/jcr_root/libs/sling-cms/components/editor/fields/path/path.jsp
+++ b/ui/src/main/resources/jcr_root/libs/sling-cms/components/editor/fields/path/path.jsp
@@ -43,23 +43,24 @@
         <c:if test="${properties.required}"><span class="error">*</span></c:if>
     </label>
 </c:if>
-<div class="field has-addons">
 <c:choose>
     <c:when test="${properties.hidesearch != true}">
+    	<div class="field has-addons">
           <div class="control">
-              <input class="input" type="text" name="${properties.name}" value="${editProperties[properties.name]}" ${required} ${disabled} data-type="${properties.type}" data-base="${properties.basePath}" autocomplete="off" />
+              <input class="input pathfield" type="text" name="${properties.name}" value="${editProperties[properties.name]}" ${required} ${disabled} data-type="${properties.type}" data-base="${properties.basePath}" autocomplete="off" />
           </div>
           <div class="control">
               <a href="/cms/shared/search.html" class="Button Fetch-Modal Search-Button" data-title="Search" data-path=".Main-Content > .Grid > .Cell > *">
                   <span class="jam jam-search"></span>
               </a>
           </div>
+         </div>
     </c:when>
     <c:otherwise>
-        <div class="control">
-        <input class="input" type="text" name="${properties.name}" value="${editProperties[properties.name]}" ${required} ${disabled} data-type="${properties.type}" data-base="${properties.basePath}" autocomplete="off" />
+    	<div class="field">
+	        <div class="control">
+	        	<input class="input pathfield" type="text" name="${properties.name}" value="${editProperties[properties.name]}" ${required} ${disabled} data-type="${properties.type}" data-base="${properties.basePath}" autocomplete="off" />
+	        </div>
         </div>
     </c:otherwise>
-</c:choose>
-
-</div>
+</c:choose>
\ No newline at end of file