Skip to content

Commit

Permalink
MDL-57550 forum: fix template validation issues
Browse files Browse the repository at this point in the history
* Add some missing example contexts
* Stop using obsolete cell attributes
  • Loading branch information
danpoltawski committed Jan 23, 2017
1 parent 56882be commit 1847d4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
9 changes: 5 additions & 4 deletions mod/forum/templates/big_search_form.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down
5 changes: 2 additions & 3 deletions theme/boost/templates/mod_forum/big_search_form.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -171,4 +170,4 @@ require(['jquery'], function($) {
toggleDateFields('to', !this.checked);
});
});
{{/js}}
{{/js}}

0 comments on commit 1847d4c

Please sign in to comment.