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( ...@@ -78,7 +78,7 @@ $deleteall = pieform(array(
), ),
'submit' => array( 'submit' => array(
'type' => 'submit', 'type' => 'submit',
'class' => 'btn-success', 'class' => 'btn-primary',
'value' => get_string('deleteallnotifications', 'activity'), 'value' => get_string('deleteallnotifications', 'activity'),
'confirm' => get_string('reallydeleteallnotifications', 'activity'), 'confirm' => get_string('reallydeleteallnotifications', 'activity'),
), ),
......
...@@ -24,7 +24,7 @@ $elements = get_notification_settings_elements($USER); ...@@ -24,7 +24,7 @@ $elements = get_notification_settings_elements($USER);
$elements['submit'] = array( $elements['submit'] = array(
'type' => 'submit', 'type' => 'submit',
'class' => 'btn-success', 'class' => 'btn-primary',
'value' => get_string('save'), 'value' => get_string('save'),
); );
......
...@@ -110,7 +110,7 @@ if ($blogcount != 1 && $prefs->multipleblogs == 1) { ...@@ -110,7 +110,7 @@ if ($blogcount != 1 && $prefs->multipleblogs == 1) {
$elements['submit'] = array( $elements['submit'] = array(
'type' => 'submit', 'type' => 'submit',
'class' => 'btn-success', 'class' => 'btn-primary',
'value' => get_string('save') 'value' => get_string('save')
); );
......
...@@ -206,7 +206,7 @@ if (!empty($institutions) && ...@@ -206,7 +206,7 @@ if (!empty($institutions) &&
'defaultvalue' => $USER->studentid, 'defaultvalue' => $USER->studentid,
), ),
'submit' => array( 'submit' => array(
'class' => 'btn-success', 'class' => 'btn-primary',
'type' => 'submit', 'type' => 'submit',
'value' => get_string('sendrequest'), 'value' => get_string('sendrequest'),
), ),
......
...@@ -34,7 +34,7 @@ $reloadform = pieform(array( ...@@ -34,7 +34,7 @@ $reloadform = pieform(array(
'reload' => array( 'reload' => array(
'type' => 'button', 'type' => 'button',
'usebuttontag' => true, 'usebuttontag' => true,
'class' => 'btn-success', 'class' => 'btn-primary',
'value' => get_string('install', 'admin'), 'value' => get_string('install', 'admin'),
), ),
), ),
......
...@@ -45,7 +45,7 @@ $newform = pieform(array( ...@@ -45,7 +45,7 @@ $newform = pieform(array(
), ),
'submit' => array( 'submit' => array(
'type' => 'submit', 'type' => 'submit',
'class' => 'btn-success', 'class' => 'btn-primary',
'value' => get_string('add'), 'value' => get_string('add'),
), ),
), ),
......
...@@ -73,7 +73,7 @@ $form['elements']['type'] = array( ...@@ -73,7 +73,7 @@ $form['elements']['type'] = array(
); );
$form['elements']['save'] = array( $form['elements']['save'] = array(
'type' => 'submit', 'type' => 'submit',
'class' => 'btn-success', 'class' => 'btn-primary',
'value' => get_string('save'), 'value' => get_string('save'),
); );
......
...@@ -30,7 +30,7 @@ $optionform = pieform(array( ...@@ -30,7 +30,7 @@ $optionform = pieform(array(
'defaultvalue' => get_config('allowgroupcategories'), 'defaultvalue' => get_config('allowgroupcategories'),
), ),
'submit' => array( 'submit' => array(
'class' => 'btn-success', 'class' => 'btn-primary',
'type' => 'submit', 'type' => 'submit',
'value' => get_string('submit'), 'value' => get_string('submit'),
), ),
......
...@@ -94,7 +94,7 @@ $groupadminsform = pieform(array( ...@@ -94,7 +94,7 @@ $groupadminsform = pieform(array(
), ),
'submit' => array( 'submit' => array(
'type' => 'submit', 'type' => 'submit',
'class' => 'btn-success', 'class' => 'btn-primary',
'value' => get_string('save'), 'value' => get_string('save'),
), ),
), ),
......
...@@ -81,7 +81,7 @@ $form = array( ...@@ -81,7 +81,7 @@ $form = array(
), ),
'submit' => array( 'submit' => array(
'type' => 'submit', 'type' => 'submit',
'class' => 'btn-success', 'class' => 'btn-primary',
'value' => get_string('uploadgroupcsv', 'admin') 'value' => get_string('uploadgroupcsv', 'admin')
) )
) )
......
...@@ -56,7 +56,7 @@ $form = array( ...@@ -56,7 +56,7 @@ $form = array(
'readonly' => TRUE, 'readonly' => TRUE,
), ),
'submit' => array( 'submit' => array(
'class' => 'btn-success', 'class' => 'btn-primary',
'type' => 'submit', 'type' => 'submit',
'value' => get_string('uploadgroupmemberscsv', 'admin') 'value' => get_string('uploadgroupmemberscsv', 'admin')
) )
......
...@@ -55,7 +55,7 @@ $closeform = pieform(array( ...@@ -55,7 +55,7 @@ $closeform = pieform(array(
'submit' => array( 'submit' => array(
'type' => 'submit', 'type' => 'submit',
'value' => get_string($closed ? 'Open' : 'Close', 'admin'), '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( ...@@ -169,7 +169,7 @@ $form = pieform(array(
), ),
), ),
'submit' => array( 'submit' => array(
'class' => 'mtl btn-success', 'class' => 'mtl btn-primary',
'type' => 'submit', 'type' => 'submit',
'value' => get_string('savechanges', 'admin') 'value' => get_string('savechanges', 'admin')
), ),
......
...@@ -64,7 +64,7 @@ $form = pieform(array( ...@@ -64,7 +64,7 @@ $form = pieform(array(
'submit' => array( 'submit' => array(
'type' => 'submitcancel', 'type' => 'submitcancel',
'title' => $submittitle, 'title' => $submittitle,
'class' => 'btn-success', 'class' => 'btn-primary',
'value' => array(get_string('yes'), get_string('no')), 'value' => array(get_string('yes'), get_string('no')),
'goto' => get_config('wwwroot') . 'admin/site/fonts.php', 'goto' => get_config('wwwroot') . 'admin/site/fonts.php',
) )
......
...@@ -134,7 +134,7 @@ $form = pieform(array( ...@@ -134,7 +134,7 @@ $form = pieform(array(
), ),
'submit' => array( 'submit' => array(
'type' => 'submitcancel', 'type' => 'submitcancel',
'class' => 'btn-success', 'class' => 'btn-primary',
'value' => array(get_string('installfont', 'skin'), get_string('cancel', 'mahara')), 'value' => array(get_string('installfont', 'skin'), get_string('cancel', 'mahara')),
'goto' => get_config('wwwroot') . 'admin/site/fonts.php', 'goto' => get_config('wwwroot') . 'admin/site/fonts.php',
), ),
......
...@@ -48,7 +48,7 @@ $form = pieform(array( ...@@ -48,7 +48,7 @@ $form = pieform(array(
), ),
'submit' => array( 'submit' => array(
'type' => 'submitcancel', 'type' => 'submitcancel',
'class'=> 'btn-success', 'class'=> 'btn-primary',
'value' => array(get_string('installgwfont', 'skin'), get_string('cancel', 'mahara')), 'value' => array(get_string('installgwfont', 'skin'), get_string('cancel', 'mahara')),
'goto' => get_config('wwwroot') . 'admin/site/fonts.php', 'goto' => get_config('wwwroot') . 'admin/site/fonts.php',
), ),
......
...@@ -66,7 +66,7 @@ $elements = array( ...@@ -66,7 +66,7 @@ $elements = array(
), ),
'submit' => array( 'submit' => array(
'type' => 'submit', 'type' => 'submit',
'class' => 'btn-success', 'class' => 'btn-primary',
'value' => get_string('licensesave', 'admin'), 'value' => get_string('licensesave', 'admin'),
), ),
); );
......
...@@ -285,7 +285,7 @@ foreach ($all as $k => $v) { ...@@ -285,7 +285,7 @@ foreach ($all as $k => $v) {
); );
} }
$footerelements['submit'] = array( $footerelements['submit'] = array(
'class' => 'btn-success', 'class' => 'btn-primary',
'type' => 'submit', 'type' => 'submit',
'value' => get_string('savechanges', 'admin') 'value' => get_string('savechanges', 'admin')
); );
......
...@@ -98,8 +98,8 @@ $networkingform = pieform( ...@@ -98,8 +98,8 @@ $networkingform = pieform(
'class' => 'btn-group', 'class' => 'btn-group',
'elements' => array ( 'elements' => array (
'submit' => array( 'submit' => array(
'class' => 'btn-success', 'class' => 'btn-primary',
'name' => 'submit', 'name' => 'submit',
'type' => 'button', 'type' => 'button',
'usebuttontag' => true, 'usebuttontag' => true,
'content' => get_string('savechanges','admin'), 'content' => get_string('savechanges','admin'),
......
...@@ -767,7 +767,7 @@ $siteoptionform = array( ...@@ -767,7 +767,7 @@ $siteoptionform = array(
$siteoptionform['elements']['submit'] = array( $siteoptionform['elements']['submit'] = array(
'type' => 'button', 'type' => 'button',
'usebuttontag' => true, 'usebuttontag' => true,
'class' => 'btn-success', 'class' => 'btn-primary',
'value' => get_string('updatesiteoptions', 'admin') 'value' => get_string('updatesiteoptions', 'admin')
); );
......
...@@ -65,7 +65,7 @@ $form = pieform(array( ...@@ -65,7 +65,7 @@ $form = pieform(array(
) )
), ),
'submit' => array( 'submit' => array(
'class' => 'btn-success', 'class' => 'btn-primary',
'type' => 'submit', 'type' => 'submit',
'value' => get_string('savechanges', 'admin') 'value' => get_string('savechanges', 'admin')
), ),
......
...@@ -119,7 +119,7 @@ $elements = array( ...@@ -119,7 +119,7 @@ $elements = array(
'submit' => array( 'submit' => array(
'type' => 'submit', 'type' => 'submit',
'value' => get_string('createuser', 'admin'), '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) { ...@@ -79,7 +79,7 @@ if ($institution && $plugin) {
$form['elements']['submit'] = array( $form['elements']['submit'] = array(
'type' => 'submitcancel', 'type' => 'submitcancel',
'class' => 'btn-success', 'class' => 'btn-primary',
'value' => array(get_string('submit'), get_string('cancel')), 'value' => array(get_string('submit'), get_string('cancel')),
'goto' => 'addauthority.php?c=1' 'goto' => 'addauthority.php?c=1'
); );
......
...@@ -45,7 +45,7 @@ $form = pieform(array( ...@@ -45,7 +45,7 @@ $form = pieform(array(
) )
), ),
'submit' => array( 'submit' => array(
'class' => 'btn-success', 'class' => 'btn-primary',
'type' => 'submit', 'type' => 'submit',
'value' => get_string('submit') 'value' => get_string('submit')
) )
......
...@@ -91,7 +91,7 @@ $form = array( ...@@ -91,7 +91,7 @@ $form = array(
'submit' => array( 'submit' => array(
'type' => 'submit', 'type' => 'submit',
'value' => get_string('masquerade', 'admin'), 'value' => get_string('masquerade', 'admin'),
'class' => 'btn-success' 'class' => 'btn-primary'
), ),
), ),
); );
......
...@@ -251,7 +251,7 @@ $elements['tags'] = array( ...@@ -251,7 +251,7 @@ $elements['tags'] = array(
$elements['submit'] = array( $elements['submit'] = array(
'type' => 'submit', 'type' => 'submit',
'class' => 'btn-success mbm', 'class' => 'btn-primary mbm',
'value' => get_string('savechanges','admin'), 'value' => get_string('savechanges','admin'),
); );
...@@ -765,7 +765,7 @@ foreach ($institutions as $i) { ...@@ -765,7 +765,7 @@ foreach ($institutions as $i) {
$i->institution.'_submit' => array( $i->institution.'_submit' => array(
'type' => 'submit', 'type' => 'submit',
'value' => get_string('update'), 'value' => get_string('update'),
'class' => 'btn-success' 'class' => 'btn-primary'
), ),
$i->institution.'_remove' => array( $i->institution.'_remove' => array(
'type' => 'submit', 'type' => 'submit',
...@@ -802,7 +802,7 @@ if ($USER->get('admin') ...@@ -802,7 +802,7 @@ if ($USER->get('admin')
); );
$elements['add'] = array( $elements['add'] = array(
'type' => 'submit', 'type' => 'submit',
'class' => 'btn-success mbs', 'class' => 'btn-primary mbs',
'value' => get_string('addusertoinstitution', 'admin'), 'value' => get_string('addusertoinstitution', 'admin'),
); );
} }
......
...@@ -58,7 +58,7 @@ $form = array( ...@@ -58,7 +58,7 @@ $form = array(
'value' => $institution, 'value' => $institution,
), ),
'submit' => array( 'submit' => array(
'class' => 'btn-success', 'class' => 'btn-primary',
'type' => 'submit', 'type' => 'submit',
'value' => get_string('submit') 'value' => get_string('submit')
) )
......
...@@ -99,7 +99,7 @@ $form = pieform(array( ...@@ -99,7 +99,7 @@ $form = pieform(array(
), ),
'submit' => array( 'submit' => array(
'type' => 'submit', 'type' => 'submit',
'class' => 'btn-success', 'class' => 'btn-primary',
'value' => get_string('savechanges', 'admin') 'value' => get_string('savechanges', 'admin')
), ),
) )
......
...@@ -587,7 +587,7 @@ if ($institution || $add) { ...@@ -587,7 +587,7 @@ if ($institution || $add) {
$elements['submit'] = array( $elements['submit'] = array(
'type' => 'submitcancel', 'type' => 'submitcancel',
'class' => 'btn-success', 'class' => 'btn-primary',
'value' => array(get_string('submit'), get_string('cancel')) 'value' => array(get_string('submit'), get_string('cancel'))
); );
......
...@@ -59,7 +59,7 @@ $form = array( ...@@ -59,7 +59,7 @@ $form = array(
'value' => $institution, 'value' => $institution,
), ),
'submit' => array( 'submit' => array(
'class' => 'btn-success', 'class' => 'btn-primary',
'type' => 'submit', 'type' => 'submit',
'value' => get_string('submit') 'value' => get_string('submit')
) )
......
...@@ -150,7 +150,7 @@ $userlistform = array( ...@@ -150,7 +150,7 @@ $userlistform = array(
'rules' => array('regex' => '/^[a-z]+$/') 'rules' => array('regex' => '/^[a-z]+$/')
), ),
'submit' => array( 'submit' => array(
'class' => 'btn-success', 'class' => 'btn-primary',
'type' => 'submit', 'type' => 'submit',
'value' => $submittext 'value' => $submittext
) )
......
...@@ -156,7 +156,7 @@ $elements['institution'] = array( ...@@ -156,7 +156,7 @@ $elements['institution'] = array(
); );
$elements['submit'] = array( $elements['submit'] = array(
'type' => 'submit', 'type' => 'submit',
'class' => 'btn-success', 'class' => 'btn-primary',
'value' => get_string('submit') 'value' => get_string('submit')
); );
......
...@@ -42,7 +42,7 @@ $form = pieform(array( ...@@ -42,7 +42,7 @@ $form = pieform(array(
), ),
'submit' => array( 'submit' => array(
'type' => 'submit', 'type' => 'submit',
'class' => 'btn-success', 'class' => 'btn-primary',
'value' => get_string('submit') 'value' => get_string('submit')
) )
) )
......
...@@ -134,7 +134,7 @@ $form = array( ...@@ -134,7 +134,7 @@ $form = array(
'submit' => array( 'submit' => array(
'type' => 'submit', 'type' => 'submit',
'value' => get_string('uploadcsv', 'admin'), 'value' => get_string('uploadcsv', 'admin'),
'class' => 'btn-success' 'class' => 'btn-primary'
) )
) )
); );
......
...@@ -81,7 +81,7 @@ $elements['annotationid'] = array( ...@@ -81,7 +81,7 @@ $elements['annotationid'] = array(
$elements['submit'] = array( $elements['submit'] = array(
'type' => 'submitcancel', 'type' => 'submitcancel',
'class' => 'btn-success', 'class' => 'btn-primary',
'value' => array(get_string('save'), get_string('cancel')), 'value' => array(get_string('save'), get_string('cancel')),
'goto' => $goto, 'goto' => $goto,
); );
......
...@@ -91,7 +91,7 @@ $form = array( ...@@ -91,7 +91,7 @@ $form = array(
'licensing_advanced' => license_form_el_advanced(null), 'licensing_advanced' => license_form_el_advanced(null),
'submit' => array( 'submit' => array(
'type' => 'submitcancel', 'type' => 'submitcancel',
'class' => 'btn-success', 'class' => 'btn-primary',
'value' => array( 'value' => array(
get_string('createblog', 'artefact.blog'), get_string('createblog', 'artefact.blog'),
get_string('cancel', 'artefact.blog') get_string('cancel', 'artefact.blog')
......
...@@ -185,7 +185,7 @@ $form = pieform(array( ...@@ -185,7 +185,7 @@ $form = pieform(array(
), ),
'submitpost' => array( 'submitpost' => array(
'type' => 'submitcancel', 'type' => 'submitcancel',
'class' => 'btn-success', 'class' => 'btn-primary',
'value' => array(get_string('savepost', 'artefact.blog'), get_string('cancel')), 'value' => array(get_string('savepost', 'artefact.blog'), get_string('cancel')),
'goto' => get_config('wwwroot') . 'artefact/blog/view/index.php?id=' . $blog, 'goto' => get_config('wwwroot') . 'artefact/blog/view/index.php?id=' . $blog,
) )
......
...@@ -94,7 +94,7 @@ $form = pieform(array( ...@@ -94,7 +94,7 @@ $form = pieform(array(
'licensing_advanced' => license_form_el_advanced($blog), 'licensing_advanced' => license_form_el_advanced($blog),
'submit' => array(