{% extends 'KnpRadBundle:Layout:h5bp.html.twig' %}

{% block stylesheets %}
    <link rel="stylesheet" href="{{ asset('bundles/knprad/bootstrap/css/bootstrap.min.css') }}" />
    <link rel="stylesheet" href="{{ asset('bundles/knprad/bootstrap/css/bootstrap-responsive.min.css') }}" />
{% endblock %}

{% block javascripts %}
    <script src="{{ asset('bundles/knprad/common/js/jquery-1.8.2.min.js') }}"></script>
    <script src="{{ asset('bundles/knprad/bootstrap/js/bootstrap.min.js') }}"></script>
{% endblock %}

{% block flashes %}
    <div class="knprad-flashes" style="position:absolute;width:500px;z-index:1000;left:50%;margin-left:-250px;top:10px;">
    {% for name, flash in app.session.flashes %}
        <div class="alert alert-block alert-{{ name }}">
            <button type="button" class="close" data-dismiss="alert">×</button>
            {{ flash.message|default(flash)|trans(flash.parameters|default({}))|raw }}
        </div>
    {% endfor %}
    </div>
{% endblock %}

{% block body %}
{% endblock %}

{% extends 'KnpRadBundle:Layout:h5bp.html.twig' %}

{% block stylesheets %}
    <link rel="stylesheet" href="{{ asset('bundles/knprad/bootstrap/css/bootstrap.min.css') }}" />
    <link rel="stylesheet" href="{{ asset('bundles/knprad/bootstrap/css/bootstrap-responsive.min.css') }}" />
{% endblock %}

{% block javascripts %}
    <script src="{{ asset('bundles/knprad/common/js/jquery-1.8.2.min.js') }}"></script>
    <script src="{{ asset('bundles/knprad/bootstrap/js/bootstrap.min.js') }}"></script>
{% endblock %}

{% block flashes %}
    {% flashes %}
        <div class="alert alert-{{ type }}">
            <button type="button" class="close" data-dismiss="alert">&times;</button>
            {{ message }}
        </div>
    {% endflashes %}
{% endblock %}

{% block body %}
{% endblock %}

Use the flashes tag in the twitter bootstrap layout
Use the flashes tag in the twitter bootstrap layout
