parent
1dcd7029ca
commit
b8cf0895ba
@ -0,0 +1,32 @@
|
||||
package NGCP::Panel::Widget::Plugin::SubscriberAdminTopMenuSettings;
|
||||
use Moose::Role;
|
||||
|
||||
has 'template' => (
|
||||
is => 'ro',
|
||||
isa => 'Str',
|
||||
default => 'widgets/subscriberadmin_topmenu_settings.tt'
|
||||
);
|
||||
|
||||
has 'type' => (
|
||||
is => 'ro',
|
||||
isa => 'Str',
|
||||
default => 'topmenu_widgets',
|
||||
);
|
||||
|
||||
around handle => sub {
|
||||
my ($foo, $self, $c) = @_;
|
||||
return;
|
||||
};
|
||||
|
||||
sub filter {
|
||||
my ($self, $c, $type) = @_;
|
||||
|
||||
return $self if(
|
||||
$type eq $self->type &&
|
||||
$c->user_in_realm('subscriberadmin')
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
1;
|
||||
# vim: set syntax=perl tabstop=4 expandtab:
|
||||
@ -0,0 +1,32 @@
|
||||
package NGCP::Panel::Widget::Plugin::SubscriberTopMenuSettings;
|
||||
use Moose::Role;
|
||||
|
||||
has 'template' => (
|
||||
is => 'ro',
|
||||
isa => 'Str',
|
||||
default => 'widgets/subscriber_topmenu_settings.tt'
|
||||
);
|
||||
|
||||
has 'type' => (
|
||||
is => 'ro',
|
||||
isa => 'Str',
|
||||
default => 'topmenu_widgets',
|
||||
);
|
||||
|
||||
around handle => sub {
|
||||
my ($foo, $self, $c) = @_;
|
||||
return;
|
||||
};
|
||||
|
||||
sub filter {
|
||||
my ($self, $c, $type) = @_;
|
||||
|
||||
return $self if(
|
||||
$type eq $self->type &&
|
||||
$c->user_in_realm('subscriber')
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
1;
|
||||
# vim: set syntax=perl tabstop=4 expandtab:
|
||||
@ -0,0 +1,12 @@
|
||||
<li class="dropdown">
|
||||
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="icon-th"></i>
|
||||
<span>Settings</span>
|
||||
<b class="caret"></b>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="[% c.uri_for_action('/subscriber/calllist', [subscriber.id]) %]">Call List</a></li>
|
||||
<li><a href="[% c.uri_for_action('/subscriber/voicemail', [subscriber.id]) %]">Voicebox Messages</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
[% # vim: set tabstop=4 syntax=html expandtab: -%]
|
||||
@ -0,0 +1,13 @@
|
||||
<li class="dropdown">
|
||||
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="icon-th"></i>
|
||||
<span>Settings</span>
|
||||
<b class="caret"></b>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="[% c.uri_for_action('/subscriber/calllist', [subscriber.id]) %]">Call List</a></li>
|
||||
<li><a href="[% c.uri_for_action('/subscriber/voicemail', [subscriber.id]) %]">Voicebox Messages</a></li>
|
||||
<li><a href="#">Subscriber Admin Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
[% # vim: set tabstop=4 syntax=html expandtab: -%]
|
||||
Loading…
Reference in new issue