Adapted views
This commit is contained in:
parent
dca36cbe0b
commit
4cf92cc995
|
@ -123,12 +123,26 @@ if ((isset($_GET['form_add'])) or (isset($_GET['form_edit']))) {
|
|||
echo '</table>';
|
||||
echo "<table width='100%'>";
|
||||
echo "<tr><td align='right'>";
|
||||
if (isset($_GET['form_add'])) {
|
||||
echo "<input name='crtbutton' type='submit' class='sub wand' value='".__('Create')."'>";
|
||||
if (isset($_GET['form_add']) === true) {
|
||||
$actionForPerform = __('Create');
|
||||
$iconForPerform = 'wand';
|
||||
} else {
|
||||
echo "<input name='crtbutton' type='submit' class='sub upd' value='".__('Update')."'>";
|
||||
$actionForPerform = __('Update');
|
||||
$iconForPerform = 'update';
|
||||
}
|
||||
|
||||
html_print_div(
|
||||
[
|
||||
'class' => 'action-buttons',
|
||||
'content' => html_print_submit_button(
|
||||
$actionForPerform,
|
||||
'crtbutton',
|
||||
false,
|
||||
[ 'icon' => $iconForPerform ]
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
echo '</form></td></tr></table>';
|
||||
} else {
|
||||
// Main list view for Links editor
|
||||
|
@ -170,6 +184,18 @@ if ((isset($_GET['form_add'])) or (isset($_GET['form_edit']))) {
|
|||
echo "<table width='100%'>";
|
||||
echo "<tr><td align='right'>";
|
||||
echo "<form method='post' action='index.php?sec=gsetup&sec2=godmode/setup/links&form_add=1'>";
|
||||
echo "<input type='submit' class='sub next' name='form_add' value='".__('Add')."'>";
|
||||
|
||||
html_print_div(
|
||||
[
|
||||
'class' => 'action-buttons',
|
||||
'content' => html_print_submit_button(
|
||||
__('Add'),
|
||||
'form_add',
|
||||
false,
|
||||
[ 'icon' => 'wand' ]
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
echo '</form></table>';
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
* |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______|
|
||||
*
|
||||
* ============================================================================
|
||||
* Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
||||
* Copyright (c) 2005-2022 Artica Soluciones Tecnologicas
|
||||
* Please see http://pandorafms.org for full contribution list
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
@ -822,19 +822,27 @@ switch ($tab) {
|
|||
}
|
||||
|
||||
if ($networkmaps_write || $networkmaps_manage) {
|
||||
echo "<div style='width: ".$table->width."; margin-top: 5px;'>";
|
||||
echo '<form method="post" action="index.php?sec=network&sec2=operation/agentes/pandora_networkmap">';
|
||||
echo '<form id="new_networkmap" method="post" action="index.php?sec=network&sec2=operation/agentes/pandora_networkmap">';
|
||||
html_print_input_hidden('new_networkmap', 1);
|
||||
html_print_submit_button(__('Create network map'), 'crt', false, 'class="sub next float-right"');
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
|
||||
echo "<div style='width: ".$table->width."; margin-top: 5px;'>";
|
||||
echo '<form method="post" action="index.php?sec=network&sec2=operation/agentes/pandora_networkmap">';
|
||||
echo '<form id="empty_networkmap" method="post" action="index.php?sec=network&sec2=operation/agentes/pandora_networkmap">';
|
||||
html_print_input_hidden('new_empty_networkmap', 1);
|
||||
html_print_submit_button(__('Create empty network map'), 'crt', false, 'class="sub next float-right mrgn_right_20px"');
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
|
||||
html_print_div(
|
||||
[
|
||||
'class' => 'action-buttons',
|
||||
'content' => html_print_submit_button(__('Create network map'), 'crt', false, [ 'icon' => 'next', 'form' => 'new_networkmap' ], true).html_print_submit_button(__('Create empty network map'), 'crt', false, [ 'icon' => 'next', 'form' => 'empty_networkmap' ], true),
|
||||
],
|
||||
false
|
||||
);
|
||||
/*
|
||||
echo "<div style='width: ".$table->width."; margin-top: 5px;' class='action-buttons'>";
|
||||
html_print_submit_button(__('Create network map'), 'crt', false, 'class="sub next"');
|
||||
html_print_submit_button(__('Create empty network map'), 'crt', false, 'class="sub next"');
|
||||
echo '</div>';
|
||||
*/
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue