mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 13:24:41 +03:00
Attach js and css assets to every operator's page
This commit is contained in:
parent
46ee9df63a
commit
dd71e6bc70
@ -82,6 +82,9 @@ class UsersController extends AbstractController
|
||||
|
||||
$page = array_merge($page, prepare_menu($operator));
|
||||
|
||||
// Attach files of the client side application
|
||||
$this->getAssetManager()->attachJs('js/compiled/users_app.js');
|
||||
|
||||
return $this->render('users', $page);
|
||||
}
|
||||
|
||||
|
@ -11,6 +11,9 @@
|
||||
<!--[if lte IE 7]><link href="{{asset "@CurrentStyle/css/default_ie.css"}}" rel="stylesheet" type="text/css" /><![endif] -->
|
||||
<!--[if lte IE 6]><script language="JavaScript" type="text/javascript" src="{{asset "@CurrentStyle/js/ie.js"}}"></script><![endif]-->
|
||||
|
||||
<!-- Extra CSS files -->
|
||||
{{cssAssets}}
|
||||
|
||||
<!-- External libs -->
|
||||
<script type="text/javascript" src="{{asset "js/libs/jquery.min.js"}}"></script>
|
||||
<script type="text/javascript" src="{{asset "js/libs/json2.js"}}"></script>
|
||||
@ -29,6 +32,9 @@
|
||||
<!-- Localized string -->
|
||||
<script type="text/javascript" src="{{route "js_translation" locale=currentLocale}}"></script>
|
||||
|
||||
<!-- Extra JavaScript files -->
|
||||
{{jsAssets}}
|
||||
|
||||
{{#block "head"}}{{/block}}
|
||||
</head>
|
||||
|
||||
|
@ -4,15 +4,6 @@
|
||||
{{/if}}
|
||||
|
||||
{{#override "head"}}
|
||||
<!-- Plugins CSS files -->
|
||||
{{cssAssets}}
|
||||
|
||||
<script type="text/javascript" src="{{asset "js/compiled/users_app.js"}}"></script>
|
||||
|
||||
<!-- Plugins JavaScript files -->
|
||||
{{jsAssets}}
|
||||
|
||||
|
||||
<script type="text/javascript"><!--
|
||||
jQuery(document).ready(function(){
|
||||
Mibew.Application.start({
|
||||
|
Loading…
Reference in New Issue
Block a user