1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-13 08:59:44 +01:00

Issue #5432 - button styling.

This commit is contained in:
camer0n 2025-02-14 11:22:44 -08:00
parent 5b46d60268
commit d340c7f465
4 changed files with 8 additions and 6 deletions

View File

@ -143,7 +143,7 @@ class page_admin_form_ui extends e_admin_form_ui
$query['id'] = $id;
$query = http_build_query($query, '', '&');
$text = "<a href='".e_SELF."?{$query}' class='btn btn-primary' title='".LAN_EDIT."' data-toggle='tooltip' data-bs-toggle='tooltip' data-placement='left'>
$text = "<a href='".e_SELF."?{$query}' class='btn btn-success' title='".LAN_EDIT."' data-toggle='tooltip' data-bs-toggle='tooltip' data-placement='left'>
".defset('ADMIN_EDIT_ICON')."</a>";
if($this->getController()->getMode() === 'overview' && getperms('J1')) // Page/Menu Delete Perms.

View File

@ -404,7 +404,7 @@ else
</select>
</td>
<td class='center'>
<a class='btn btn-default btn-secondary btn-large' href='".e_SELF."?edit.c.".$key."'>".ADMIN_EDIT_ICON."</a>
<a class='btn btn-success btn-large' href='".e_SELF."?edit.c.".$key."'>".ADMIN_EDIT_ICON."</a>
</td>
</tr>
";
@ -458,7 +458,7 @@ else
</select>
</td>
<td class='center'>
<a class='btn btn-default btn-secondary btn-large' href='".e_SELF."?edit.p.".$plug_dir."'>".ADMIN_EDIT_ICON."</a>
<a class='btn btn-success btn-large' href='".e_SELF."?edit.p.".$plug_dir."'>".ADMIN_EDIT_ICON."</a>
</td>
</tr>
";

View File

@ -16,6 +16,8 @@ if (!getperms('4'))
exit;
}
e107::css('inline', '#admin-users-extended-main-list td.options .btn-group { justify-content: left } ');
e107::coreLan('users_extended', true);
if(varset($_GET['mode']) == "ajax")

View File

@ -3817,12 +3817,12 @@ var_dump($select_options);*/
{
case 'edit':
$icon = deftrue('e_ADMIN_AREA') ? defset('ADMIN_EDIT_ICON') : $tp->toIcon('e-edit-32');
$options['class'] = $options['class'] === 'action' ? 'btn btn-default btn-secondary action edit' : $options['class'];
$options['class'] = $options['class'] === 'action' ? 'btn btn-success action edit' : $options['class'];
break;
case 'delete':
$icon = deftrue('e_ADMIN_AREA') ? defset('ADMIN_DELETE_ICON') : $tp->toIcon('fa-trash.glyph');
$options['class'] = $options['class'] === 'action' ? 'btn btn-default btn-secondary action delete' : $options['class'];
$options['class'] = $options['class'] === 'action' ? 'btn btn-danger action delete' : $options['class'];
$options['data-confirm'] = LAN_JSCONFIRM;
break;
@ -5301,7 +5301,7 @@ var_dump($select_options);*/
$att = [
'href' => e_SELF . "?$query",
'class' => "btn btn-default btn-primary$eModal",
'class' => "btn btn-default btn-success$eModal",
'data-modal-caption' => $eModalCap,
'title' => LAN_EDIT,
// 'data-toggle' => 'tooltip',