Improving Add Person Form display

This commit is contained in:
Marc Ducobu
2014-11-13 15:22:34 +01:00
parent d02e1a287e
commit 01c35e556f
2 changed files with 19 additions and 46 deletions

View File

@@ -1,49 +1,29 @@
{% extends "ChillMainBundle::layout.html.twig" %}
{% block title %}{{ 'views.Person.creation.title'|trans }}{% endblock title %}
{% block css %}
{% stylesheets output="css/all.css" filter="cssrewrite"
"bundles/chillperson/css/person.css"
%}
<link rel="stylesheet" href="{{ asset_url }}"/>
{% endstylesheets %}
{% endblock %}
{% block content %}
<div id="person_wrapper">
<div id="person_details">
{{ form_start(form) }}
{{ form_start(form) }}
<h1>{{ 'views.Person.creation.open'|trans }}</h1>
<h1>{{ 'views.Person.creation.open'|trans }}</h1>
{{ form_row(form.name, { 'label' : 'views.Person.view.name'|trans }) }}
{{ form_row(form.name, { 'label' : 'views.Person.view.name'|trans }) }}
{{ form_row(form.surname, { 'label' : 'views.Person.view.surname'|trans }) }}
{{ form_row(form.dateOfBirth, { 'label' : 'views.Person.view.dateOfBirth'|trans }) }}
{{ form_row(form.genre, { 'label' : 'views.Person.view.gender'|trans }) }}
{{ form_row(form.creation_date, { 'label' : 'views.Person.review.creation_date'|trans }) }}
{{ form_rest(form) }}
{{ form_row(form.surname, { 'label' : 'views.Person.view.surname'|trans }) }}
{{ form_row(form.dateOfBirth, { 'label' : 'views.Person.view.dateOfBirth'|trans }) }}
{{ form_row(form.genre, { 'label' : 'views.Person.view.gender'|trans }) }}
{{ form_row(form.creation_date, { 'label' : 'views.Person.review.creation_date'|trans }) }}
<button class="sc-button green" type="submit"><i class="fa fa-plus"></i> {{ 'views.Person.creation.add'|trans }}</button>
{{ form_rest(form) }}
<div class="form_control">
<div class="medium success btn icon-right entypo icon-user-add">
<button type="submit">{{ 'views.Person.creation.add'|trans }}</button>
</div>
</div>
{{ form_end(form) }}
{{ form_end(form) }}
</div>
</div>
{% endblock content %}