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
......@@ -78,7 +78,7 @@ $deleteall = pieform(array(
),
'submit' => array(
'type' => 'submit',
'class' => 'btn btn-success',
'class' => 'btn-success',
'value' => get_string('deleteallnotifications', 'activity'),
'confirm' => get_string('reallydeleteallnotifications', 'activity'),
),
......
......@@ -24,7 +24,7 @@ $elements = get_notification_settings_elements($USER);
$elements['submit'] = array(
'type' => 'submit',
'class' => 'btn btn-success',
'class' => 'btn-success',
'value' => get_string('save'),
);
......
......@@ -26,7 +26,7 @@ $deleteform = pieform(array(
'pluginname' => 'account',
'elements' => array(
'submit' => array(
'class' => 'btn btn-default',
'class' => 'btn-default',
'type' => 'submit',
'value' => get_string('deleteaccount', 'mahara', display_username($USER), full_name($USER)),
),
......
......@@ -110,7 +110,7 @@ if ($blogcount != 1 && $prefs->multipleblogs == 1) {
$elements['submit'] = array(
'type' => 'submit',
'class' => 'btn btn-success',
'class' => 'btn-success',
'value' => get_string('save')
);
......
......@@ -206,7 +206,7 @@ if (!empty($institutions) &&
'defaultvalue' => $USER->studentid,
),
'submit' => array(
'class' => 'btn btn-success',
'class' => 'btn-success',
'type' => 'submit',
'value' => get_string('sendrequest'),
),
......
......@@ -34,7 +34,7 @@ $reloadform = pieform(array(
'reload' => array(
'type' => 'button',
'usebuttontag' => true,
'class' => 'btn btn-success',
'class' => 'btn-success',
'value' => get_string('install', 'admin'),
),
),
......
......@@ -45,7 +45,7 @@ $newform = pieform(array(
),
'submit' => array(
'type' => 'submit',
'class' => 'btn btn-success',
'class' => 'btn-success',
'value' => get_string('add'),
),
),
......@@ -78,7 +78,7 @@ foreach ($iframesources as $url => $name) {
),
'submit' => array(
'type' => 'submit',
'class' => 'btn btn-primary btn-sm',
'class' => 'btn-primary btn-sm',
'value' => get_string('save'),
),
);
......@@ -100,7 +100,7 @@ foreach ($iframesources as $url => $name) {
'elements' => array(
'submit' => array(
'type' => 'button',
'class' => 'btn btn-default btn-sm',
'class' => 'btn-default btn-sm',
'usebuttontag' => true,
'value' => '<span class="icon icon-trash icon-lg text-danger"></span><span class="sr-only">'. get_string('delete') . '</span>',
......
......@@ -29,7 +29,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' => get_config('wwwroot') . 'admin/groups/groups.php',
)
......
......@@ -30,7 +30,7 @@ $optionform = pieform(array(
'defaultvalue' => get_config('allowgroupcategories'),
),
'submit' => array(
'class' => 'btn btn-success',
'class' => 'btn-success',
'type' => 'submit',
'value' => get_string('submit'),
),
......
......@@ -43,7 +43,7 @@ $searchform = pieform(array(
'submit' => array(
'type' => 'button',
'usebuttontag' => true,
'class' => 'btn btn-primary input-group-btn',
'class' => 'btn-primary input-group-btn',
'value' => get_string('search'),
)
),
......
......@@ -37,7 +37,7 @@ $quotasform = pieform(array(
'submit' => array(
'type' => 'button',
'usebuttontag' => true,
'class' => 'btn btn-primary no-label',
'class' => 'btn-primary ',
'value' => get_string('save'),
),
'description' => array(
......@@ -94,7 +94,7 @@ $groupadminsform = pieform(array(
),
'submit' => array(
'type' => 'submit',
'class' => 'btn btn-success',
'class' => 'btn-success',
'value' => get_string('save'),
),
),
......
......@@ -81,7 +81,7 @@ $form = array(
),
'submit' => array(
'type' => 'submit',
'class' => 'btn btn-success',
'class' => 'btn-success',
'value' => get_string('uploadgroupcsv', 'admin')
)
)
......
......@@ -56,7 +56,7 @@ $form = array(
'readonly' => TRUE,
),
'submit' => array(
'class' => 'btn btn-success',
'class' => 'btn-success',
'type' => 'submit',
'value' => get_string('uploadgroupmemberscsv', 'admin')
)
......
......@@ -54,7 +54,7 @@ $closeform = pieform(array(
'submit' => array(
'type' => 'submit',
'value' => get_string($closed ? 'Open' : 'Close', 'admin'),
'class' => $closed ? 'btn btn-success' : 'btn btn-default'
'class' => $closed ? 'btn-success' : 'btn-default'
),
),
));
......
......@@ -169,7 +169,7 @@ $form = pieform(array(
),
),
'submit' => array(
'class' => 'mtl btn btn-success',
'class' => 'mtl btn-success',
'type' => 'submit',
'value' => get_string('savechanges', 'admin')
),
......
......@@ -66,7 +66,7 @@ $elements = array(
),
'submit' => array(
'type' => 'submit',
'class' => 'btn btn-success',
'class' => 'btn-success',
'value' => get_string('licensesave', 'admin'),
),
);
......
......@@ -285,7 +285,7 @@ foreach ($all as $k => $v) {
);
}
$footerelements['submit'] = array(
'class' => 'btn btn-success',
'class' => 'btn-success',
'type' => 'submit',
'value' => get_string('savechanges', 'admin')
);
......
......@@ -98,7 +98,7 @@ $networkingform = pieform(
'class' => 'btn-group',
'elements' => array (
'submit' => array(
'class' => 'btn btn-success',
'class' => 'btn-success',
'name' => 'submit',
'type' => 'button',
'usebuttontag' => true,
......@@ -106,7 +106,7 @@ $networkingform = pieform(
'value' => 'submit'
),
'deletesubmit' => array(
'class' => 'btn btn-default',
'class' => 'btn-default',
'name' => 'submit', // must be called submit so we can access it's value
'type' => 'button',
'usebuttontag' => true,
......
......@@ -774,7 +774,7 @@ $siteoptionform = array(
$siteoptionform['elements']['submit'] = array(
'type' => 'button',
'usebuttontag' => true,
'class' => 'btn btn-success',
'class' => 'btn-success',
'value' => get_string('updatesiteoptions', 'admin')
);
......
......@@ -65,7 +65,7 @@ $form = pieform(array(
)
),
'submit' => array(
'class' => 'btn btn-success',
'class' => 'btn-success',
'type' => 'submit',
'value' => get_string('savechanges', 'admin')
),
......
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