parent
3c5acf467f
commit
6ede6b4e09
@ -1,5 +1,2 @@
|
|||||||
- DataTable field doesn't preserve checked value correctly if other
|
|
||||||
fields don't validate (id gets set to 1 for all rows, and all boxes
|
|
||||||
are checked).
|
|
||||||
- Modal needs more flexible width. It breaks when making screen narrower
|
- Modal needs more flexible width. It breaks when making screen narrower
|
||||||
than 816px, and if no DataTable field is there, it can be narrower also.
|
than 816px, and if no DataTable field is there, it can be narrower also.
|
||||||
|
@ -0,0 +1,32 @@
|
|||||||
|
package NGCP::Panel::Widget::Plugin::AdminTopMenuSettings;
|
||||||
|
use Moose::Role;
|
||||||
|
|
||||||
|
has 'template' => (
|
||||||
|
is => 'ro',
|
||||||
|
isa => 'Str',
|
||||||
|
default => 'widgets/admin_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->check_user_roles(qw/administrator/)
|
||||||
|
);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
1;
|
||||||
|
# vim: set syntax=perl tabstop=4 expandtab:
|
@ -0,0 +1,23 @@
|
|||||||
|
<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="./elements.html">Foo</a></li>
|
||||||
|
<li><a href="./validation.html">Validation</a></li>
|
||||||
|
<li><a href="./jqueryui.html">jQuery UI</a></li>
|
||||||
|
<li><a href="./charts.html">Charts</a></li>
|
||||||
|
<li><a href="./bonus.html">Bonus Elements</a></li>
|
||||||
|
<li class="dropdown-submenu">
|
||||||
|
<a tabindex="-1" href="#">Dropdown menu</a>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a tabindex="-1" href="#">Second level link</a></li>
|
||||||
|
<li><a tabindex="-1" href="#">Second level link</a></li>
|
||||||
|
<li><a tabindex="-1" href="#">Second level link</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
[% # vim: set tabstop=4 syntax=html expandtab: -%]
|
Loading…
Reference in new issue