Skip to content

Instantly share code, notes, and snippets.

@chmielot
Created June 14, 2011 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chmielot/1024777 to your computer and use it in GitHub Desktop.
Save chmielot/1024777 to your computer and use it in GitHub Desktop.
Form prototype
{% extends "BUMToolboxBundle::layout.html.twig" %}
{# ============== Template ===================== #}
{% block app_header %}
Manifest-Editor
{% endblock %}
{% block content %}
<form class="manifest-form" method="post" action="{{ app.request.requestUri }}">
<div class="content-block booking-data">
<h1>Buchungsdaten</h1>
<div>
{{ form_errors(form) }}
{{ form_row(form.orderId) }}
{{ form_row(form.shipName, { 'help': 'z.B. MS KREUZFAHRT'}) }}
{{ form_row(form.departure, { 'help': '(TT.MM.JJJJ)', 'attr': {'class': 'date'} }) }}
{{ form_row(form.departureShip, { 'help': '(TT.MM.JJJJ)', 'attr': {'class': 'date'} }) }}
</div>
</div>
<div id="participants">
{# Loop over all participants #}
{% for participant in form.participants %}
{{ form_row(participant) }}
{% endfor %}
{{ form_rest(form.participants) }}
</div>
{{ form_rest(form) }}
<div class="clearfix"></div>
<a href="#" id="add_person">Person hinzuf&uuml;gen</a>
<input type="submit" value="Update" />
</form>
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment