Merge branch 'MDL-57570-master' of https://github.com/mwehr/moodle
[moodle.git] / theme / boost / templates / mod_forum / big_search_form.mustache
1 {{!
2     This file is part of Moodle - http://moodle.org/
4     Moodle is free software: you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by
6     the Free Software Foundation, either version 3 of the License, or
7     (at your option) any later version.
9     Moodle is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     GNU General Public License for more details.
14     You should have received a copy of the GNU General Public License
15     along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
16 }}
17 {{!
18     Big search form.
19 }}
20 <div id="intro" class="box searchbox boxaligncenter">
21     {{#str}}searchforumintro, forum{{/str}}
22 </div>
23 <div class="box generalbox boxaligncenter">
24     <script type="text/javascript" src="{{scripturl}}"></script>
25     <form id="searchform" action="{{actionurl}}" method="get">
26         <table class="searchbox table table-striped" id="form" cellpadding="10">
27             <tr>
28                 <td class="c0 text-xs-right">
29                     <label for="words">{{#str}}searchwords, forum{{/str}}</label>
30                     <input type="hidden" value="{{courseid}}" name="id">
31                 </td>
32                 <td class="c1">
33                     <input type="text" class="form-control" name="words" id="words" value="{{words}}">
34                 </td>
35             </tr>
36             <tr>
37                 <td class="c0 text-xs-right">
38                     <label for="phrase">{{#str}}searchphrase, forum{{/str}}</label>
39                 </td>
40                 <td class="c1">
41                     <input type="text" class="form-control" name="phrase" id="phrase" value="{{phrase}}">
42                 </td>
43             </tr>
44             <tr>
45                 <td class="c0 text-xs-right">
46                     <label for="notwords">{{#str}}searchnotwords, forum{{/str}}</label>
47                 </td>
48                 <td class="c1">
49                     <input type="text" class="form-control" name="notwords" id="notwords" value="{{notwords}}">
50                 </td>
51             </tr>
52             {{#showfullwords}}
53                 <tr>
54                     <td class="c0 text-xs-right">
55                         <label for="fullwords">{{#str}}searchfullwords, forum{{/str}}</label>
56                     </td>
57                     <td class="c1">
58                         <input type="text" class="form-control" name="fullwords" id="fullwords" value="{{fullwords}}">
59                     </td>
60                 </tr>
61             {{/showfullwords}}
62             <tr>
63                 <td class="c0 text-xs-right">
64                     {{#str}}searchdatefrom, forum{{/str}}
65                 </td>
66                 <td class="c1 text-nowrap form-inline">
67                     <input type="checkbox" name="timefromrestrict" value="1" onclick="return lockoptions('searchform', 'timefromrestrict', timefromitems)" {{#datefromchecked}}checked{{/datefromchecked}}>
68                     {{{datefromfields}}}
69                     <input type="hidden" name="hfromday" value="0">
70                     <input type="hidden" name="hfrommonth" value="0">
71                     <input type="hidden" name="hfromyear" value="0">
72                     <input type="hidden" name="hfromhour" value="0">
73                     <input type="hidden" name="hfromminute" value="0">
74                 </td>
75             </tr>
76             <tr>
77                 <td class="c0 text-xs-right">
78                     {{#str}}searchdateto, forum{{/str}}
79                 </td>
80                 <td class="c1 text-nowrap form-inline">
81                     <input type="checkbox" name="timetorestrict" value="1" onclick="return lockoptions('searchform', 'timetorestrict', timetoitems)" {{#datetochecked}}checked{{/datetochecked}}>
82                     {{{datetofields}}}
83                     <input type="hidden" name="htoday" value="0">
84                     <input type="hidden" name="htomonth" value="0">
85                     <input type="hidden" name="htoyear" value="0">
86                     <input type="hidden" name="htohour" value="0">
87                     <input type="hidden" name="htominute" value="0">
88                 </td>
89             </tr>
90             <tr>
91                 <td class="c0 text-xs-right">
92                     <label for="menuforumid">{{#str}}searchwhichforums, forum{{/str}}</label>
93                 </td>
94                 <td class="c1">
95                     <select name="menuforumid" id="menuforumid" class="form-control">
96                         {{#forumoptions}}
97                             <option value="{{value}}">{{name}}</option>
98                         {{/forumoptions}}
99                     </select>
100                 </td>
101             </tr>
102             <tr>
103                 <td class="c0 text-xs-right">
104                     <label for="subject">{{#str}}searchsubject, forum{{/str}}</label>
105                 </td>
106                 <td class="c1">
107                     <input type="text" class="form-control" name="subject" id="subject" value="{{subject}}">
108                 </td>
109             </tr>
110             <tr>
111                 <td class="c0 text-xs-right">
112                     <label for="user">{{#str}}searchuser, forum{{/str}}</label>
113                 </td>
114                 <td class="c1">
115                     <input type="text" class="form-control" name="user" id="user" value="{{user}}">
116                 </td>
117             </tr>
118             <tr>
119                 <td> </td>
120                 <td class="submit">
121                     <button type="submit" class="btn btn-primary">{{#str}}searchforums, forum{{/str}}</button>
122                 </td>
123             </tr>
124         </table>
125     </form>
126     {{#js}}
127         lockoptions_timetoitems();
128         lockoptions_timefromitems();
129     {{/js}}
130 </div>