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
mr11.0
Alexander Lutay 4 years ago
parent 996cda6819
commit b90bd0180f

@ -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 = [

@ -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 = [

Loading…
Cancel
Save