|
@@ -21,21 +21,21 @@ file that was distributed with this source code.
|
|
|
<!DOCTYPE html>
|
|
|
<html {% block html_attributes %}class="no-js"{% endblock %}>
|
|
|
<head>
|
|
|
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
+ <meta charset="UTF-8">
|
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
|
{% block stylesheets %}
|
|
|
<!-- jQuery code -->
|
|
|
- <link rel="stylesheet" href="{{ asset('bundles/sonatajquery/themes/flick/jquery-ui-1.8.16.custom.css') }}" type="text/css" media="all" />
|
|
|
+ <link rel="stylesheet" href="{{ asset('bundles/sonatajquery/themes/flick/jquery-ui-1.8.16.custom.css') }}" media="all">
|
|
|
|
|
|
- <link rel="stylesheet" href="{{ asset('bundles/sonataadmin/bootstrap/css/bootstrap.min.css') }}" type="text/css" media="all" />
|
|
|
- <link rel="stylesheet" href="{{ asset('bundles/sonataadmin/bootstrap/css/bootstrap-responsive.min.css') }}" type="text/css" media="all" />
|
|
|
+ <link rel="stylesheet" href="{{ asset('bundles/sonataadmin/bootstrap/css/bootstrap.min.css') }}" media="all">
|
|
|
+ <link rel="stylesheet" href="{{ asset('bundles/sonataadmin/bootstrap/css/bootstrap-responsive.min.css') }}" media="all">
|
|
|
|
|
|
- <link rel="stylesheet" href="{{ asset('bundles/sonataadmin/x-editable/css/bootstrap-editable.css') }}" type="text/css" media="all" />
|
|
|
+ <link rel="stylesheet" href="{{ asset('bundles/sonataadmin/x-editable/css/bootstrap-editable.css') }}" media="all">
|
|
|
|
|
|
{% if admin_pool is defined and admin_pool.getOption('use_select2') %}
|
|
|
- <link rel="stylesheet" href="{{ asset('bundles/sonataadmin/select2/select2.css') }}" type="text/css" media="all" />
|
|
|
+ <link rel="stylesheet" href="{{ asset('bundles/sonataadmin/select2/select2.css') }}" media="all">
|
|
|
<style>
|
|
|
div.select2-container {
|
|
|
margin-left: 0px !important;
|
|
@@ -48,13 +48,13 @@ file that was distributed with this source code.
|
|
|
{% endif %}
|
|
|
|
|
|
<!-- base application asset -->
|
|
|
- <link rel="stylesheet" href="{{ asset('bundles/sonataadmin/css/layout.css') }}" type="text/css" media="all" />
|
|
|
- <link rel="stylesheet" href="{{ asset('bundles/sonataadmin/css/colors.css') }}" type="text/css" media="all" />
|
|
|
+ <link rel="stylesheet" href="{{ asset('bundles/sonataadmin/css/layout.css') }}" media="all">
|
|
|
+ <link rel="stylesheet" href="{{ asset('bundles/sonataadmin/css/colors.css') }}" media="all">
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
{% block javascripts %}
|
|
|
- <script type="text/javascript">
|
|
|
+ <script>
|
|
|
window.SONATA_CONFIG = {
|
|
|
CONFIRM_EXIT: {% if admin_pool is defined and admin_pool.getOption('confirm_exit') %}true{% else %}false{% endif %},
|
|
|
USE_SELECT2: {% if admin_pool is defined and admin_pool.getOption('use_select2') %}true{% else %}false{% endif %}
|
|
@@ -63,21 +63,21 @@ file that was distributed with this source code.
|
|
|
CONFIRM_EXIT: '{{ 'confirm_exit'|trans({}, 'SonataAdminBundle')|escape('js') }}'
|
|
|
};
|
|
|
</script>
|
|
|
- <script src="{{ asset('bundles/sonatajquery/jquery-1.8.3.js') }}" type="text/javascript"></script>
|
|
|
- <script src="{{ asset('bundles/sonatajquery/jquery-ui-1.8.23.js') }}" type="text/javascript"></script>
|
|
|
- <script src="{{ asset('bundles/sonatajquery/jquery-ui-i18n.js') }}" type="text/javascript"></script>
|
|
|
+ <script src="{{ asset('bundles/sonatajquery/jquery-1.8.3.js') }}"></script>
|
|
|
+ <script src="{{ asset('bundles/sonatajquery/jquery-ui-1.8.23.js') }}"></script>
|
|
|
+ <script src="{{ asset('bundles/sonatajquery/jquery-ui-i18n.js') }}"></script>
|
|
|
|
|
|
- <script src="{{ asset('bundles/sonataadmin/bootstrap/js/bootstrap.min.js') }}" type="text/javascript"></script>
|
|
|
+ <script src="{{ asset('bundles/sonataadmin/bootstrap/js/bootstrap.min.js') }}"></script>
|
|
|
|
|
|
<script src="{{ asset('bundles/sonataadmin/x-editable/js/bootstrap-editable.min.js') }}"></script>
|
|
|
|
|
|
{% if admin_pool is defined and admin_pool.getOption('use_select2') %}
|
|
|
- <script src="{{ asset('bundles/sonataadmin/select2/select2.min.js') }}" type="text/javascript"></script>
|
|
|
+ <script src="{{ asset('bundles/sonataadmin/select2/select2.min.js') }}"></script>
|
|
|
{% endif %}
|
|
|
|
|
|
- <script src="{{ asset('bundles/sonataadmin/jquery/jquery.form.js') }}" type="text/javascript"></script>
|
|
|
- {% if admin_pool is defined and admin_pool.getOption('confirm_exit') %}<script src="{{ asset('bundles/sonataadmin/jquery/jquery.confirmExit.js') }}" type="text/javascript"></script>{% endif %}
|
|
|
- <script src="{{ asset('bundles/sonataadmin/base.js') }}" type="text/javascript"></script>
|
|
|
+ <script src="{{ asset('bundles/sonataadmin/jquery/jquery.form.js') }}"></script>
|
|
|
+ {% if admin_pool is defined and admin_pool.getOption('confirm_exit') %}<script src="{{ asset('bundles/sonataadmin/jquery/jquery.confirmExit.js') }}"></script>{% endif %}
|
|
|
+ <script src="{{ asset('bundles/sonataadmin/base.js') }}"></script>
|
|
|
{% endblock %}
|
|
|
|
|
|
<title>
|
|
@@ -115,7 +115,7 @@ file that was distributed with this source code.
|
|
|
|
|
|
{% block logo %}
|
|
|
<a href="{{ url('sonata_admin_dashboard') }}" class="brand">
|
|
|
- <img src="{{ asset(admin_pool.titlelogo) }}" alt="{{ admin_pool.title }}" />
|
|
|
+ <img src="{{ asset(admin_pool.titlelogo) }}" alt="{{ admin_pool.title }}">
|
|
|
{{ admin_pool.title }}
|
|
|
</a>
|
|
|
{% endblock %}
|
|
@@ -166,7 +166,7 @@ file that was distributed with this source code.
|
|
|
{% if app.security.token and is_granted('ROLE_SONATA_ADMIN') %}
|
|
|
<form action="{{ url('sonata_admin_search') }}" method="GET" class="navbar-search">
|
|
|
<div class="input-append">
|
|
|
- <input type="text" name="q" value="{{ app.request.get('q') }}" class="input-large search-query" placeholder="{{ 'search_placeholder'|trans({}, 'SonataAdminBundle') }}"/>
|
|
|
+ <input type="text" name="q" value="{{ app.request.get('q') }}" class="input-large search-query" placeholder="{{ 'search_placeholder'|trans({}, 'SonataAdminBundle') }}">
|
|
|
</div>
|
|
|
</form>
|
|
|
{% endif %}
|