MT#5879 Replace buttons a little.

ipeshinskaya/InvoiceTemplate5
Irina Peshinskaya 11 years ago committed by Victor Seva
parent c96e6865e7
commit 891a4c52fa

@ -40,9 +40,9 @@ IF !client.id;
DEFAULT client.bic='ABCDEFG1234';
DEFAULT client.city='Client City';
DEFAULT client.country='Client-Country';
DEFAULT client.firstname='Client Firstname Sr.';
DEFAULT client.firstname='Client Firstname';
DEFAULT client.id=Math.int(Math.rand(999999))|format('%06d');
DEFAULT client.lastname='Client-Lastname';
DEFAULT client.lastname='Client-Lastname Sr.';
DEFAULT client.postcode='65104';
DEFAULT client.sepa='AT1234567890';
DEFAULT client.street='Client Street';

@ -20,13 +20,6 @@ function getTtIdVal(){
tt_id: getTtIdVal(),
});void(0);">[% c.loc('Refresh Preview')%] <i class="icon-refresh"></i></a>
</span>
<span id="load_saved_control" style="display:none;">
<a class="btn btn-secondary btn-small" data-confirm="[%c.loc('Overwrite changes');%]" href="javascript:fetchInvoiceTemplateData({
tt_sourcestate: 'saved',
tt_id: getTtIdVal(),
provider_id: '[%provider.id%]',
});void(0);">[% c.loc('Load saved')%] <i class="icon-edit"></i></a>
</span>
<span>
<a class="btn btn-primary btn-small" onclick="
//alert('tt_id='+getTtIdVal()+';');
@ -35,31 +28,42 @@ function getTtIdVal(){
tt_id: getTtIdVal(),
});void(0);">[% c.loc('Save template')%] <i class="icon-disk"></i></a>
</span>
<!--div class="ngcp-separator"></div-->
<!--span>
<span id="load_saved_control" style="display:none;">
<a class="btn btn-secondary btn-small" data-confirm="[%c.loc('Overwrite changes');%]" href="javascript:fetchInvoiceTemplateData({
tt_sourcestate: 'saved',
tt_id: getTtIdVal(),
provider_id: '[%provider.id%]',
});void(0);">[% c.loc('Discard Changes')%] <i class="icon-edit"></i></a>
</span>
[%IF viewmode == 'development' %]
<div class="ngcp-separator"></div>
<span>
<a class="btn btn-secondary btn-small" data-confirm="[%c.loc('Overwrite changes');%]" href="javascript:fetchInvoiceTemplateData({
tt_sourcestate: 'default',
tt_id: getTtIdVal(),
provider_id: '[%provider.id%]',
});void(0);">[% c.loc('Load default')%] <i class="icon-edit"></i></a>
</span-->
</span>
<!--span id="load_previewed_control" style="display:none;visibility:hidden;">
<span id="load_previewed_control" style="display:none;visibility:hidden;">
<a class="btn btn-secondary btn-small" data-confirm="[%c.loc('Overwrite changes');%]" href="javascript:fetchInvoiceTemplateData({
tt_sourcestate: 'previewed',
tt_id: getTtIdVal(),
provider_id: '[%provider.id%]',
});void(0);">[% c.loc('Load previewed')%] <i class="icon-edit"></i></a>
</span-->
</span>
[%END%]
<div class="ngcp-separator"></div>
<!--span>
[%IF viewmode == 'development' %]
<span>
<a class="btn btn-primary btn-small" href="javascript:window.open(uriForAction({
tt_sourcestate: 'previewed',
tt_output_type : 'svg',
tt_id: getTtIdVal(),
provider_id: '[%provider.id%]',
}),'_blank');void(0);">[% c.loc('Previewed SVG')%] <i class="icon-edit"></i></a>
</span-->
</span>
[%END%]
<span>
<a class="btn btn-primary btn-small" href="javascript:window.open(uriForAction({
tt_sourcestate: 'previewed',
@ -68,7 +72,8 @@ function getTtIdVal(){
provider_id: '[%provider.id%]',
}),'_blank');void(0);">[% c.loc('Previewed PDF')%] <i class="icon-edit"></i></a>
</span>
<!--span>
[%IF viewmode == 'development' %]
<span>
<a class="btn btn-primary btn-small" href="javascript:window.open(uriForAction({
tt_sourcestate: 'saved',
tt_output_type : 'svg',
@ -83,7 +88,8 @@ function getTtIdVal(){
tt_id: getTtIdVal(),
provider_id: '[%provider.id%]',
}),'_blank');void(0);">[% c.loc('Saved PDF')%] <i class="icon-edit"></i></a>
</span-->
</span>
[%END%]
[%initial = 'default'%]
<div class="ngcp-separator"></div>
<iframe

Loading…
Cancel
Save