MDL-62823 filter: Save changes button should be styled
authorNeill Magill <neill.magill@nottingham.ac.uk>
Thu, 28 Jun 2018 08:42:47 +0000 (09:42 +0100)
committerNeill Magill <neill.magill@nottingham.ac.uk>
Fri, 29 Jun 2018 07:40:41 +0000 (08:40 +0100)
filter/manage.php

index 2f12478..bff72f8 100644 (file)
@@ -202,7 +202,8 @@ if (empty($availablefilters)) {
 
     echo html_writer::table($table);
     echo html_writer::start_tag('div', array('class'=>'buttons'));
-    echo html_writer::empty_tag('input', array('type'=>'submit', 'name'=>'savechanges', 'value'=>get_string('savechanges')));
+    $submitattr = ['type' => 'submit', 'name' => 'savechanges', 'value' => get_string('savechanges'), 'class' => 'btn btn-primary'];
+    echo html_writer::empty_tag('input', $submitattr);
     echo html_writer::end_tag('div');
     echo html_writer::end_tag('div');
     echo html_writer::end_tag('form');