Commit e618ed73 authored by Pat Kira's avatar Pat Kira Committed by Robert Lyon
Browse files

Remove whitespace classes (bug: 1465107)

behatnotneeded: styling only

Change-Id: Ie47b903e93816c7bac53437bdbb3842020a0effe
parent 51a0dd57
......@@ -135,7 +135,7 @@ function editform(item) {
// Either a save, a cancel button, or both.
var savecancel = [];
var save = INPUT({'type':'button','class':'button btn btn-default mtl'});
var save = INPUT({'type':'button','class':'button btn btn-default btn-add-group'});
connect(save, 'onclick', function () { saveitem(item.id); });
var rowtype = 'add';
......
......@@ -167,7 +167,7 @@ $form = pieform(array(
),
),
'submit' => array(
'class' => 'mtl btn-primary',
'class' => 'btn-primary',
'type' => 'submit',
'value' => get_string('savechanges', 'admin')
),
......
......@@ -72,9 +72,9 @@ function formatrow (item) {
// item has id, type, name, link, linkedto
var type = eval(item.type);
var linkedto = A({'href':item.linkedto},item.linktext);
var edit = BUTTON({'type':'button','class':'button btn btn-default btn-sm'}, SPAN({'class':'icon icon-lg icon-pencil prs'}), {$getstring['edit']});
var edit = BUTTON({'type':'button','class':'button btn btn-default btn-sm'}, SPAN({'class':'icon icon-lg icon-pencil left'}), {$getstring['edit']});
connect(edit, 'onclick', function () { edititem(item); });
var del = BUTTON({'type':'button','class':'button btn btn-default btn-sm'}, SPAN({'class':'icon icon-lg icon-times text-danger prs'}), {$getstring['delete']});
var del = BUTTON({'type':'button','class':'button btn btn-default btn-sm'}, SPAN({'class':'icon icon-lg icon-times text-danger left'}), {$getstring['delete']});
connect(del, 'onclick', function () { delitem(item.id); });
var buttonGroup = SPAN({'class':'btn-group'}, edit, del);
var cells = map(
......@@ -271,7 +271,7 @@ $footerelements = array();
foreach ($all as $k => $v) {
$footerelements[$k] = array(
'type' => 'switchbox',
'class' => 'last pb0',
'class' => 'last with-text-input',
'title' => $v['title'],
'defaultvalue' => in_array($k, $active),
'onclick' => "getElement('footerlinks_{$k}_link').disabled = !this.checked;",
......
......@@ -90,10 +90,10 @@ $networkingform = pieform(
),
'submitbuttons' => array(
'type' => 'fieldset',
'class' => 'btn-group',
'class' => 'btn-group last',
'elements' => array (
'submit' => array(
'class' => 'btn-primary',
'class' => 'btn-primary text-inline',
'name' => 'submit',
'type' => 'button',
'usebuttontag' => true,
......@@ -101,11 +101,11 @@ $networkingform = pieform(
'value' => 'submit'
),
'deletesubmit' => array(
'class' => 'btn-default ptm',
'class' => 'btn-default text-inline',
'name' => 'submit', // must be called submit so we can access it's value
'type' => 'button',
'usebuttontag' => true,
'content' => '<span class="icon icon-refresh icon-lg prs text-danger"></span> '. get_string('deletekey', 'admin'),
'content' => '<span class="icon icon-refresh icon-lg left text-danger"></span> '. get_string('deletekey', 'admin'),
'value' => 'deletekey'
)
)
......
......@@ -727,7 +727,7 @@ $siteoptionform = array(
),
'loggingsettings' => array(
'iconclass'=>'exclamation-triangle',
'class' => 'last mbxl',
'class' => 'last',
'type' => 'fieldset',
'collapsible' => true,
'collapsed' => true,
......
......@@ -57,7 +57,7 @@ if (empty($upgrades['settings']['disablelogin'])) {
unset($upgrades['settings']);
if (!$upgrades) {
die_info('<p class="text-center lead mtxl ptxl">' . get_string('noupgrades', 'admin') . '</p>');
die_info('<p>' . get_string('noupgrades', 'admin') . '</p>');
}
$start = time();
......@@ -88,10 +88,10 @@ if (empty($upgrades['core']->install)) {
}
}
$loadingicon = 'icon icon-spinner icon-pulse prs';
$successicon = 'icon icon-check text-success prs';
$failureicon = 'icon icon-exclaimation-triangle prs';
$warningicon = 'icon icon-exclaimation-triangle prs';
$loadingicon = 'icon icon-spinner icon-pulse left';
$successicon = 'icon icon-check text-success left';
$failureicon = 'icon icon-exclaimation-triangle left';
$warningicon = 'icon icon-exclaimation-triangle left';
// Remove all files in the smarty and dwoo caches
......
......@@ -119,7 +119,7 @@ $elements = array(
'submit' => array(
'type' => 'submit',
'value' => get_string('createuser', 'admin'),
'class' => 'btn-primary btn-lg btn-block mtm',
'class' => 'btn-primary btn-lg btn-block',
),
);
......@@ -145,7 +145,7 @@ unset($prefs);
$form = pieform(array(
'name' => 'adduser',
'class' => 'panel panel-default panel-body pts',
'class' => 'panel panel-default panel-body',
'autofocus' => false,
'template' => 'adduser.php',
'templatedir' => pieform_template_dir('adduser.php'),
......
......@@ -177,7 +177,7 @@ $deleteform = pieform(array(
'usebuttontag' => true,
'class' => 'btn-default',
'confirm' => get_string('confirmdeleteusers', 'admin'),
'value' => '<span class="icon icon-lg icon-user-times prs text-danger"></span>' . get_string('deleteusers', 'admin'),
'value' => '<span class="icon icon-lg icon-user-times left text-danger"></span>' . get_string('deleteusers', 'admin'),
),
),
));
......
......@@ -121,7 +121,7 @@ if ($USER->get('admin') || get_config_plugin('artefact', 'file', 'institutionalo
'description' => get_string('filequotadescription','admin') . '<br>' . $quotaused,
'rules' => array('integer' => true,
'minvalue' => 1),
'class' => 'form-inline mls',
'class' => 'form-inline',
'defaultvalue' => $user->quota,
);
}
......@@ -131,7 +131,7 @@ else {
'disabled' => true,
'title' => get_string('filequota1', 'admin'),
'description' => get_string('filequotadescription', 'admin') . '<br>' . $quotaused,
'class' => 'form-inline mls',
'class' => 'form-inline',
'value' => display_size($user->quota),
);
}
......@@ -251,7 +251,7 @@ $elements['tags'] = array(
$elements['submit'] = array(
'type' => 'submit',
'class' => 'btn-primary mbm',
'class' => 'btn-primary',
'value' => get_string('savechanges','admin'),
);
......@@ -260,6 +260,7 @@ $siteform = pieform(array(
'renderer' => 'div',
'plugintype' => 'core',
'pluginname' => 'admin',
'class' => 'form-group-nested',
'elements' => $elements,
));
......@@ -777,7 +778,7 @@ foreach ($institutions as $i) {
)
);
if ($institutionloop == $institutionlength - 1) {
$elements[$i->institution.'_settings']['class'] = 'last mbl';
$elements[$i->institution.'_settings']['class'] = 'last';
}
$institutionloop++;
}
......@@ -803,7 +804,7 @@ if ($USER->get('admin')
);
$elements['add'] = array(
'type' => 'submit',
'class' => 'btn-primary mbs',
'class' => 'btn-primary',
'value' => get_string('addusertoinstitution', 'admin'),
);
}
......
......@@ -1073,7 +1073,7 @@ if ($institution && $institution != 'mahara') {
'type' => 'button',
'usebuttontag' => true,
'class' => 'btn-default',
'value' => '<span class="icon icon-lg text-danger icon-ban prm"></span>' . get_string('suspendinstitution','admin'),
'value' => '<span class="icon icon-lg text-danger icon-ban left"></span>' . get_string('suspendinstitution','admin'),
),
)
);
......@@ -1095,7 +1095,7 @@ if ($institution && $institution != 'mahara') {
'type' => 'button',
'usebuttontag' => true,
'class' => 'btn-default',
'value' => '<span class="icon icon-lg text-success icon-check prm"></span>' . get_string('unsuspendinstitution','admin'),
'value' => '<span class="icon icon-lg text-success icon-check left"></span>' . get_string('unsuspendinstitution','admin'),
'description' => get_string('unsuspendinstitutiondescription','admin'),
),
)
......
......@@ -58,7 +58,7 @@ $calendar = array(
'name' => 'loggedindate',
'id' => 'loggedindate',
'tabindex' => false,
'class' => 'form-control mtm',
'class' => 'form-control',
'type' => 'calendar',
'title' => get_string('date'),
'imagefile' => $THEME->get_image_url('calendar'),
......
......@@ -90,7 +90,6 @@ $form = array(
'file' => array(
'type' => 'file',
'title' => get_string('csvfile', 'admin'),
'class' => 'pl0',
'description' => get_string('csvfiledescription', 'admin'),
'accept' => '.csv, text/csv, application/csv, text/comma-separated-values',
'rules' => array(
......@@ -120,7 +119,7 @@ $form = array(
'legend' => get_string('accountoptionsdesc', 'account'),
'collapsible' => true,
'collapsed' => true,
'class' => 'last',
'class' => 'last with-formgroup',
'elements' => general_account_prefs_form_elements($prefs),
),
'progress_meter_token' => array(
......
......@@ -1097,7 +1097,7 @@ class ArtefactTypeAnnotationfeedback extends ArtefactType {
}
$form['elements']['message'] = array(
'type' => 'wysiwyg',
'class' => 'pt0 hide-label',
'class' => 'hide-label',
'title' => get_string('Annotationfeedback', 'artefact.annotation'),
'rows' => 5,
'cols' => 80,
......@@ -1168,7 +1168,7 @@ class ArtefactTypeAnnotationfeedback extends ArtefactType {
'usebuttontag' => true,
'class' => 'btn-link btn-xs quiet',
'name' => 'make_annotation_feedback_public_submit',
'value' => '<span class="icon icon-lock text-default prs"></span>' . get_string('makepublic', 'artefact.annotation'),
'value' => '<span class="icon icon-lock text-default left"></span>' . get_string('makepublic', 'artefact.annotation'),
),
),
);
......
......@@ -999,7 +999,7 @@ class ArtefactTypeComment extends ArtefactType {
'usebuttontag' => true,
'class' => 'btn-link btn-xs',
'name' => 'make_public_submit',
'value' => '<span class="icon icon-lock text-default prs"></span>' . get_string('makepublic', 'artefact.comment'),
'value' => '<span class="icon icon-lock text-default left"></span>' . get_string('makepublic', 'artefact.comment'),
),
),
);
......
......@@ -88,7 +88,7 @@ class PluginBlocktypeFiledownload extends PluginBlocktype {
'collapsible' => true,
'collapsed' => true,
'legend' => get_string('Files', 'blocktype.file/filedownload'),
'class' => 'last mtl',
'class' => 'last with-formgroup',
'elements' => array(
'artefactid' => self::filebrowser_element($instance, (isset($configdata['artefactids'])) ? $configdata['artefactids'] : null)
)
......
......@@ -131,7 +131,7 @@ class PluginBlocktypeFolder extends PluginBlocktype {
'collapsible' => true,
'collapsed' => true,
'legend' => get_string('Folders', 'artefact.file'),
'class' => 'last select-file mtl',
'class' => 'last select-file with-formgroup',
'elements' => array(
'artefactid' => self::filebrowser_element($instance, (isset($configdata['artefactid'])) ? array($configdata['artefactid']) : null),
)
......
......@@ -69,7 +69,7 @@ class PluginBlocktypeHtml extends PluginBlocktype {
'collapsible' => true,
'collapsed' => true,
'legend' => get_string('file', 'artefact.file'),
'class' => 'last select-file mtl',
'class' => 'last select-file with-formgroup',
'elements' => array(
'artefactid' => self::filebrowser_element($instance, (isset($configdata['artefactid'])) ? array($configdata['artefactid']) : null),
)
......
......@@ -87,7 +87,7 @@ class PluginBlocktypeImage extends PluginBlocktype {
'collapsible' => true,
'collapsed' => true,
'legend' => get_string('image'),
'class' => 'last select-file mtl',
'class' => 'last select-file with-formgroup',
'elements' => array(
'artefactid' => $filebrowser
)
......
......@@ -57,7 +57,7 @@ class PluginBlocktypeInternalmedia extends PluginBlocktype {
return get_string('typeremoved', 'blocktype.file/internalmedia');
}
$callbacks = self::get_all_filetype_players();
$result .= '<div class="mediaplayer-container panel-body"><div class="mediaplayer">' . call_static_method('PluginBlocktypeInternalmedia', $callbacks[$mimetypefiletypes[$mimetype]], $artefact, $instance, $width, $height) . '</div></div>';
$result .= '<div class="mediaplayer-container panel-body flush"><div class="mediaplayer">' . call_static_method('PluginBlocktypeInternalmedia', $callbacks[$mimetypefiletypes[$mimetype]], $artefact, $instance, $width, $height) . '</div></div>';
if ($artefactid) {
require_once(get_config('docroot') . 'artefact/comment/lib.php');
......@@ -96,7 +96,7 @@ class PluginBlocktypeInternalmedia extends PluginBlocktype {
'collapsible' => true,
'collapsed' => true,
'legend' => get_string('media', 'blocktype.file/internalmedia'),
'class' => 'last select-file mtl',
'class' => 'last select-file with-formgroup',
'elements' => array(
'artefactid' => $filebrowser
)
......@@ -336,7 +336,7 @@ class PluginBlocktypeInternalmedia extends PluginBlocktype {
$html = '<span class="blocktype_internalmedia_mp3" id="' . $id . '" style="display:block;width:'.$width.'px;height:'.$height.'px;"></span>';
$html .= '<span id="' . $id . '_h">' . get_string('flashanimation', 'blocktype.file/internalmedia') . '</span>';
$html .= '<div class="ptm"><span class="icon icon-download prs"></span><span class="sr-only">'.get_string('Download', 'artefact.internal').'</span><a class="media-link text-small" href="' . $url . '">' . hsc($artefact->get('title')) . '</a>';
$html .= '<div class="media-download content-text"><span class="icon icon-download left"></span><span class="sr-only">'.get_string('Download', 'artefact.internal').'</span><a class="media-link text-small" href="' . $url . '">' . hsc($artefact->get('title')) . '</a>';
$html .= '<span class="text-lighttone text-small"> ['.$filesize.'] </span></div>';
$html .= '<script type="application/javascript">
flowplayer("'.$id.'", "'.$playerurl.'", {
......
......@@ -1544,7 +1544,7 @@ if (typeof jQuery == 'function') {
root.style.width = "auto";
root.style.height = "auto";
root.innerHTML =
"<p class='alert alert-danger mbm'>Flash version " + opts.version + " or greater is required. " +
"<p class='alert alert-danger'>Flash version " + opts.version + " or greater is required. " +
"<span>" +
(VERSION[0] > 0 ? "Your version is " + VERSION : "You have no flash plugin installed. ") +
"</span>" +
......
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