MDL-57550 forum: fix template validation issues

* Add some missing example contexts
* Stop using obsolete cell attributes
This commit is contained in:
Dan Poltawski 2016-12-30 09:01:19 +00:00
parent 56882be67e
commit 1847d4c5ea
2 changed files with 7 additions and 7 deletions

View File

@ -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>

View File

@ -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}}