src/Resources/FOSUserBundle/views/layout.html.twig line 1

Open in your IDE?
  1. <!doctype html>
  2. <html class="no-js" lang="en">
  3.   <head>
  4.     <meta charset="utf-8" />
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6.         <title>{% block title %}Spirit{% endblock %}</title>
  7.         <link rel="shortcut icon" href="{{ asset('favicon.ico') }}" />
  8.         <!-- Bootstrap -->
  9.     <link href="{{ asset('css/bootstrap.css') }}" rel="stylesheet" media="screen">
  10.     <!-- HTML5 Shim and Respond.js add IE8 support of HTML5 elements and media queries -->
  11.     {% include 'BraincraftedBootstrapBundle::ie8-support.html.twig' %}
  12.     <style>
  13.         body {
  14.           padding-top: 40px;
  15.           padding-bottom: 40px;
  16.           background-color: #eee;
  17.         }
  18.         .form-signin {
  19.           max-width: 330px;
  20.           padding: 15px;
  21.           margin: 0 auto;
  22.         }
  23.         .form-signin .form-signin-heading,
  24.         .form-signin .checkbox {
  25.           margin-bottom: 10px;
  26.         }
  27.         .form-signin .checkbox {
  28.           font-weight: normal;
  29.         }
  30.         .form-signin .form-control {
  31.           position: relative;
  32.           height: auto;
  33.           -webkit-box-sizing: border-box;
  34.              -moz-box-sizing: border-box;
  35.                   box-sizing: border-box;
  36.           padding: 10px;
  37.           font-size: 16px;
  38.         }
  39.         .form-signin .form-control:focus {
  40.           z-index: 2;
  41.         }
  42.         .form-signin input[type="email"] {
  43.           margin-bottom: -1px;
  44.           border-bottom-right-radius: 0;
  45.           border-bottom-left-radius: 0;
  46.         }
  47.         .form-signin input[type="password"] {
  48.           margin-bottom: 10px;
  49.           border-top-left-radius: 0;
  50.           border-top-right-radius: 0;
  51.         }
  52.     </style>
  53.     </head>
  54.     <body>   
  55.         {% for type, messages in app.session.flashBag.all %}
  56.             {% for message in messages %}
  57.                 <div class="{{ type }}">
  58.                     {{ message|trans({}, 'FOSUserBundle') }}
  59.                 </div>
  60.             {% endfor %}
  61.         {% endfor %}
  62.         <div class="container">
  63.             {% block fos_user_content %}
  64.             {% endblock fos_user_content %}
  65.         </div>
  66.           <!-- jQuery (necessary for Bootstraps JavaScript plugins) -->
  67.     <script src="{{ asset('js/jquery.js') }}"></script>
  68.     <!-- Include all JavaScripts, compiled by Assetic -->
  69.     <script src="{{ asset('js/bootstrap.js') }}"></script>
  70.     </body>
  71. </html>