From b90bd0180f208a59a92384d3b2592b4ec8fc42e9 Mon Sep 17 00:00:00 2001 From: Alexander Lutay Date: Thu, 5 May 2022 11:58:47 +0200 Subject: [PATCH] TT#176350 Use common edit logic for Invoice templates The common NGCP naming convention is to use button "Edit" to edit the object. While for invoice template editor we had "Edit Meta" and "Edit Content". As a result it is always hard to recall which button to press to edit template. Recommendation is to use common logic "Edit" is for editing the "object" from the list and dedicated button "Edit Template" to edit template itself. Change-Id: Ie35100ace17605559a0e58d3326851f37ee8d1a9 --- share/templates/invoice/template_list.tt | 4 ++-- share/templates/reseller/details.tt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/share/templates/invoice/template_list.tt b/share/templates/invoice/template_list.tt index a55777dfd7..5a13fffda2 100644 --- a/share/templates/invoice/template_list.tt +++ b/share/templates/invoice/template_list.tt @@ -14,8 +14,8 @@ UNLESS c.user.read_only; helper.dt_buttons = [ - { name = c.loc('Edit Meta'), uri = "/invoicetemplate/'+full.id+'/editinfo", class = 'btn-small btn-primary', icon = 'icon-edit' }, - { name = c.loc('Edit Content'), uri = "/invoicetemplate/'+full.id+'/editcontent", class = 'btn-small btn-tertiary', icon = 'icon-edit' }, + { name = c.loc('Edit'), uri = "/invoicetemplate/'+full.id+'/editinfo", class = 'btn-small btn-primary', icon = 'icon-edit' }, + { name = c.loc('Edit Template'), uri = "/invoicetemplate/'+full.id+'/editcontent", class = 'btn-small btn-tertiary', icon = 'icon-edit' }, { name = c.loc('Delete'), uri = "/invoicetemplate/'+full.id+'/delete", class = 'btn-small btn-secondary', icon = 'icon-remove' }, ]; helper.top_buttons = [ diff --git a/share/templates/reseller/details.tt b/share/templates/reseller/details.tt index 3d223009db..ef28c15aac 100644 --- a/share/templates/reseller/details.tt +++ b/share/templates/reseller/details.tt @@ -402,8 +402,8 @@ UNLESS c.user.read_only; helper.dt_buttons = [ - { name = c.loc('Edit Meta'), uri = "/invoicetemplate/'+full.id+'/editinfo", class = 'btn-small btn-primary', icon = 'icon-edit' }, - { name = c.loc('Edit Content'), uri = "/invoicetemplate/'+full.id+'/editcontent", class = 'btn-small btn-tertiary', icon = 'icon-edit' }, + { name = c.loc('Edit'), uri = "/invoicetemplate/'+full.id+'/editinfo", class = 'btn-small btn-primary', icon = 'icon-edit' }, + { name = c.loc('Edit Template'), uri = "/invoicetemplate/'+full.id+'/editcontent", class = 'btn-small btn-tertiary', icon = 'icon-edit' }, { name = c.loc('Delete'), uri = "/invoicetemplate/'+full.id+'/delete", class = 'btn-small btn-secondary', icon = 'icon-remove' }, ]; helper.top_buttons = [