From 4e181efa92879a34738ed018a1682fa567d0bdc2 Mon Sep 17 00:00:00 2001 From: Alexander Lutay Date: Fri, 6 May 2022 10:04:38 +0200 Subject: [PATCH] TT#104162 Improve 'Invoice template' SVG editor layout for v1 and v2 Do not show "Back" button on v2 also put all buttons in one line on v1 (it will improve free space allocation on the page allowing users focusing on editing the invoice template inside SVG editor). Change-Id: Ibe66340cda5c679df23ff3810b917d0908668304 --- share/templates/invoice/template.tt | 9 --------- share/templates/invoice/template_editor_form.tt | 15 +++++++++++---- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/share/templates/invoice/template.tt b/share/templates/invoice/template.tt index c5f45ec733..acace3f4be 100644 --- a/share/templates/invoice/template.tt +++ b/share/templates/invoice/template.tt @@ -15,19 +15,10 @@ [% PROCESS "invoice/uri_wrapper_js.tt" %] -
- - [% c.loc('Back') %] - -
-
[%PROCESS 'helpers/ajax_messages.tt' -%]
-
-[% back_created = 1 -%] -
[%PROCESS 'invoice/template_editor_form.tt' %]
diff --git a/share/templates/invoice/template_editor_form.tt b/share/templates/invoice/template_editor_form.tt index 698a5370dc..a3beb17c4f 100644 --- a/share/templates/invoice/template_editor_form.tt +++ b/share/templates/invoice/template_editor_form.tt @@ -6,16 +6,22 @@ function formSerialize(){ return $('form[id=template_editor]').serialize(); } +
+[% UNLESS framed -%] - [% c.loc('Save SVG')%] + [% c.loc('Back') %] +[% back_created = 1 -%] +[% END -%] - [% c.loc('Preview as PDF')%] + [% c.loc('Save SVG')%] + + + + [% c.loc('Preview as PDF')%] @@ -33,6 +39,7 @@ function formSerialize(){ }); void(0);"> [% c.loc('Show Variables')%] +