TT#81185 Fix d31797c: do not show 'back' button for framed=1

The initial commit d31797c tried to hide back button using helper 'datatables'
while some ngcp-panel pages have separate 'back' button definition.
Let's mute all of them for ngcp-admin-ui case (framed=1).

Change-Id: Ib2ed3e9362a26a1c4a353e2f615138f8b6ab6461
changes/15/40415/1
Alexander Lutay 5 years ago
parent 951bad48e1
commit 3c5138968c

@ -2,14 +2,15 @@
<div class="row">
<span>
[% UNLESS framed -%]
<a class="btn btn-primary btn-large" href="[% c.uri_for('/back') %]"><i class="icon-arrow-left"></i> [% c.loc('Back') %]</a>
[% back_created = 1 -%]
[% END -%]
<a class="btn btn-primary btn-large" href="[% c.uri_for('/calllistsuppression/download') %]"><i class="icon-star"></i> [% c.loc('Download CSV') %]</a>
<a class="btn btn-primary btn-large" href="[% c.uri_for('/calllistsuppression/upload') %]"><i class="icon-star"></i> [% c.loc('Upload CSV') %]</a>
</span>
</div>
[% back_created = 1 -%]
[%
helper.name = c.loc('Call List Suppression');
helper.identifier = "call_list_suppression";

@ -1,11 +1,12 @@
[%site_config.title = c.loc('Device Management') -%]
[% UNLESS framed -%]
<div class="row">
<span>
<a class="btn btn-primary btn-large" href="[% c.uri_for('/back') %]"><i class="icon-arrow-left"></i> [% c.loc('Back') %]</a>
</span>
</div>
[% back_created = 1 -%]
[% END -%]
<script>
function typeDynamicFields(selectedValue){

@ -2,9 +2,12 @@
<div class="ngcp-separator"></div>
<div class="row">
[% UNLESS framed -%]
<span class="pull-left" style="margin:0 5px 0 5px;">
<a class="btn btn-primary btn-large" href="[% c.uri_for('/back') %]"><i class="icon-arrow-left"></i> [% c.loc('Back') %]</a>
</span>
[% back_created = 1 -%]
[% END -%]
[% UNLESS c.user.read_only -%]
<span>
<a class="btn btn-primary btn-large" href="[% c.uri_for('/emailtemplate/create') %]"><i class="icon-star"></i> [% c.loc('Create Email Template') %]</a>
@ -16,7 +19,6 @@
[% END -%]
[% END -%]
</div>
[% back_created = 1 -%]
<div class="ngcp-separator"></div>
<select onChange="changeEmailTemplatelist(this.value);" id="email_template_table_external_filter">

@ -2,14 +2,15 @@
<div class="row">
<span>
[% UNLESS framed -%]
<a class="btn btn-primary btn-large" href="[% c.uri_for('/back') %]"><i class="icon-arrow-left"></i> [% c.loc('Back') %]</a>
[% back_created = 1 -%]
[% END -%]
<a class="btn btn-primary btn-large" href="[% c.uri_for('/emergencymapping/download') %]"><i class="icon-star"></i> [% c.loc('Download CSV') %]</a>
<a class="btn btn-primary btn-large" href="[% c.uri_for('/emergencymapping/upload') %]"><i class="icon-star"></i> [% c.loc('Upload CSV') %]</a>
</span>
</div>
[% back_created = 1 -%]
<h3>[% c.loc('Emergency Containers') %]</h3>
[%
helper.name = c.loc('Emergency Containers');

@ -2,14 +2,15 @@
<div class="row">
<span>
[% UNLESS framed -%]
<a class="btn btn-primary btn-large" href="[% c.uri_for('/back') %]"><i class="icon-arrow-left"></i> [% c.loc('Back') %]</a>
[% back_created = 1 -%]
[% END -%]
<a class="btn btn-primary btn-large" href="[% c.uri_for('/lnp/download') %]"><i class="icon-star"></i> [% c.loc('Download CSV') %]</a>
<a class="btn btn-primary btn-large" href="[% c.uri_for('/lnp/upload') %]"><i class="icon-star"></i> [% c.loc('Upload CSV') %]</a>
</span>
</div>
[% back_created = 1 -%]
<h3>[% c.loc('LNP Carriers') %]</h3>
[%
helper.name = c.loc('LNP Carriers');

@ -1,11 +1,12 @@
[% site_config.title = c.loc('Security Bans') -%]
[% UNLESS framed -%]
<div class="row">
<span class="pull-left" style="margin:0 5px 0 5px;">
<a class="btn btn-primary btn-large" href="[% c.uri_for('/back') %]"><i class="icon-arrow-left"></i> [% c.loc('Back') %]</a>
</span>
</div>
[% back_created = 1 -%]
[% END -%]
<div class="row">
[% FOREACH m IN messages -%]

@ -18,12 +18,15 @@
});
</script>
[% UNLESS framed -%]
<div class="row">
<span>
<a class="btn btn-primary btn-large" href="[% c.uri_for('/back') %]"><i class="icon-arrow-left"></i> [% c.loc('Back') %]</a>
</span>
</div>
[% back_created = 1 -%]
[% END -%]
<div class="ngcp-separator"></div>
<div class="row-fluid">

Loading…
Cancel
Save