TT#149450 Add nagivation buttons '... Sets' to return from submenu

Those extra buttons helps with navigation (mainly on AUI/v2 WEB),
while they are also useful on ngcp-pane/v1, as allow to return from
level 2 to level 1 of objects in object sets.

Change-Id: I6d151408b9de87a77bc6e57f07d10b9f44f47d78
mr11.0
Alexander Lutay 3 years ago
parent 2efeb70e67
commit 597beac2d1

@ -21,6 +21,7 @@
backuritmp.query_param_delete('where');
END;
helper.top_buttons = [
{ name = c.loc('Header Rule Sets'), uri = c.uri_for('/header/'), icon = 'icon-list' },
{ name = c.loc('Create Header Rule Action'), uri = c.uri_for_action('/header/actions_create', [c.req.captures.0, c.req.captures.1]), icon = 'icon-star' },
{ name = c.loc('Conditions'), uri = "/header/" _ hm_set_result.id _ "/rules/" _ hm_rule_result.id _ "/conditions", class = 'btn btn-teritary btn-large', icon = 'icon-play' },
];
@ -32,6 +33,7 @@
];
ELSE;
helper.top_buttons = [
{ name = c.loc('Header Rule Sets'), uri = c.uri_for('/header/'), icon = 'icon-list' },
{ name = c.loc('Conditions'), uri = "/header/" _ hm_set_result.id _ "/rules/" _ hm_rule_result.id _ "/conditions", class = 'btn btn-teritary btn-large', icon = 'icon-play' },
];
helper.dt_buttons = [

@ -15,6 +15,7 @@
UNLESS c.user.read_only;
helper.top_buttons = [
{ name = c.loc('Header Rule Sets'), uri = c.uri_for('/header/'), icon = 'icon-list' },
{ name = c.loc('Create Header Rule Condition'), uri = c.uri_for_action('/header/conditions_create', [c.req.captures.0, c.req.captures.1]), icon = 'icon-star' },
{ name = c.loc('Actions'), uri = "/header/" _ hm_set_result.id _ "/rules/" _ hm_rule_result.id _ "/actions", class = 'btn btn-teritary btn-large', icon = 'icon-play' },
];
@ -24,6 +25,7 @@
];
ELSE;
helper.top_buttons = [
{ name = c.loc('Header Rule Sets'), uri = c.uri_for('/header/'), icon = 'icon-list' },
{ name = c.loc('Actions'), uri = "/header/" _ hm_set_result.id _ "/rules/" _ hm_rule_result.id _ "/actions", class = 'btn btn-teritary btn-large', icon = 'icon-play' },
];
helper.dt_buttons = [

@ -21,6 +21,7 @@
backuritmp.query_param_delete('where');
END;
helper.top_buttons = [
{ name = c.loc('Header Rule Sets'), uri = c.uri_for('/header/'), icon = 'icon-list' },
{ name = c.loc('Create Header Rule'), uri = c.uri_for_action('/header/rules_create', [c.req.captures.0]), icon = 'icon-star' },
];
helper.dt_buttons = [
@ -33,6 +34,7 @@
];
ELSE;
helper.top_buttons = [
{ name = c.loc('Header Rule Sets'), uri = c.uri_for('/header/'), icon = 'icon-list' },
];
helper.dt_buttons = [
{ name = c.loc('Conditions'), uri = "/header/"_ hm_set_result.id _ "/rules/'+full.id+'/conditions", class = 'btn-small btn-tertiary', icon = 'icon-glass' },

@ -5,6 +5,9 @@
<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 -%]
<span>
<a class="btn btn-primary btn-large" href="[% c.uri_for('/rewrite/') %]"><i class="icon-list"></i> [% c.loc('Rewrite Rule Sets') %]</a>
</span>
[% UNLESS c.user.read_only -%]
<span>
<a class="btn btn-primary btn-large" href="[% c.uri_for_action('/rewrite/rules_create', [c.req.captures.0]) %]"><i class="icon-star"></i> [% c.loc('Create Rewrite Rule') %]</a>

@ -3,6 +3,7 @@
<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>
<a class="btn btn-primary btn-large" href="[% c.uri_for('/sound') %]"><i class="icon-list"></i> [% c.loc('Sound Sets') %]</a>
[% IF c.user.roles == "subscriberadmin" ||
((c.user.roles == "admin" || c.user.roles == "reseller") && !c.user.read_only)
-%]

@ -258,10 +258,15 @@ $( document ).ready(function() {
{ name = c.loc('Delete'), uri = "/timeset/'+full.time_set_id+'/event/'+full.id+'/delete", class = 'btn-small btn-secondary', icon = 'icon-trash' },
];
helper.top_buttons = [
{ name = c.loc('Time Sets'), uri = c.uri_for('/timeset/'), icon = 'icon-list' },
{ name = c.loc('Create Event'), uri = c.uri_for_action('/timeset/event_create', [c.req.captures.0] ), icon = 'icon-star' },
{ name = c.loc('Upload iCalendar events'), uri = c.uri_for_action('/timeset/event_upload',[c.req.captures.0]), icon = 'icon-star' },
{ name = c.loc('Download iCalendar'), uri = c.uri_for_action('/timeset/download', [c.req.captures.0]), icon = 'icon-th-list'},
];
ELSE;
helper.top_buttons = [
{ name = c.loc('Time Sets'), uri = c.uri_for('/timeset/'), icon = 'icon-list' },
];
END;
PROCESS 'helpers/datatables.tt';

Loading…
Cancel
Save