Commit 8df87b1d authored by Naomi Guyer's avatar Naomi Guyer Committed by Robert Lyon
Browse files

More bootstrap tidy up fixes (BUG 1465107)

Change-Id: I6bbd0edde9b09c7a01cc0e36fa5bfe55972a14e8
parent 3586cf12
......@@ -138,7 +138,7 @@ if ($views) {
'submit' => array(
'type' => 'button',
'usebuttontag' => true,
'class' => 'btn btn-link btn-sm',
'class' => 'btn-link btn-sm',
'confirm' => get_string('viewconfirmremove', 'collection'),
'value' => '<span class="icon icon-times text-danger"><span class="sr-only">' . get_string('remove') . '</span></span>' ),
),
......
......@@ -108,7 +108,7 @@ if ($views) {
'submit' => array(
'type' => 'button',
'usebuttontag' => true,
'class' => 'btn btn-link btn-sm',
'class' => 'btn-link btn-sm',
'confirm' => get_string('viewconfirmremove', 'collection'),
'value' => '<span class="icon icon-times text-danger"><span class="sr-only">' . get_string('remove') . '</span></span>',
),
......@@ -138,7 +138,7 @@ if ($available = Collection::available_views($owner, $groupid, $institutionname)
);
$elements['submit'] = array(
'class' => 'btn btn-primary pull-right mtl',
'class' => 'btn-primary pull-right mtl',
'type' => 'button',
'usebuttontag' => true,
'value' => '<span class="icon icon-arrow-right prs"></span>' . get_string('addviews','collection'),
......
......@@ -72,7 +72,7 @@ $elements['userid'] = array(
$elements['submit'] = array(
'type' => 'submit',
'value' => get_string('sendmessage'),
'class' => 'btn btn-success submit'
'class' => 'btn-success submit'
);
$contactform = pieform(array(
......
......@@ -104,7 +104,7 @@ else {
$elements['submit'] = array(
'type' => 'submit',
'class' => 'btn btn-success mtl',
'class' => 'btn-success mtl',
'value' => get_string('generateexport', 'export'),
);
......
......@@ -65,7 +65,7 @@ $changeform = pieform(array(
),
'submit' => array(
'type' => 'submit',
'class' => 'btn btn-success btn sm',
'class' => 'btn-success btn sm',
'value' => get_string('submit'),
)
)
......
......@@ -37,7 +37,7 @@ $form = pieform(array(
'elements' => array(
'submit' => array(
'type' => 'submitcancel',
'class' => 'btn btn-default',
'class' => 'btn-default',
'value' => array(get_string('yes'), get_string('no')),
'goto' => group_homepage_url($group),
)
......
......@@ -111,7 +111,7 @@ $form = array(
),
'submit' => array(
'type' => 'submitcancel',
'class' => 'btn btn-success',
'class' => 'btn-success',
'value' => array(get_string('savegroup', 'group'), get_string('cancel')),
'goto' => get_config('wwwroot') . 'group/mygroups.php',
),
......
......@@ -81,7 +81,7 @@ if (get_config('allowgroupcategories')
$searchfield = array(
'type' => 'submit',
'class' => 'btn btn-primary input-group-btn no-label button',
'class' => 'btn-primary input-group-btn no-label button',
'value' => get_string('search')
);
......@@ -98,7 +98,7 @@ if (get_config('allowgroupcategories')
$elements['searchfield'] = array(
'type' => 'submit',
'class' => 'btn btn-primary no-label',
'class' => 'btn-primary no-label',
'value' => get_string('search')
);
......
......@@ -39,7 +39,7 @@ $form = pieform(array(
'method' => 'post',
'elements' => array(
'submit' => array(
'class' => 'btn btn-success',
'class' => 'btn-success',
'type' => 'submitcancel',
'value' => array(get_string('yes'), get_string('no')),
'goto' => $goto
......
......@@ -132,7 +132,7 @@ $searchform = pieform(array(
'submit' => array(
'type' => 'button',
'usebuttontag' => true,
'class' => 'btn btn-primary no-label input-group-btn',
'class' => 'btn-primary no-label input-group-btn',
'value' => get_string('search')
)
)
......
......@@ -53,7 +53,7 @@ if (get_config('allowgroupcategories')
$elements['submit'] = array(
'type' => 'button',
'usebuttontag' => true,
'class' => 'btn btn-primary input-group-btn',
'class' => 'btn-primary input-group-btn',
'value' => '<span class="icon icon-filter prs"></span> ' . get_string('filter'),
);
$form = pieform(array(
......
......@@ -163,7 +163,7 @@ function print_upload_form() {
)
),
'submit' => array(
'class' => 'btn btn-success',
'class' => 'btn-success',
'type' => 'submit',
'value' => get_string('Import', 'import'),
),
......
......@@ -44,7 +44,7 @@ $form = pieform(array(
),
'submit' => array(
'type' => 'submitcancel',
'class' => 'btn btn-success',
'class' => 'btn-success',
'value' => array(get_string('yes'), get_string('no')),
'goto' => get_config('wwwroot') . 'interaction/' .$instance->get('plugin') .
($returnto == 'index' ? '/index.php?group=' . $instance->get('group') : '/view.php?id=' . $instance->get('id')),
......
......@@ -51,7 +51,7 @@ $elements = array_merge(
array(
'submit' => array(
'type' => 'submitcancel',
'class' => 'btn btn-success',
'class' => 'btn-success',
'value' => array(get_string('save'), get_string('cancel')),
'goto' => get_config('wwwroot') . 'interaction/' . $plugin .
(isset($instance) && $returnto != 'index' ? '/view.php?id=' . $instance->get('id') : '/index.php?group=' . $groupid),
......
......@@ -73,7 +73,7 @@ $form = pieform(array(
),
'submit' => array(
'type' => 'submitcancel',
'class' => 'btn btn-success',
'class' => 'btn-success',
'value' => array(get_string('yes'), get_string('no')),
'goto' => get_config('wwwroot') . 'interaction/forum/topic.php?id=' . $post->topic . '&post=' . $postid
),
......
......@@ -74,7 +74,7 @@ $form = pieform(array(
),
'submit' => array(
'type' => 'submitcancel',
'class' => 'btn btn-default',
'class' => 'btn-default',
'value' => array(get_string('yes'), get_string('no')),
'goto' => get_config('wwwroot') . ($returnto == 'view' ? 'interaction/forum/view.php?id=' . $topic->forumid : 'interaction/forum/topic.php?id=' . $topicid),
),
......
......@@ -149,7 +149,7 @@ $editform = array(
),
'submit' => array(
'type' => 'submitcancel',
'class' => 'btn btn-success',
'class' => 'btn-success',
'value' => array(
isset($post) ? get_string('save') : get_string('Post','interaction.forum'),
get_string('cancel')
......
......@@ -145,7 +145,7 @@ $editform = array(
),
'submit' => array(
'type' => 'submitcancel',
'class' => 'btn btn-success',
'class' => 'btn-success',
'value' => array(
isset($topic) ? get_string('save') : get_string('Post','interaction.forum'),
get_string('cancel')
......
......@@ -68,7 +68,7 @@ $form = pieform(array(
),
'submit' => array(
'type' => 'submitcancel',
'class' => 'btn btn-success',
'class' => 'btn-success',
'value' => array(get_string('notifyadministrator', 'interaction.forum'), get_string('cancel')),
'goto' => get_config('wwwroot') . 'interaction/forum/topic.php?id=' . $post->topic . '&post=' . $postid
),
......
......@@ -79,7 +79,7 @@ if ($membership && !$topic->forumsubscribed) {
'submit' => array(
'type' => 'button',
'usebuttontag' => true,
'class' => 'btn btn-default',
'class' => 'btn-default',
'value' => $topic->topicsubscribed ? '<span class="icon icon-times icon-lg text-danger prs"></span>'. get_string('unsubscribefromtopic', 'interaction.forum') : '<span class="icon icon-star icon-lg text-success prs"></span>' . get_string('subscribetotopic', 'interaction.forum'),
'help' => false
),
......@@ -282,7 +282,7 @@ function renderpost($post, $indent, $mode) {
),
'submit' => array(
'type' => 'submit',
'class' => 'btn btn-default',
'class' => 'btn-default',
'value' => get_string('postnotobjectionablesubmit', 'interaction.forum'),
),
'postid' => array(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment