Merge branch 'ent-12370-bugs-cluster-view' into 'develop'

Fix btn csv datatables pandora_enterprise#12370

See merge request artica/pandorafms!6624
This commit is contained in:
Rafael Ameijeiras 2023-11-08 11:24:47 +00:00
commit bd2fccd139
3 changed files with 8 additions and 14 deletions

View File

@ -12741,12 +12741,6 @@ div.agents_custom_fields #datatables_wrapper div.bottom {
justify-content: flex-start !important; justify-content: flex-start !important;
} }
.dt-buttons {
width: auto;
position: absolute;
margin-left: 90px;
}
.title_tactical { .title_tactical {
padding: 10px 0px 10px 0px; padding: 10px 0px 10px 0px;
text-align: center; text-align: center;

View File

@ -369,8 +369,6 @@ a.pandora_pagination.current:hover {
font-size: 20px; font-size: 20px;
height: 38px; height: 38px;
width: 80px; width: 80px;
margin-left: 90px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
flex-direction: row; flex-direction: row;

View File

@ -120,6 +120,7 @@ try {
echo $e->getMessage(); echo $e->getMessage();
} }
$buttons = [];
if (check_acl($config['id_user'], 0, 'AW')) { if (check_acl($config['id_user'], 0, 'AW')) {
$buttons[] = html_print_submit_button( $buttons[] = html_print_submit_button(
__('New cluster'), __('New cluster'),
@ -131,10 +132,11 @@ if (check_acl($config['id_user'], 0, 'AW')) {
], ],
true true
); );
echo '<form action="'.ui_get_full_url($model->url.'&op=new').'" method="POST">';
html_print_action_buttons(
implode('', $buttons),
['type' => 'form_action']
);
echo '</form>';
} }
echo '<form action="'.ui_get_full_url($model->url.'&op=new').'" method="POST">';
html_print_action_buttons(
implode('', $buttons),
['type' => 'form_action']
);
echo '</form>';