diff --git a/editor.php b/editor.php index eae13b7e1..945b52ece 100755 --- a/editor.php +++ b/editor.php @@ -103,7 +103,7 @@ if (empty($records)) { {( "name": "button", "type": "email", "id_module": "'.$id_module.'", "id_record": "'.$id_record.'" )} - '.tr('Salva modifiche').' + '.tr('Salva').' diff --git a/modules/ddt/buttons.php b/modules/ddt/buttons.php new file mode 100644 index 000000000..3d2350a20 --- /dev/null +++ b/modules/ddt/buttons.php @@ -0,0 +1,13 @@ + + .'.tr('Crea fattura').' + '; + +} + \ No newline at end of file diff --git a/modules/ddt/edit.php b/modules/ddt/edit.php index e519a0ce5..3cd37278a 100644 --- a/modules/ddt/edit.php +++ b/modules/ddt/edit.php @@ -173,21 +173,6 @@ if ($records[0]['stato'] != 'Evaso') { } ?> - -
- - - - ... - - -
-

diff --git a/modules/ordini/buttons.php b/modules/ordini/buttons.php new file mode 100644 index 000000000..277094f00 --- /dev/null +++ b/modules/ordini/buttons.php @@ -0,0 +1,29 @@ + + + + '; + + +} \ No newline at end of file diff --git a/modules/ordini/edit.php b/modules/ordini/edit.php index 98393eb2f..09dc90aed 100644 --- a/modules/ordini/edit.php +++ b/modules/ordini/edit.php @@ -88,49 +88,21 @@ if ($module['name'] == 'Ordini cliente') {
- + -
-
- - - - - -
'; - - } + } + ?> - -

diff --git a/src/HTMLBuilder/Manager/ButtonManager.php b/src/HTMLBuilder/Manager/ButtonManager.php index 1b12a4aac..6db4b2088 100644 --- a/src/HTMLBuilder/Manager/ButtonManager.php +++ b/src/HTMLBuilder/Manager/ButtonManager.php @@ -29,7 +29,7 @@ class ButtonManager implements ManagerInterface $result = [ 'link' => \Prints::getHref($options['id'], $options['id_record'], $options['parameters']), - 'title' => $print['title'], + 'title' => tr('Stampa').' '.strtolower($print['title']), 'icon' => $print['icon'], ]; } else { @@ -37,7 +37,7 @@ class ButtonManager implements ManagerInterface $result = [ 'link' => ROOTDIR.'/mail.php?id_module='.$options['id_module'].'&id_record='.$options['id_record'].'&id='.$options['id'], - 'title' => $template['name'], + 'title' => tr('Invia').' '.strtolower($template['name']), 'icon' => $template['icon'], 'type' => 'modal', ]; @@ -157,9 +157,9 @@ class ButtonManager implements ManagerInterface $result = ''; if ($options['type'] == 'print') { - $result = ' '.tr('Stampe'); + $result = ' '.tr('Stampa'); } else { - $result = ' '.tr('Email'); + $result = ' '.tr('Invia'); } return $result;