mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
fixed button create tips and icon remove
This commit is contained in:
parent
0bbf8d0344
commit
bb794d603b
@ -489,19 +489,17 @@ class TipsWindow
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
echo '<div class="action-buttons w100p" style="width: 100%">';
|
echo '<div class="action-buttons w100p" style="width: 100%">';
|
||||||
$buttonCreate = '<a href="index.php?sec=gsetup&sec2=godmode/setup/setup§ion=welcome_tips&view=create">';
|
$buttonCreate = html_print_button(
|
||||||
$buttonCreate .= html_print_submit_button(
|
|
||||||
__('Create tip'),
|
__('Create tip'),
|
||||||
'create',
|
'create',
|
||||||
false,
|
false,
|
||||||
|
'window.location.replace("index.php?sec=gsetup&sec2=godmode/setup/setup§ion=welcome_tips&view=create")',
|
||||||
[
|
[
|
||||||
'class' => 'sub',
|
'class' => 'sub',
|
||||||
'icon' => 'create_file',
|
'icon' => 'plus',
|
||||||
''
|
|
||||||
],
|
],
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
$buttonCreate .= '</a>';
|
|
||||||
html_print_action_buttons($buttonCreate);
|
html_print_action_buttons($buttonCreate);
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
@ -839,7 +837,7 @@ class TipsWindow
|
|||||||
true,
|
true,
|
||||||
[
|
[
|
||||||
'onclick' => 'deleteImage(this, \''.$value['id'].'\', \''.$namePath.'\')',
|
'onclick' => 'deleteImage(this, \''.$value['id'].'\', \''.$namePath.'\')',
|
||||||
'class' => 'remove-image',
|
'class' => 'remove-image main_menu_icon',
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
$outputImagesTip .= html_print_div(
|
$outputImagesTip .= html_print_div(
|
||||||
@ -929,7 +927,7 @@ class TipsWindow
|
|||||||
$inputImages
|
$inputImages
|
||||||
);
|
);
|
||||||
|
|
||||||
echo '<form name="grupo" method="post" action="index.php?sec=gsetup&sec2=godmode/setup/setup§ion=welcome_tips&view=edit&action=edit&idTip='.$tip['id'].'" enctype="multipart/form-data">';
|
echo '<form class="max_floating_element_size" name="grupo" method="post" action="index.php?sec=gsetup&sec2=godmode/setup/setup§ion=welcome_tips&view=edit&action=edit&idTip='.$tip['id'].'" enctype="multipart/form-data">';
|
||||||
html_print_table($table);
|
html_print_table($table);
|
||||||
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
||||||
$actionButtons = html_print_submit_button(
|
$actionButtons = html_print_submit_button(
|
||||||
|
@ -8,7 +8,7 @@ $(document).ready(function() {
|
|||||||
var div_image = document.createElement("div");
|
var div_image = document.createElement("div");
|
||||||
$(div_image).attr("class", "action_image");
|
$(div_image).attr("class", "action_image");
|
||||||
$(div_image).append(
|
$(div_image).append(
|
||||||
`<input type="file" accept="image/png,image/jpeg,image/gif" class="input-file" name="file_${numberImages}" onchange="checkImage(this)"/>`
|
`<input type="file" accept="image/png,image/jpeg,image/gif" class="input-file" name="file_${numberImages}" onchange="checkImage(this)" required/>`
|
||||||
);
|
);
|
||||||
$(div_image).append(
|
$(div_image).append(
|
||||||
`<input type="image" src="images/delete.svg" onclick="removeInputImage(this);" class="remove-image main_menu_icon" value="-"/>`
|
`<input type="image" src="images/delete.svg" onclick="removeInputImage(this);" class="remove-image main_menu_icon" value="-"/>`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user