| author | cavaliet |
| Wed, 26 Oct 2011 16:01:33 +0200 | |
| changeset 17 | a16b5806e3f0 |
| parent 5 | d8cb31543a3f |
| permissions | -rwxr-xr-x |
| 2 | 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
2 |
<html xmlns="http://www.w3.org/1999/xhtml" > |
|
3 |
<head> |
|
4 |
{% block head %} |
|
5 |
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" /> |
|
6 |
<link rel="shortcut icon" href="{{ asset('favicon.ico') }}" /> |
|
7 |
<title>{% block title %}COMPANY NAME{% endblock %}</title> |
|
8 |
{% block js_import %} |
|
9 |
{% endblock %} |
|
10 |
||
11 |
{% block css_declaration %} |
|
12 |
{% endblock %} |
|
13 |
||
14 |
{% block css_import %} |
|
15 |
<link rel="stylesheet" href="{{ asset('bundles/companybase/css/company_style.css') }}" type="text/css"/> |
|
16 |
{% endblock %} |
|
17 |
||
18 |
{% block js_declaration %} |
|
19 |
{% endblock %} |
|
20 |
||
21 |
{% endblock %} |
|
22 |
</head> |
|
23 |
<body> |
|
24 |
{% block body %} |
|
25 |
||
26 |
{% block header %} |
|
27 |
<div id="header"> |
|
| 4 | 28 |
<div><a href="{{ url('CompanyBaseBundle_homepage') }}">Company</a></div> |
29 |
{% if is_granted("IS_AUTHENTICATED_FULLY") %} |
|
|
5
d8cb31543a3f
translation and override FOSUserBundle layout
ymh <ymh.work@gmail.com>
parents:
4
diff
changeset
|
30 |
<div><a href="{{ url('fos_user_profile_show') }}">{{ app.user.username }}</a> | <a href="{{ url('fos_user_security_logout') }}">{{ 'layout.logout'|trans({}, 'FOSUserBundle') }}</a></div> |
| 4 | 31 |
{% else %} |
|
5
d8cb31543a3f
translation and override FOSUserBundle layout
ymh <ymh.work@gmail.com>
parents:
4
diff
changeset
|
32 |
<a href="{{ path('fos_user_security_login') }}">{{ 'layout.login'|trans({}, 'FOSUserBundle') }}</a> | <a href="{{ path('fos_user_registration_register') }}">{{ 'layout.register'|trans({}, 'FOSUserBundle') }}</a> |
| 4 | 33 |
{% endif %} |
| 2 | 34 |
</div> |
|
5
d8cb31543a3f
translation and override FOSUserBundle layout
ymh <ymh.work@gmail.com>
parents:
4
diff
changeset
|
35 |
<div> |
|
d8cb31543a3f
translation and override FOSUserBundle layout
ymh <ymh.work@gmail.com>
parents:
4
diff
changeset
|
36 |
{% for key, message in app.session.getFlashes() %} |
|
d8cb31543a3f
translation and override FOSUserBundle layout
ymh <ymh.work@gmail.com>
parents:
4
diff
changeset
|
37 |
<div class="{{ key }}"> |
|
d8cb31543a3f
translation and override FOSUserBundle layout
ymh <ymh.work@gmail.com>
parents:
4
diff
changeset
|
38 |
{{ message|trans({}, 'FOSUserBundle') }} |
|
d8cb31543a3f
translation and override FOSUserBundle layout
ymh <ymh.work@gmail.com>
parents:
4
diff
changeset
|
39 |
</div> |
|
d8cb31543a3f
translation and override FOSUserBundle layout
ymh <ymh.work@gmail.com>
parents:
4
diff
changeset
|
40 |
{% endfor %} |
|
d8cb31543a3f
translation and override FOSUserBundle layout
ymh <ymh.work@gmail.com>
parents:
4
diff
changeset
|
41 |
</div> |
| 2 | 42 |
{% endblock %} |
43 |
||
44 |
{% block toolbar %} |
|
45 |
{% endblock %} |
|
46 |
||
|
5
d8cb31543a3f
translation and override FOSUserBundle layout
ymh <ymh.work@gmail.com>
parents:
4
diff
changeset
|
47 |
|
| 2 | 48 |
{% block content %} |
49 |
{% endblock %} |
|
50 |
||
51 |
{% block footer %} |
|
52 |
<div id="footer"> |
|
|
5
d8cb31543a3f
translation and override FOSUserBundle layout
ymh <ymh.work@gmail.com>
parents:
4
diff
changeset
|
53 |
<p>{{ 'footer.message' | trans({}, 'CompanyBaseBundle')}}</p> |
| 2 | 54 |
</div> |
55 |
{% endblock %} |
|
56 |
||
57 |
{% endblock %} |
|
58 |
</body> |
|
59 |
</html> |