MDL-58428 theme: Move templates from blocks/search_forums
[moodle.git] / blocks / search_forums / templates / search_form.mustache
index 9f0411f..0dc8b87 100644 (file)
@@ -1,15 +1,18 @@
 <div class="searchform">
-    <form action="{{actionurl}}" style="display: inline;">
-        <fieldset class="invisiblefieldset">
-            <legend class="accesshide">{{#str}}search{{/str}}</legend>
-            <input type="hidden" name="id" value="{{courseid}}">
-            <label class="accesshide" for="searchform_search">{{#str}}search{{/str}}</label>
-            <input id="searchform_search" name="search" type="text" size="16">
-            <button id="searchform_button" type="submit" title={{#quote}}{{#str}}search{{/str}}{{/quote}}>{{#str}}go{{/str}}</button><br>
-            <a href="{{advancedsearchurl}}">{{#str}}advancedsearch, block_search_forums{{/str}}</a>
-            {{#helpicon}}
-                {{>core/help_icon}}
-            {{/helpicon}}
-        </fieldset>
+    <form action="{{actionurl}}" class="form-inline">
+        <input type="hidden" name="id" value="{{courseid}}">
+        <div class="input-group w-100">
+            <label class="sr-only" for="searchform_search">{{#str}}search{{/str}}</label>
+            <input id="searchform_search" name="search" type="text" class="form-control" size="10">
+            <div class="input-group-append">
+                <button class="btn btn-secondary" id="searchform_button" type="submit">{{#str}}go{{/str}}</button>
+            </div>
+        </div>
     </form>
+    <div class="mt-3">
+        <a href="{{advancedsearchurl}}">{{#str}}advancedsearch, block_search_forums{{/str}}</a>
+        {{#helpicon}}
+            {{>core/help_icon}}
+        {{/helpicon}}
+    </div>
 </div>