Commit d0673575 authored by Jen Zajac's avatar Jen Zajac Committed by Robert Lyon

Replace btn-success with btn-primary throughout

  behatnotneeded

  Bug #1465107

Change-Id: I27492cbc38416fd4790e1e62ec8090c19602d171
parent 2fbf84c6
......@@ -78,7 +78,7 @@ $deleteall = pieform(array(
),
'submit' => array(
'type' => 'submit',
'class' => 'btn-success',
'class' => 'btn-primary',
'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-success',
'class' => 'btn-primary',
'value' => get_string('save'),
);
......
......@@ -110,7 +110,7 @@ if ($blogcount != 1 && $prefs->multipleblogs == 1) {
$elements['submit'] = array(
'type' => 'submit',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => get_string('save')
);
......
......@@ -206,7 +206,7 @@ if (!empty($institutions) &&
'defaultvalue' => $USER->studentid,
),
'submit' => array(
'class' => 'btn-success',
'class' => 'btn-primary',
'type' => 'submit',
'value' => get_string('sendrequest'),
),
......
......@@ -34,7 +34,7 @@ $reloadform = pieform(array(
'reload' => array(
'type' => 'button',
'usebuttontag' => true,
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => get_string('install', 'admin'),
),
),
......
......@@ -45,7 +45,7 @@ $newform = pieform(array(
),
'submit' => array(
'type' => 'submit',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => get_string('add'),
),
),
......
......@@ -73,7 +73,7 @@ $form['elements']['type'] = array(
);
$form['elements']['save'] = array(
'type' => 'submit',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => get_string('save'),
);
......
......@@ -30,7 +30,7 @@ $optionform = pieform(array(
'defaultvalue' => get_config('allowgroupcategories'),
),
'submit' => array(
'class' => 'btn-success',
'class' => 'btn-primary',
'type' => 'submit',
'value' => get_string('submit'),
),
......
......@@ -94,7 +94,7 @@ $groupadminsform = pieform(array(
),
'submit' => array(
'type' => 'submit',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => get_string('save'),
),
),
......
......@@ -81,7 +81,7 @@ $form = array(
),
'submit' => array(
'type' => 'submit',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => get_string('uploadgroupcsv', 'admin')
)
)
......
......@@ -56,7 +56,7 @@ $form = array(
'readonly' => TRUE,
),
'submit' => array(
'class' => 'btn-success',
'class' => 'btn-primary',
'type' => 'submit',
'value' => get_string('uploadgroupmemberscsv', 'admin')
)
......
......@@ -55,7 +55,7 @@ $closeform = pieform(array(
'submit' => array(
'type' => 'submit',
'value' => get_string($closed ? 'Open' : 'Close', 'admin'),
'class' => $closed ? 'btn-success' : 'btn-default'
'class' => $closed ? 'btn-primary' : 'btn-default'
),
),
));
......
......@@ -169,7 +169,7 @@ $form = pieform(array(
),
),
'submit' => array(
'class' => 'mtl btn-success',
'class' => 'mtl btn-primary',
'type' => 'submit',
'value' => get_string('savechanges', 'admin')
),
......
......@@ -64,7 +64,7 @@ $form = pieform(array(
'submit' => array(
'type' => 'submitcancel',
'title' => $submittitle,
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => array(get_string('yes'), get_string('no')),
'goto' => get_config('wwwroot') . 'admin/site/fonts.php',
)
......
......@@ -134,7 +134,7 @@ $form = pieform(array(
),
'submit' => array(
'type' => 'submitcancel',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => array(get_string('installfont', 'skin'), get_string('cancel', 'mahara')),
'goto' => get_config('wwwroot') . 'admin/site/fonts.php',
),
......
......@@ -48,7 +48,7 @@ $form = pieform(array(
),
'submit' => array(
'type' => 'submitcancel',
'class'=> 'btn-success',
'class'=> 'btn-primary',
'value' => array(get_string('installgwfont', 'skin'), get_string('cancel', 'mahara')),
'goto' => get_config('wwwroot') . 'admin/site/fonts.php',
),
......
......@@ -66,7 +66,7 @@ $elements = array(
),
'submit' => array(
'type' => 'submit',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => get_string('licensesave', 'admin'),
),
);
......
......@@ -285,7 +285,7 @@ foreach ($all as $k => $v) {
);
}
$footerelements['submit'] = array(
'class' => 'btn-success',
'class' => 'btn-primary',
'type' => 'submit',
'value' => get_string('savechanges', 'admin')
);
......
......@@ -98,8 +98,8 @@ $networkingform = pieform(
'class' => 'btn-group',
'elements' => array (
'submit' => array(
'class' => 'btn-success',
'name' => 'submit',
'class' => 'btn-primary',
'name' => 'submit',
'type' => 'button',
'usebuttontag' => true,
'content' => get_string('savechanges','admin'),
......
......@@ -767,7 +767,7 @@ $siteoptionform = array(
$siteoptionform['elements']['submit'] = array(
'type' => 'button',
'usebuttontag' => true,
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => get_string('updatesiteoptions', 'admin')
);
......
......@@ -65,7 +65,7 @@ $form = pieform(array(
)
),
'submit' => array(
'class' => 'btn-success',
'class' => 'btn-primary',
'type' => 'submit',
'value' => get_string('savechanges', 'admin')
),
......
......@@ -119,7 +119,7 @@ $elements = array(
'submit' => array(
'type' => 'submit',
'value' => get_string('createuser', 'admin'),
'class' => 'btn-success btn-lg btn-block mtm',
'class' => 'btn-primary btn-lg btn-block mtm',
),
);
......
......@@ -79,7 +79,7 @@ if ($institution && $plugin) {
$form['elements']['submit'] = array(
'type' => 'submitcancel',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => array(get_string('submit'), get_string('cancel')),
'goto' => 'addauthority.php?c=1'
);
......
......@@ -45,7 +45,7 @@ $form = pieform(array(
)
),
'submit' => array(
'class' => 'btn-success',
'class' => 'btn-primary',
'type' => 'submit',
'value' => get_string('submit')
)
......
......@@ -91,7 +91,7 @@ $form = array(
'submit' => array(
'type' => 'submit',
'value' => get_string('masquerade', 'admin'),
'class' => 'btn-success'
'class' => 'btn-primary'
),
),
);
......
......@@ -251,7 +251,7 @@ $elements['tags'] = array(
$elements['submit'] = array(
'type' => 'submit',
'class' => 'btn-success mbm',
'class' => 'btn-primary mbm',
'value' => get_string('savechanges','admin'),
);
......@@ -765,7 +765,7 @@ foreach ($institutions as $i) {
$i->institution.'_submit' => array(
'type' => 'submit',
'value' => get_string('update'),
'class' => 'btn-success'
'class' => 'btn-primary'
),
$i->institution.'_remove' => array(
'type' => 'submit',
......@@ -802,7 +802,7 @@ if ($USER->get('admin')
);
$elements['add'] = array(
'type' => 'submit',
'class' => 'btn-success mbs',
'class' => 'btn-primary mbs',
'value' => get_string('addusertoinstitution', 'admin'),
);
}
......
......@@ -58,7 +58,7 @@ $form = array(
'value' => $institution,
),
'submit' => array(
'class' => 'btn-success',
'class' => 'btn-primary',
'type' => 'submit',
'value' => get_string('submit')
)
......
......@@ -99,7 +99,7 @@ $form = pieform(array(
),
'submit' => array(
'type' => 'submit',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => get_string('savechanges', 'admin')
),
)
......
......@@ -587,7 +587,7 @@ if ($institution || $add) {
$elements['submit'] = array(
'type' => 'submitcancel',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => array(get_string('submit'), get_string('cancel'))
);
......
......@@ -59,7 +59,7 @@ $form = array(
'value' => $institution,
),
'submit' => array(
'class' => 'btn-success',
'class' => 'btn-primary',
'type' => 'submit',
'value' => get_string('submit')
)
......
......@@ -150,7 +150,7 @@ $userlistform = array(
'rules' => array('regex' => '/^[a-z]+$/')
),
'submit' => array(
'class' => 'btn-success',
'class' => 'btn-primary',
'type' => 'submit',
'value' => $submittext
)
......
......@@ -156,7 +156,7 @@ $elements['institution'] = array(
);
$elements['submit'] = array(
'type' => 'submit',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => get_string('submit')
);
......
......@@ -42,7 +42,7 @@ $form = pieform(array(
),
'submit' => array(
'type' => 'submit',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => get_string('submit')
)
)
......
......@@ -134,7 +134,7 @@ $form = array(
'submit' => array(
'type' => 'submit',
'value' => get_string('uploadcsv', 'admin'),
'class' => 'btn-success'
'class' => 'btn-primary'
)
)
);
......
......@@ -81,7 +81,7 @@ $elements['annotationid'] = array(
$elements['submit'] = array(
'type' => 'submitcancel',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => array(get_string('save'), get_string('cancel')),
'goto' => $goto,
);
......
......@@ -91,7 +91,7 @@ $form = array(
'licensing_advanced' => license_form_el_advanced(null),
'submit' => array(
'type' => 'submitcancel',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => array(
get_string('createblog', 'artefact.blog'),
get_string('cancel', 'artefact.blog')
......
......@@ -185,7 +185,7 @@ $form = pieform(array(
),
'submitpost' => array(
'type' => 'submitcancel',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => array(get_string('savepost', 'artefact.blog'), get_string('cancel')),
'goto' => get_config('wwwroot') . 'artefact/blog/view/index.php?id=' . $blog,
)
......
......@@ -94,7 +94,7 @@ $form = pieform(array(
'licensing_advanced' => license_form_el_advanced($blog),
'submit' => array(
'type' => 'submitcancel',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => array(
get_string('savesettings', 'artefact.blog'),
get_string('cancel', 'artefact.blog')
......
......@@ -81,7 +81,7 @@ if (get_config('licensemetadata')) {
}
$elements['submit'] = array(
'type' => 'submitcancel',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => array(get_string('save'), get_string('cancel')),
'goto' => $goto,
);
......
......@@ -96,7 +96,7 @@ if ($zipinfo) {
),
'submit' => array(
'type' => 'submitcancel',
'class' => 'btn btn-success',
'class' => 'btn btn-primary',
'value' => array(get_string('Decompress', 'artefact.file'), get_string('cancel')),
'goto' => $goto,
)
......
......@@ -56,7 +56,7 @@ $uploadform = pieform(array(
),
'submit' => array(
'type' => 'submit',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => get_string('upload')
)
)
......
......@@ -116,7 +116,7 @@ $form = array(
),
'submitnote' => array(
'type' => 'submitcancel',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => array(get_string('save'), get_string('cancel')),
'goto' => $goto,
),
......
......@@ -172,7 +172,7 @@ $elements = array(
'submit' => array(
'type' => 'submit',
'value' => get_string('saveprofile','artefact.internal'),
'class' => 'btn-success'
'class' => 'btn-primary'
)
);
// Don't include fieldset if 'socialprofile' is not installed
......
......@@ -123,7 +123,7 @@ else {
),
'submit' => array(
'type' => 'submitcancel',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => array(get_string('save'), get_string('cancel')),
'goto' => get_config('wwwroot') . 'artefact/internal/index.php?fs=social',
),
......
......@@ -205,7 +205,7 @@ class ArtefactTypePlan extends ArtefactType {
$elements = call_static_method(generate_artefact_class_name('plan'), 'get_planform_elements', $plan);
$elements['submit'] = array(
'type' => 'submitcancel',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => array(get_string('saveplan','artefact.plans'), get_string('cancel')),
'goto' => get_config('wwwroot') . 'artefact/plans/index.php',
);
......@@ -446,7 +446,7 @@ class ArtefactTypeTask extends ArtefactType {
$elements = call_static_method(generate_artefact_class_name('task'), 'get_taskform_elements', $parent, $task);
$elements['submit'] = array(
'type' => 'submitcancel',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => array(get_string('savetask','artefact.plans'), get_string('cancel')),
'goto' => get_config('wwwroot') . 'artefact/plans/plan.php?id=' . $parent,
);
......
......@@ -76,7 +76,7 @@ $elements['filebrowser'] = array(
// Add other necessary pieform elements
$elements['submitform'] = array(
'type' => 'submitcancel',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => array(get_string('save'), get_string('cancel')),
'goto' => get_config('wwwroot') . 'artefact/resume/' . $tabs[$type] . '.php',
);
......
......@@ -108,7 +108,7 @@ $form = pieform(array(
),
'submitform' => array(
'type' => 'submitcancel',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => array(get_string('save'), get_string('cancel')),
'goto' => get_config('wwwroot') . 'artefact/resume/goalsandskills.php',
),
......
......@@ -111,7 +111,7 @@ $personalinformationform = pieform(array(
'save' => array(
'type' => 'submit',
'value' => get_string('save'),
'class' => 'btn-success'
'class' => 'btn-primary'
),
),
),
......
......@@ -1176,7 +1176,7 @@ EOF;
$elements = call_static_method(generate_artefact_class_name($compositetype), 'get_addform_elements');
$elements['submit'] = array(
'type' => 'submit',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => get_string('save'),
);
$elements['compositetype'] = array(
......@@ -2092,13 +2092,13 @@ function simple_resumefield_form($defaults, $goto, $options = array()) {
),
$t . 'submit' => array(
'type' => 'submitcancel',
'class' => 'js-hidden btn-success',
'class' => 'js-hidden btn-primary',
'value' => array(get_string('save'), get_string('cancel')),
'goto' => get_config('wwwroot') . $goto,
),
$t . 'edit' => array(
'type' => 'button',
'class' => 'nojs-hidden-block openedit btn-success',
'class' => 'nojs-hidden-block openedit btn-primary',
'value' => get_string('edit'),
),
),
......
......@@ -41,7 +41,7 @@ $form = array(
'license_advanced' => license_form_el_advanced($personalinformation),
'submit' => array(
'type' => 'submit',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => get_string('save')
),
),
......
......@@ -239,7 +239,7 @@ class PluginAuthBrowserid extends PluginAuth {
public static function login_form_elements() {
return array(
'loginbrowserid' => array(
'value' => '<div class="login-externallink"><a class="persona-button btn btn-success btn-xs" href="javascript:window.browserid_login()"><span>' . get_string('login', 'auth.browserid') . '</span></a></div>'
'value' => '<div class="login-externallink"><a class="persona-button btn btn-primary btn-xs" href="javascript:window.browserid_login()"><span>' . get_string('login', 'auth.browserid') . '</span></a></div>'
)
);
}
......
......@@ -903,7 +903,7 @@ function auth_check_required_fields() {
else {
$elements['submit'] = array(
'type' => 'submit',
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => get_string('submit')
);
......@@ -1268,7 +1268,7 @@ function auth_get_login_form_elements() {
),
'submit' => array(
'type' => 'submit',
'class' => 'btn-success btn-block',
'class' => 'btn-primary btn-block',
'value' => get_string('login')
),
'register' => array(
......
......@@ -392,7 +392,7 @@ function saml_auth_generate_login_form() {
)
),
'submit' => array(
'class' => 'btn-success btn-block',
'class' => 'btn-primary btn-block',
'type' => 'submit',
'value' => get_string('login')
),
......
......@@ -607,7 +607,7 @@ class PluginAuthSaml extends PluginAuth {
public static function login_form_elements() {
$elements = array(
'loginsaml' => array(
'value' => '<div class="login-externallink"><a class="btn btn-success btn-xs" href="' . get_config('wwwroot') . 'auth/saml/index.php">' . get_string('login', 'auth.saml') . '</a></div>'
'value' => '<div class="login-externallink"><a class="btn btn-primary btn-xs" href="' . get_config('wwwroot') . 'auth/saml/index.php">' . get_string('login', 'auth.saml') . '</a></div>'
)
);
return $elements;
......
......@@ -100,7 +100,7 @@ else {
}
$elements['submit'] = array(
'type' => $type,
'class' => 'btn-success',
'class' => 'btn-primary',
'value' => $submitstr,
'confirm' => $confirm,
);
......
......@@ -72,7 +72,7 @@ $elements['userid'] = array(
$elements['submit'] = array(
'type' => 'submit',
'value' => get_string('sendmessage'),
'class' => 'btn-success submit'
'class' => 'btn-primary submit'
);
$contactform = pieform(array(
......
......@@ -31,7 +31,7 @@ if ($tag = param_variable('tag', null)) {
),
'submit' => array(