Skip to content
Snippets Groups Projects
Unverified Commit a9a7ec4e authored by Sebastian Castro's avatar Sebastian Castro
Browse files

Use custom style and css also on Saas pages

parent 831a2be9
No related branches found
No related tags found
No related merge requests found
...@@ -9,25 +9,24 @@ ...@@ -9,25 +9,24 @@
<head> <head>
<title>{% block title %}GoGoCarto{% endblock %}</title> <title>{% block title %}GoGoCarto{% endblock %}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
{# gogocarto contains materializeCss lib, so we load it for all files #} {# gogocarto contains materializeCss lib, so we load it for all files #}
<link rel="stylesheet" href="{{ asset('assets/css/gogocarto.min.css?ver=' ~ version) }}"> <link rel="stylesheet" href="{{ asset('assets/css/gogocarto.min.css?ver=' ~ version) }}">
{% block stylesheets %} {% block stylesheets %}
{% endblock %} {% endblock %}
{% if config is defined %} {% if config is defined %}
{% include '@BiopenCoreBundle/custom-head.html.twig' %} {% include '@BiopenCoreBundle/custom-head.html.twig' %}
{% endif %} {% endif %}
<meta name="robots" content="index, follow, all" /> <meta name="robots" content="index, follow, all" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head> </head>
<body class="gogo-load-css {% if pageName is defined %}{{ pageName }}{% endif %}"> {# use this class to load the css vendors encapsulated inside gogocarto.css #} <body class="gogo-load-css {% if pageName is defined %}{{ pageName }}{% endif %} base-layout"> {# use this class to load the css vendors encapsulated inside gogocarto.css #}
{# All action from GoGoControllers give the config variable into the view to render the header. {# All action from GoGoControllers give the config variable into the view to render the header.
If not, we need to render manually the header via a dedicate action If not, we need to render manually the header via a dedicate action
It occurs for sonata user routes, like register, resetting and so on #} It occurs for sonata user routes, like register, resetting and so on #}
{% if config is defined %} {% if config is defined %}
{% include '@BiopenCoreBundle/header.html.twig' %} {% include '@BiopenCoreBundle/header.html.twig' %}
...@@ -36,26 +35,26 @@ ...@@ -36,26 +35,26 @@
{% endif %} {% endif %}
{% block body %} {% block body %}
{% endblock %} {% endblock %}
{# Mains javascripts libs #} {# Mains javascripts libs #}
<script src="{{ asset('js/gogocarto.js?ver=' ~ version) }}"></script> <script src="{{ asset('js/gogocarto.js?ver=' ~ version) }}"></script>
<script src="{{ asset('js/libs.js?ver=' ~ version) }}"></script> <script src="{{ asset('js/libs.js?ver=' ~ version) }}"></script>
{# Block to add custom javascript to each page #} {# Block to add custom javascript to each page #}
{% block javascripts %} {% block javascripts %}
{% endblock %} {% endblock %}
</body> </body>
</html> </html>
{% if config is defined %} {% if config is defined %}
{% block header_modals %} {% block header_modals %}
{% include '@BiopenCoreBundle/modals/headerModals.html.twig' %} {% include '@BiopenCoreBundle/modals/headerModals.html.twig' %}
{% include '@BiopenCoreBundle/modals/loginModal.html.twig' %} {% include '@BiopenCoreBundle/modals/loginModal.html.twig' %}
{% endblock %} {% endblock %}
{% endif %} {% endif %}
{% block modals %} {% block modals %}
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -8,40 +8,44 @@ ...@@ -8,40 +8,44 @@
<!--[if !(IE)]><!--> <html class="no-js" lang="fr"> <!--<![endif]--> <!--[if !(IE)]><!--> <html class="no-js" lang="fr"> <!--<![endif]-->
<head> <head>
<title>{% block title %}GoGoCarto{% endblock %}</title> <title>{% block title %}GoGoCarto{% endblock %}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
{# gogocarto contains materializeCss lib, so we load it for all files #} {# gogocarto contains materializeCss lib, so we load it for all files #}
<link rel="stylesheet" href="{{ asset('assets/css/gogocarto.min.css?ver=' ~ version) }}"> <link rel="stylesheet" href="{{ asset('assets/css/gogocarto.min.css?ver=' ~ version) }}">
<link rel="stylesheet" href="{{ asset('assets/css/saas.css?ver=' ~ version) }}"> <link rel="stylesheet" href="{{ asset('assets/css/saas.css?ver=' ~ version) }}">
{% block stylesheets %} {% block stylesheets %}
{% endblock %} {% endblock %}
{% if config is defined %}
{% include '@BiopenCoreBundle/custom-head.html.twig' %}
{% endif %}
<meta name="robots" content="index, follow, all" /> <meta name="robots" content="index, follow, all" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head> </head>
<body class="gogo-load-css"> {# use this class to load the css vendors encapsulated inside gogocarto.css #} <body class="gogo-load-css saas-layout"> {# load the css vendors encapsulated inside gogocarto.css #}
{% include '@BiopenCoreBundle/custom-head.html.twig' %} {% include '@BiopenCoreBundle/custom-head.html.twig' %}
<div id="page-container" {% if pageName is defined %}class="{{ pageName }}"{% endif %}> <div id="page-container" {% if pageName is defined %}class="{{ pageName }}"{% endif %}>
<div id="page-content" {% if pageName is defined %}class="{{ pageName }}"{% endif %}> <div id="page-content" {% if pageName is defined %}class="{{ pageName }}"{% endif %}>
{% block body %} {% block body %}
{% endblock %} {% endblock %}
</div> </div>
</div> </div>
{# Mains javascripts libs #} {# Mains javascripts libs #}
<script src="{{ asset('js/libs.js?ver=' ~ version) }}"></script> <script src="{{ asset('js/libs.js?ver=' ~ version) }}"></script>
<script src="{{ asset('js/gogocarto.js?ver=' ~ version) }}"></script> <script src="{{ asset('js/gogocarto.js?ver=' ~ version) }}"></script>
{# Block to add custom javascript to each page #} {# Block to add custom javascript to each page #}
{% block javascripts %} {% block javascripts %}
{% endblock %} {% endblock %}
{% block modals %} {% block modals %}
{% endblock %} {% endblock %}
</body> </body>
</html> </html>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment