Initial
This commit is contained in:
27
controllers/Index.php
Normal file
27
controllers/Index.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Wms\Menu\Controllers;
|
||||
|
||||
use Backend\Classes\Controller;
|
||||
|
||||
/**
|
||||
* Settings controller
|
||||
*
|
||||
* @package october\system
|
||||
* @author Alexey Bobkov, Samuel Georges
|
||||
*
|
||||
*/
|
||||
class Index extends Controller
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
\BackendMenu::setContext('Wms.Menu', 'main');
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->pageTitle = 'wms.menu::plugin.name';
|
||||
$this->bodyClass = 'compact-container sidenav-tree-root';
|
||||
}
|
||||
}
|
14
controllers/index/index.htm
Normal file
14
controllers/index/index.htm
Normal file
@ -0,0 +1,14 @@
|
||||
<div class="layout">
|
||||
<div class="layout-cell oc-logo-transparent">
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var $search = $('#settings-search-input'),
|
||||
focusSearch = function() {
|
||||
setTimeout(function() { $search.focus().select() }, 10)
|
||||
};
|
||||
$search.on('blur', focusSearch);
|
||||
focusSearch()
|
||||
})
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user