Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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