Skip to content

Commit

Permalink
Merge branch 'MDL-62977_35' of git://github.com/markn86/moodle into M…
Browse files Browse the repository at this point in the history
…OODLE_35_STABLE
  • Loading branch information
stronk7 committed Aug 1, 2018
2 parents 6cf6523 + ab38db0 commit c3a1ccc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
10 changes: 6 additions & 4 deletions mod/wiki/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1451,10 +1451,12 @@ function wiki_print_edit_form_default_fields($format, $pageid, $version = -1, $u

echo "</fieldset>";

echo '<input class="wiki_button" type="submit" name="editoption" value="' . get_string('save', 'wiki') . '"/>';
echo '<input class="wiki_button" type="submit" name="editoption" value="' . get_string('upload', 'wiki') . '"/>';
echo '<input class="wiki_button" type="submit" name="editoption" value="' . get_string('preview') . '"/>';
echo '<input class="wiki_button" type="submit" name="editoption" value="' . get_string('cancel') . '" />';
echo '<input class="wiki_button btn btn-secondary" type="submit" name="editoption" value="'
. get_string('save', 'wiki') . '" />';
echo '<input class="wiki_button btn btn-secondary" type="submit" name="editoption" value="'
. get_string('upload', 'wiki') . '" />';
echo '<input class="wiki_button btn btn-secondary" type="submit" name="editoption" value="' . get_string('preview') . '" />';
echo '<input class="wiki_button btn btn-secondary" type="submit" name="editoption" value="' . get_string('cancel') . '" />';
}

/**
Expand Down
11 changes: 6 additions & 5 deletions mod/wiki/pagelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ protected function check_locks() {

$form = '<form method="post" action="' . $CFG->wwwroot . '/mod/wiki/overridelocks.php?' . $params . '">';
$form .= '<input type="hidden" name="sesskey" value="' . sesskey() . '" />';
$form .= '<input type="submit" value="' . get_string('overridelocks', 'wiki') . '" />';
$form .= '<input type="submit" class="btn btn-secondary" value="' . get_string('overridelocks', 'wiki') . '" />';
$form .= '</form>';

print $OUTPUT->box($form, 'generalbox boxwidthnormal boxaligncenter');
Expand Down Expand Up @@ -1894,10 +1894,10 @@ private function print_restoreversion() {
echo html_writer::tag('div', get_string('restoreconfirm', 'wiki', $version->version));
echo $OUTPUT->container_start(false, 'wiki_restoreform');
echo '<form class="wiki_restore_yes" action="' . $restoreurl . '" method="post" id="restoreversion">';
echo '<div><input type="submit" name="confirm" value="' . get_string('yes') . '" /></div>';
echo '<div><input type="submit" class="btn btn-secondary" name="confirm" value="' . get_string('yes') . '" /></div>';
echo '</form>';
echo '<form class="wiki_restore_no" action="' . $return . '" method="post">';
echo '<div><input type="submit" name="norestore" value="' . get_string('no') . '" /></div>';
echo '<div><input type="submit" class="btn btn-secondary" name="norestore" value="' . get_string('no') . '" /></div>';
echo '</form>';
echo $OUTPUT->container_end();
echo $OUTPUT->container_end();
Expand Down Expand Up @@ -1964,10 +1964,11 @@ private function printconfirmdelete() {
echo html_writer::tag('p', $strdeletecheckfull);
echo $OUTPUT->container_start(false, 'wiki_deletecommentform');
echo '<form class="wiki_deletecomment_yes" action="' . $deleteurl . '" method="post" id="deletecomment">';
echo '<div><input type="submit" name="confirmdeletecomment" value="' . get_string('yes') . '" /></div>';
echo '<div><input type="submit" class="btn btn-secondary" name="confirmdeletecomment" value="'
. get_string('yes') . '" /></div>';
echo '</form>';
echo '<form class="wiki_deletecomment_no" action="' . $return . '" method="post">';
echo '<div><input type="submit" name="norestore" value="' . get_string('no') . '" /></div>';
echo '<div><input type="submit" class="btn btn-secondary" name="norestore" value="' . get_string('no') . '" /></div>';
echo '</form>';
echo $OUTPUT->container_end();
echo $OUTPUT->container_end();
Expand Down

0 comments on commit c3a1ccc

Please sign in to comment.