Skip to content

Commit

Permalink
Merge pull request #227 from kaltura/KMS-19643-Moodle-Button-classes-…
Browse files Browse the repository at this point in the history
…added-for-Bootstrap-based-themes-GIT-211-35

Button classes added for Bootstrap based themes.
  • Loading branch information
noychn-kaltura authored Jul 8, 2019
2 parents 09121ed + b3d6ae7 commit 9f060f5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
var buttonJs = window.opener.buttonJs;
var embedButton = Y.Node.create('<button></button>');
embedButton.setAttribute('id', 'KalturaMediaSubmit');
embedButton.setAttribute('class', 'btn btn-primary');
embedButton.setAttribute('disabled', 'disabled');
embedButton.setHTML("<?php echo get_string('embedbuttontext', 'atto_kalturamedia'); ?>");
embedButton.hide();
Expand Down
3 changes: 2 additions & 1 deletion mod/kalvidassign/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,8 @@ public function display_instructor_buttons($cm, $userid) {

$attr = array('type' => 'submit',
'name' => 'grade_submissions',
'value' => get_string('gradesubmission', 'kalvidassign'));
'value' => get_string('gradesubmission', 'kalvidassign'),
'class' => 'btn btn-secondary');

$html .= html_writer::empty_tag('input', $attr);

Expand Down
4 changes: 2 additions & 2 deletions mod/kalvidres/mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ private function add_video_definition($mform) {

$videogroup = array();
if ($addinstance) {
$videogroup[] =& $mform->createElement('button', $this->addvideobutton, get_string('add_video', 'kalvidres'));
$videogroup[] =& $mform->createElement('button', $this->addvideobutton, get_string('add_video', 'kalvidres'), array('class' => 'btn btn-secondary'));
} else {
$videogroup[] =& $mform->createElement('button', $this->addvideobutton, get_string('replace_video', 'kalvidres'));
$videogroup[] =& $mform->createElement('button', $this->addvideobutton, get_string('replace_video', 'kalvidres'), array('class' => 'btn btn-secondary'));
}

$mform->addGroup($videogroup, 'video_group', '&nbsp;', '&nbsp;', false);
Expand Down

0 comments on commit 9f060f5

Please sign in to comment.