MDL-69454 core_search: consistent backup search
[moodle.git] / lib / templates / search_input.mustache
index 5d47c5e..f494a26 100644 (file)
@@ -24,6 +24,7 @@
         "action": "https://moodle.local/admin/search.php",
         "extraclasses": "my-2",
         "inputname": "search",
+        "inform": false,
         "searchstring": "Search settings",
         "value": "policy",
         "btnclass": "primary",
@@ -37,7 +38,9 @@
     }
 }}
 <div class="simplesearchform {{{ extraclasses }}}">
+    {{^inform}}
     <form autocomplete="off" action="{{{ action }}}" method="get" accept-charset="utf-8" class="mform form-inline simplesearchform">
+    {{/inform}}
     {{#hiddenfields}}
         <input type="hidden" name="{{ name }}" value="{{ value }}">
     {{/hiddenfields}}
                 <span class="sr-only">{{{ searchstring }}}</span>
             </button>
         </div>
+
     </div>
     {{#otherfields}}
         <div  class="ml-2">{{{ otherfields }}}</div>
     {{/otherfields}}
-</form>
+{{^inform}}
+    </form>
+{{/inform}}
 </div>
\ No newline at end of file