Created
June 14, 2011 12:07
-
-
Save chmielot/1024777 to your computer and use it in GitHub Desktop.
Form prototype
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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ü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