changing server-dropdown menu on view page to be inline
This commit is contained in:
parent
bd623e1ebd
commit
ab830a205c
|
@ -273,16 +273,11 @@ class ServerController extends AbstractServerController {
|
||||||
'label' => $server_available['label'],
|
'label' => $server_available['label'],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
$this->tpl->addTemplateDataRepeat($this->getTemplateId(), 'options', $options);
|
||||||
|
|
||||||
$sidebar = new \psm\Util\Module\Sidebar($this->tpl);
|
$sidebar = new \psm\Util\Module\Sidebar($this->tpl);
|
||||||
$this->setSidebar($sidebar);
|
$this->setSidebar($sidebar);
|
||||||
|
|
||||||
$sidebar->addDropdown(
|
|
||||||
'server',
|
|
||||||
$server['label'],
|
|
||||||
$options,
|
|
||||||
'th', 'success'
|
|
||||||
);
|
|
||||||
|
|
||||||
// check which module the user came from, and add a link accordingly
|
// check which module the user came from, and add a link accordingly
|
||||||
$back_to = isset($_GET['back_to']) && $_GET['back_to'] == 'server_status' ? $_GET['back_to'] : 'server';
|
$back_to = isset($_GET['back_to']) && $_GET['back_to'] == 'server_status' ? $_GET['back_to'] : 'server';
|
||||||
$sidebar->addButton(
|
$sidebar->addButton(
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
|
|
||||||
<!--%tpl_main_sidebar_types_dropdown-->
|
<!--%tpl_main_sidebar_types_dropdown-->
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button class="btn btn-success dropdown-toggle" data-toggle="dropdown">
|
<button class="btn btn-{btn_class} dropdown-toggle" data-toggle="dropdown">
|
||||||
<i class="icon-th icon-white"></i> {label}
|
<i class="icon-{icon}"></i> {label}
|
||||||
<span class="caret"></span>
|
<span class="caret"></span>
|
||||||
</button>
|
</button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
|
|
|
@ -5,7 +5,20 @@
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="head">
|
<tr class="head">
|
||||||
<th colspan="2"><h4>{label}</h4></th>
|
<th colspan="2">
|
||||||
|
<div class="btn-group">
|
||||||
|
<button class="btn btn-success dropdown-toggle" data-toggle="dropdown">
|
||||||
|
<i class="icon-th icon-white"></i> {label}
|
||||||
|
<span class="caret"></span>
|
||||||
|
</button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<!--%tpl_repeat_options-->
|
||||||
|
<li class="{class_active}"><a href="{url}">{label}</a>
|
||||||
|
<!--%%tpl_repeat_options-->
|
||||||
|
{options}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
|
@ -11,9 +11,6 @@ body {
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
}
|
}
|
||||||
.sidebar-nav {
|
|
||||||
padding: 9px 0;
|
|
||||||
}
|
|
||||||
.sidebar-nav .btn {
|
.sidebar-nav .btn {
|
||||||
margin: 5px 0;
|
margin: 5px 0;
|
||||||
min-width: 100px;
|
min-width: 100px;
|
||||||
|
|
Loading…
Reference in New Issue