MDL-56651 core_role: add styling to submit buttons
authorSimey Lameze <simey@moodle.com>
Mon, 31 Oct 2016 02:36:42 +0000 (10:36 +0800)
committerSimey Lameze <simey@moodle.com>
Tue, 1 Nov 2016 01:40:53 +0000 (09:40 +0800)
admin/roles/define.php
theme/boost/scss/moodle/expendable.scss

index 5a5e6a3..093c693 100644 (file)
@@ -256,9 +256,9 @@ if ($action === 'view') {
 <input type="hidden" name="sesskey" value="<?php p(sesskey()) ?>" />
 <input type="hidden" name="return" value="<?php p($return); ?>" />
 <input type="hidden" name="resettype" value="none" />
-<div class="submit buttons">
-    <input type="submit" name="savechanges" value="<?php p($submitlabel); ?>" />
-    <input type="submit" name="cancel" value="<?php print_string('cancel'); ?>" />
+<div class="submitbuttons">
+    <input type="submit" name="savechanges" class="btn btn-primary" value="<?php p($submitlabel); ?>" />
+    <input type="submit" name="cancel" class="btn btn-secondary" value="<?php print_string('cancel'); ?>" />
 </div>
     <?php
 }
@@ -271,9 +271,9 @@ if ($action === 'view') {
     echo '</div>';
 } else {
     ?>
-<div class="submit buttons">
-    <input type="submit" name="savechanges" value="<?php p($submitlabel); ?>" />
-    <input type="submit" name="cancel" value="<?php print_string('cancel'); ?>" />
+<div class="submitbuttons">
+    <input type="submit" name="savechanges" class="btn btn-primary" value="<?php p($submitlabel); ?>" />
+    <input type="submit" name="cancel" class="btn btn-secondary" value="<?php print_string('cancel'); ?>" />
 </div>
 </div></form>
 <?php
index 941ba2e..fc97402 100644 (file)
@@ -43,27 +43,3 @@ table#modules,
 table#permissions {
     @extend .table-hover;
 }
-
-// colored buttons
-input.form-submit,
-input#id_submitbutton,
-input#id_submitbutton2,
-.path-admin .buttons input[type="submit"],
-td.submit input {
-    @extend .btn-primary;
-}
-// override .btn-primary
-#notice .singlebutton + .singlebutton input,
-.submit.buttons input[name="cancel"] {
-    @extend .btn;
-}
-
-#notice .singlebutton + .singlebutton input,
-.submit.buttons input[name="cancel"] {
-    @extend .btn-lineup;
-}
-
-input[id="_clearbutton"],
-input[type="reset"] {
-    @extend .btn-warning;
-}