mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Ticket 10460 Improve menu buttons
This commit is contained in:
parent
b0ee4a203a
commit
69f08cc027
@ -875,12 +875,40 @@ if (is_ajax()) {
|
||||
<p><span>'.__('Build').'</span> '.$build_version.'</p>
|
||||
<p style="margin-bottom: 20px!important;"><span>'.__('Support expires').'</span> 2023/04/26</p>';
|
||||
if ((bool) check_acl($config['id_user'], 0, 'PM') === true) {
|
||||
$dialog .= '
|
||||
<div style="display: inline;">
|
||||
<button class="sub" onclick="location.href=\''.ui_get_full_url('/index.php?sec=gsetup&sec2=godmode/update_manager/update_manager&tab=history', false, false, false).'\'">'.__('Update manager').'</button>
|
||||
<button class="sub" onclick="location.href=\''.ui_get_full_url('/index.php?sec=gextensions&sec2=tools/diagnostics', false, false, false).'\'">'.__('System report').'</button>
|
||||
</div>
|
||||
';
|
||||
$dialogButtons = [];
|
||||
|
||||
$dialogButtons[] = html_print_button(
|
||||
__('Update manager'),
|
||||
'update_manager',
|
||||
false,
|
||||
'location.href=\''.ui_get_full_url('/index.php?sec=gsetup&sec2=godmode/update_manager/update_manager&tab=history', false, false, false).'\'',
|
||||
[
|
||||
'icon' => 'cog',
|
||||
'mode' => 'mini secondary',
|
||||
],
|
||||
true
|
||||
);
|
||||
|
||||
$dialogButtons[] = html_print_button(
|
||||
__('System report'),
|
||||
'system_report',
|
||||
false,
|
||||
'location.href=\''.ui_get_full_url('/index.php?sec=gextensions&sec2=tools/diagnostics', false, false, false).'\'',
|
||||
[
|
||||
'icon' => 'info',
|
||||
'mode' => 'mini secondary',
|
||||
],
|
||||
true
|
||||
);
|
||||
|
||||
$dialog .= html_print_div(
|
||||
[
|
||||
'style' => 'flex-direction: row;',
|
||||
'class' => 'action-buttons',
|
||||
'content' => implode('', $dialogButtons),
|
||||
],
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
$dialog .= '</th>
|
||||
|
@ -10347,6 +10347,10 @@ button div.cog {
|
||||
contain;
|
||||
}
|
||||
|
||||
button div.info {
|
||||
mask: url(../../images/info@svg.svg) no-repeat center / contain;
|
||||
-webkit-mask: url(../../images/info@svg.svg) no-repeat center / contain;
|
||||
}
|
||||
button div.signin {
|
||||
mask: url(../../images/signin.svg) no-repeat center / contain;
|
||||
-webkit-mask: url(../../images/signin.svg) no-repeat center / contain;
|
||||
|
Loading…
x
Reference in New Issue
Block a user