Several adaptations

This commit is contained in:
jose.gonzalez@pandorafms.com 2022-10-21 13:47:41 +02:00
parent 20a41a1b2d
commit 83de025bc9
4 changed files with 37 additions and 7 deletions

View File

@ -280,7 +280,15 @@ function mainModuleGroups()
html_print_input_text('module_group_search', $module_group_search);
echo '</td><td>';
echo "<input name='srcbutton' type='submit' class='sub search' value='".__('Search')."'>";
html_print_submit_button(
__('Search'),
'srcbutton',
false,
[
'icon' => 'search',
'secondary' => true,
]
);
echo '</form>';
echo '<td>';
echo '</tr></table>';

View File

@ -369,7 +369,15 @@ echo ui_print_help_tip(
);
echo '</td><td>';
echo "<input name='srcbutton' type='submit' class='sub search' value='".__('Search')."'>";
html_print_submit_button(
__('Search'),
'srcbutton',
false,
[
'icon' => 'search',
'secondary' => true,
]
);
echo '</form>';
echo '<td>';
echo '</tr></table>';
@ -945,7 +953,7 @@ if ($agents !== false) {
ui_print_info_message(['no_close' => true, 'message' => __('There are no defined agents') ]);
}
if (check_acl($config['id_user'], 0, 'AW')) {
if ((bool) check_acl($config['id_user'], 0, 'AW') === true) {
// Create agent button.
echo '<div class="action-buttons">';
echo '<form method="post" action="index.php?sec=gagente&amp;sec2=godmode/agentes/configurar_agente">';
@ -953,7 +961,10 @@ if (check_acl($config['id_user'], 0, 'AW')) {
__('Create agent'),
'crt-2',
false,
'class="sub next"'
[
'icon' => 'search',
'secondary' => true,
]
);
echo '</form>';
echo '</div>';

View File

@ -226,7 +226,15 @@ if (($policy_page) || (isset($agent))) {
html_print_input_hidden('edit_module', 1);
echo '</td>';
echo '<td class="datos w10p">';
echo '<input align="right" name="updbutton" type="submit" class="sub next" value="'.__('Create').'">';
html_print_submit_button(
__('Create'),
'updbutton',
false,
[
'icon' => 'next',
'secondary' => true,
]
);
echo '</td>';
echo '</tr>';
echo '</form>';

View File

@ -290,8 +290,11 @@ echo '</td><td class="nowrap">';
html_print_submit_button(
__('Search'),
'srcbutton',
'',
['class' => 'sub search']
false,
[
'icon' => 'search',
'secondary' => true,
]
);
echo '</td>';