mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
MDL-57550 forum: fix template validation issues
* Add some missing example contexts * Stop using obsolete cell attributes
This commit is contained in:
parent
56882be67e
commit
1847d4c5ea
@ -21,7 +21,6 @@
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"scripturl": "https://example.com/mod/forum/forum.js",
|
||||
"actionurl": "https://example.com/mod/forum/search.php",
|
||||
"courseid": "2",
|
||||
"words": "apples",
|
||||
@ -53,7 +52,7 @@
|
||||
</div>
|
||||
<div class="box generalbox boxaligncenter">
|
||||
<form id="searchform" action="{{actionurl}}" method="get">
|
||||
<table class="searchbox" id="form" cellpadding="10">
|
||||
<table class="searchbox table" id="form">
|
||||
<tr>
|
||||
<td class="c0">
|
||||
<label for="words">{{#str}}searchwords, forum{{/str}}</label>
|
||||
@ -146,8 +145,10 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="submit" align="center">
|
||||
<input type="submit" value={{#quote}}{{#str}}searchforums, forum{{/str}}{{/quote}}>
|
||||
<td colspan="2" class="submit">
|
||||
<div class="text-center">
|
||||
<input type="submit" value={{#quote}}{{#str}}searchforums, forum{{/str}}{{/quote}}>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -21,7 +21,6 @@
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"scripturl": "https://example.com/mod/forum/forum.js",
|
||||
"actionurl": "https://example.com/mod/forum/search.php",
|
||||
"courseid": "2",
|
||||
"words": "apples",
|
||||
@ -53,7 +52,7 @@
|
||||
</div>
|
||||
<div class="box generalbox boxaligncenter">
|
||||
<form id="searchform" action="{{actionurl}}" method="get">
|
||||
<table class="searchbox table table-striped" id="form" cellpadding="10">
|
||||
<table class="searchbox table table-striped" id="form">
|
||||
<tr>
|
||||
<td class="c0 text-xs-right">
|
||||
<label for="words">{{#str}}searchwords, forum{{/str}}</label>
|
||||
@ -171,4 +170,4 @@ require(['jquery'], function($) {
|
||||
toggleDateFields('to', !this.checked);
|
||||
});
|
||||
});
|
||||
{{/js}}
|
||||
{{/js}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user