Attach js and css assets to every operator's page

This commit is contained in:
Dmitriy Simushev 2014-10-10 10:33:08 +00:00
parent 46ee9df63a
commit dd71e6bc70
3 changed files with 9 additions and 9 deletions

View File

@ -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);
}

View File

@ -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>

View File

@ -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({