44 lines
909 B
Twig
44 lines
909 B
Twig
{% extends "base.html.twig" %}
|
|
{% block stylesheets %}
|
|
<style>
|
|
body{
|
|
min-height: 50vh;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
.wrapper{
|
|
display :flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100%;
|
|
|
|
}
|
|
form{
|
|
border: 1px solid grey;
|
|
border-radius: 5px;
|
|
padding: 15px;
|
|
box-shadow: 3px 3px 2px grey, -3px -3px 2px grey;
|
|
display:flex;
|
|
flex-direction: column;
|
|
}
|
|
.form-errors{
|
|
color: red;
|
|
}
|
|
|
|
</style>
|
|
{% endblock %}
|
|
|
|
{% block body %}
|
|
<div class="wrapper">
|
|
{{ form_start(form)}}
|
|
<div class="form-errors">
|
|
{% if error is defined %}{{ error }}{% endif %}
|
|
</div>
|
|
{{ form_widget(form)}}
|
|
|
|
<button type="submit" class="btn btn-success">valider</button>
|
|
{{ form_end(form)}}
|
|
</div>
|
|
|
|
{% endblock %} |