MDL-58428 theme: Move templates from blocks/search_forums
authorMathew May <mathewm@hotmail.co.nz>
Mon, 18 Feb 2019 03:51:39 +0000 (11:51 +0800)
committerSara Arjona <sara@moodle.com>
Tue, 26 Feb 2019 11:56:14 +0000 (12:56 +0100)
blocks/search_forums/templates/search_form.mustache
theme/boost/templates/block_search_forums/search_form.mustache [deleted file]
theme/bootstrapbase/templates/block_search_forums/search_form.mustache [new file with mode: 0644]

index 9f0411f..0dc8b87 100644 (file)
@@ -1,15 +1,18 @@
 <div class="searchform">
 <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>
     </form>
+    <div class="mt-3">
+        <a href="{{advancedsearchurl}}">{{#str}}advancedsearch, block_search_forums{{/str}}</a>
+        {{#helpicon}}
+            {{>core/help_icon}}
+        {{/helpicon}}
+    </div>
 </div>
 </div>
diff --git a/theme/boost/templates/block_search_forums/search_form.mustache b/theme/boost/templates/block_search_forums/search_form.mustache
deleted file mode 100644 (file)
index 0dc8b87..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<div class="searchform">
-    <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>
diff --git a/theme/bootstrapbase/templates/block_search_forums/search_form.mustache b/theme/bootstrapbase/templates/block_search_forums/search_form.mustache
new file mode 100644 (file)
index 0000000..9f0411f
--- /dev/null
@@ -0,0 +1,15 @@
+<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>
+</div>