Skip to content

Commit

Permalink
Issue #5432 - button styling.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed Feb 14, 2025
1 parent 5b46d60 commit d340c7f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion e107_admin/cpage.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function options($parms, $value, $id, $attributes)
$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.
Expand Down
4 changes: 2 additions & 2 deletions e107_admin/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@
</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>
";
Expand Down Expand Up @@ -458,7 +458,7 @@
</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>
";
Expand Down
2 changes: 2 additions & 0 deletions e107_admin/users_extended.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
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")
Expand Down
6 changes: 3 additions & 3 deletions e107_handlers/form_handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -3817,12 +3817,12 @@ public function submit_image($name, $value, $image, $title='', $options = array(
{
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;

Expand Down Expand Up @@ -5301,7 +5301,7 @@ private function renderOptions($parms, $id, $attributes)

$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',
Expand Down

0 comments on commit d340c7f

Please sign in to comment.