src/Company/BaseBundle/Resources/views/layout.html.twig
author ymh <ymh.work@gmail.com>
Thu, 27 Oct 2011 21:19:07 +0200
changeset 19 c061708be5e4
parent 5 d8cb31543a3f
permissions -rwxr-xr-x
finish dynamic save of documents

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
{% block head %}
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
    <link rel="shortcut icon" href="{{ asset('favicon.ico') }}" />
    <title>{% block title %}COMPANY NAME{% endblock %}</title>
    {% block js_import %}
    {% endblock %}
    
    {% block css_declaration %}
    {% endblock %}
    
    {% block css_import %}
    <link rel="stylesheet" href="{{ asset('bundles/companybase/css/company_style.css') }}" type="text/css"/>
    {% endblock %}
    
    {% block js_declaration %}
    {% endblock %}
    
{% endblock %}
</head>
<body>
{% block body %} 

{% block header %}
    <div id="header">
        <div><a href="{{ url('CompanyBaseBundle_homepage') }}">Company</a></div>
        {% if is_granted("IS_AUTHENTICATED_FULLY") %}
        <div><a href="{{ url('fos_user_profile_show') }}">{{ app.user.username }}</a>&nbsp;|&nbsp;<a href="{{ url('fos_user_security_logout') }}">{{ 'layout.logout'|trans({}, 'FOSUserBundle') }}</a></div>
        {% else %}
        <a href="{{ path('fos_user_security_login') }}">{{ 'layout.login'|trans({}, 'FOSUserBundle') }}</a>&nbsp;|&nbsp;<a href="{{ path('fos_user_registration_register') }}">{{ 'layout.register'|trans({}, 'FOSUserBundle') }}</a>
        {% endif %}
    </div>
    <div>
    {% for key, message in app.session.getFlashes() %}
        <div class="{{ key }}">
            {{ message|trans({}, 'FOSUserBundle') }}
        </div>
    {% endfor %}
    </div>
{% endblock %}

{% block toolbar %}
{% endblock %}


{% block content %}
{% endblock %}

{% block footer %}
    <div id="footer">
        <p>{{ 'footer.message' | trans({}, 'CompanyBaseBundle')}}</p>
    </div>
{% endblock %}

{% endblock %}
</body>
</html>