Skip to content
Permalink
Browse files

MDL-56803 glossary: More style fixes for glossary

Fix checkbox alignment for search on small screens, and put separation
between glossary items in a list.
  • Loading branch information...
damyon committed Nov 14, 2016
1 parent 1093b46 commit 04165cd4461a4649ff4e2e3348c8351f9ca6c219
Showing with 4 additions and 4 deletions.
  1. +1 −0 mod/glossary/lib.php
  2. +3 −4 mod/glossary/view.php
@@ -1319,6 +1319,7 @@ function glossary_print_entry_icons($course, $cm, $glossary, $entry, $mode='',$h
$return .= '<div>'.$comment->output(true).'</div>';
$output = true;
}
$return .= '<hr>';
//If we haven't calculated any REAL thing, delete result ($return)
if (!$output) {
@@ -368,15 +368,14 @@
} else {
echo '<input type="text" name="hook" size="20" value="" alt="'.$strsearch.'" class="form-control"/> ';
}
echo '<input type="submit" value="'.$strsearch.'" name="searchbutton" class="btn btn-secondary"/> ';
echo '<input type="submit" value="'.$strsearch.'" name="searchbutton" class="btn btn-secondary m-r-1"/> ';
if ($fullsearch || $mode != 'search') {
$fullsearchchecked = 'checked="checked"';
} else {
$fullsearchchecked = '';
}
echo '<span class="form-check"><label for="fullsearch" class="form-check-label">';
echo '<input type="checkbox" class="form-check-input m-l-1" ' .
'name="fullsearch" id="fullsearch" value="1" '.$fullsearchchecked.'/>';
echo '<span class="checkbox"><label for="fullsearch">';
echo ' <input type="checkbox" name="fullsearch" id="fullsearch" value="1" '.$fullsearchchecked.'/> ';
echo '<input type="hidden" name="mode" value="search" />';
echo '<input type="hidden" name="id" value="'.$cm->id.'" />';
echo $strsearchindefinition.'</label></span>';

0 comments on commit 04165cd

Please sign in to comment.
You can’t perform that action at this time.