Skip to content

Instantly share code, notes, and snippets.

@chmielot
Created June 15, 2011 14:45
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/1027264 to your computer and use it in GitHub Desktop.
Save chmielot/1027264 to your computer and use it in GitHub Desktop.
Generated Markup for subform
{% extends "BUMToolboxBundle::layout.html.twig" %}
{% form_theme form _self %}
{# ============== Customizations to rendering ===================== #}
{% block field_label %}
{% spaceless %}
<label for="{{ id }}"{% for attrname,attrvalue in attr %} {{attrname}}="{{attrvalue}}"{% endfor %}>{{ label|trans }}
{#
{% if required %}
<span class="required" title="Pflichtfeld">*</span>
{% endif %}
#}
</label>
{% endspaceless %}
{% endblock field_label %}
{% block field_row %}
{% spaceless %}
<div>
{{ form_label(form) }}
{{ form_errors(form) }}
{{ form_widget(form) }}
{% if help is defined %}
<span class="help">{{ help }}</span>
{% endif %}
</div>
{% endspaceless %}
{% endblock field_row %}
{# ============== 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'} }) }}
{% if manifest is defined %}
Erstellt am: {{ manifest.createdAt|date('d.m.Y') }}
{% endif %}
</div>
</div>
<div id="participants">
{# Loop over all participants #}
{% set i = 0 %}
{% for participant in form.participants %}
<div class="content-block person {{ cycle(['margin', ''], i) }}">
<h1>Teilnehmer {{ i }}</h1>
<div class="part1">
<h2>Daten bitte genau laut Reisepass eingeben.</h2>
{{ form_widget(participant.gender, {'attr': {'class': 'gender'} }) }}
{{ form_row(participant.firstName) }}
{{ form_row(participant.lastName) }}
{{ form_row(participant.street) }}
{{ form_row(participant.streetNumber) }}
{{ form_row(participant.postalCode) }}
{{ form_row(participant.city) }}
</div>
<div class="part2">
{{ form_row(participant.maritalStatus) }}
{{ form_row(participant.occupation) }}
{{ form_row(participant.dateOfBirth, {'help': '(TT.MM.JJJJ)', 'attr': {'class': 'date'} }) }}
{{ form_row(participant.placeOfBirth) }}
{{ form_row(participant.nationality) }}
</div>
<div class="part3">
{{ form_row(participant.phoneNumber) }}
</div>
<div class="part4">
<h2>Passdaten</h2>
{{ form_row(participant.passNumber) }}
{{ form_row(participant.dateOfIssue, {'help': '(TT.MM.JJJJ)', 'attr': {'class': 'date'} }) }}
{{ form_row(participant.dateOfExpiration, {'help': '(TT.MM.JJJJ)', 'attr': {'class': 'date'} }) }}
{{ form_row(participant.placeOfIssue) }}
</div>
{# form_rest(participant) #}
</div>
{% set i = i + 1 %}
{% endfor %}
</div> {# participants #}
{{ form_rest(form) }}
<div class="clearfix"></div>
<a href="#" id="add_person">Person hinzuf&uuml;gen</a>
<input type="submit" value="Update" />
</form>
<script>
var prototype;
prototype = $('#manifest_participants_prototype');
//$('#participants').html(prototype.html());
</script>
{# COMMENTED
<script>
// Find the prototype div container
var prototype;
//prototype = $('.person').eq(0);
prototype = $('#manifest_participants_prototype').html();
console.debug(prototype);
prototype.find('input, select').attr('disabled', true);
//prototype.hide();
$('#add_person').click(function(event) {
event.preventDefault();
var index = $('.person').size();
prototype.clone(true)
.find('*[disabled]')
.removeAttr('disabled')
.end()
.find('*[name*="$$name$$"]')
.each(function() {
var attribute;
// Change name and id. Those, which have a name, have both attributes
attribute = 'id';
$(this).attr(attribute, $(this).attr(attribute).replace(/\$\$name\$\$/g, index));
attribute = 'name';
$(this).attr(attribute, $(this).attr(attribute).replace(/\$\$name\$\$/g, index));
})
.end()
.find('*[id*="$$name$$"]') // elements with ids but without names
.each(function() {
var attribute = 'id';
$(this).attr(attribute, $(this).attr(attribute).replace(/\$\$name\$\$/g, index));
})
.end()
.find('*[for*="$$name$$"]') // labels
.each(function() {
var attribute = 'for';
$(this).attr(attribute, $(this).attr(attribute).replace(/\$\$name\$\$/g, index));
})
.end()
.children('h1')
.text('Teilnehmer ' + index)
.end()
.removeClass('margin')
.addClass(function() {
if (index%2 == 0) return "margin";
return null;
})
.appendTo($('#participants'))
.show();
});
if (prototype.parent().find('.person').length == 0) {
$('#add_person').click();
}
</script>
#}
{% endblock %}
<form class="manifest-form" method="post" action="/app_dev.php/manifest/edit/4">
<div class="content-block booking-data">
<h1>Buchungsdaten</h1>
<div>
<div><label for="manifest_orderId">Buchungsnummer:
</label><input type="text" id="manifest_orderId" name="manifest[orderId]" required="required" maxlength="10" value="TESTORDER0"></div>
<div><label for="manifest_shipName">Schiff:
</label><input type="text" id="manifest_shipName" name="manifest[shipName]" required="required" maxlength="255" value="MSS BUM"><span class="help">z.B. MS KREUZFAHRT</span></div>
<div><label for="manifest_departure" class="date">Reisebeginn:
</label><input type="text" id="manifest_departure" name="manifest[departure]" required="required" value="03.10.2011"><span class="help">(TT.MM.JJJJ)</span></div>
<div><label for="manifest_departureShip" class="date">Abfahrtsdatum Schiff:
</label><input type="text" id="manifest_departureShip" name="manifest[departureShip]" required="required" value="04.10.2011"><span class="help">(TT.MM.JJJJ)</span></div>
Erstellt am: 30.05.2011
</div>
</div>
<div id="participants">
<div class="content-block person margin">
<h1>Teilnehmer 0</h1>
<div class="part1">
<h2>Daten bitte genau laut Reisepass eingeben.</h2>
<div id="manifest_participants_0_gender" class="gender"><input type="radio" id="manifest_participants_0_gender_m" name="manifest[participants][0][gender]" required="required" value="m" checked="checked"><label for="manifest_participants_0_gender_m">Herr
</label><input type="radio" id="manifest_participants_0_gender_w" name="manifest[participants][0][gender]" required="required" value="w"><label for="manifest_participants_0_gender_w">Frau
</label></div>
<div><label for="manifest_participants_0_firstName">Vorname:
</label><input type="text" id="manifest_participants_0_firstName" name="manifest[participants][0][firstName]" required="required" maxlength="255" value="Testvorname"></div>
<div><label for="manifest_participants_0_lastName">Nachname:
</label><input type="text" id="manifest_participants_0_lastName" name="manifest[participants][0][lastName]" required="required" maxlength="255" value="Testnachname"></div>
<div><label for="manifest_participants_0_street">Straße:
</label><input type="text" id="manifest_participants_0_street" name="manifest[participants][0][street]" required="required" maxlength="255" value="Teststrasse"></div>
<div><label for="manifest_participants_0_streetNumber">Hausnummer:
</label><input type="text" id="manifest_participants_0_streetNumber" name="manifest[participants][0][streetNumber]" required="required" maxlength="10" value="99/A"></div>
<div><label for="manifest_participants_0_postalCode">PLZ:
</label><input type="text" id="manifest_participants_0_postalCode" name="manifest[participants][0][postalCode]" required="required" maxlength="10" value="56767"></div>
<div><label for="manifest_participants_0_city">Stadt:
</label><input type="text" id="manifest_participants_0_city" name="manifest[participants][0][city]" required="required" maxlength="255" value="Teststadt"></div>
</div>
<div class="part2">
<div><label for="manifest_participants_0_maritalStatus">Familienstand:
</label><select id="manifest_participants_0_maritalStatus" name="manifest[participants][0][maritalStatus]" required="required"><option value="11">ledig</option><option value="12">verheiratet</option><option value="13">getrennt lebend</option><option value="14">geschieden</option><option value="15">verwitwet</option><option value="16">ledig</option><option value="17">verheiratet</option><option value="18">getrennt lebend</option><option value="19">geschieden</option><option value="20" selected="selected">verwitwet</option></select></div>
<div><label for="manifest_participants_0_occupation">Beruf:
</label><input type="text" id="manifest_participants_0_occupation" name="manifest[participants][0][occupation]" required="required" maxlength="255" value="Angestellter"></div>
<div><label for="manifest_participants_0_dateOfBirth" class="date">Geburtsdatum:
</label><input type="text" id="manifest_participants_0_dateOfBirth" name="manifest[participants][0][dateOfBirth]" required="required" value="27.01.1982"><span class="help">(TT.MM.JJJJ)</span></div>
<div><label for="manifest_participants_0_placeOfBirth">Geburtsort:
</label><input type="text" id="manifest_participants_0_placeOfBirth" name="manifest[participants][0][placeOfBirth]" required="required" maxlength="100" value="Berlin"></div>
<div><label for="manifest_participants_0_nationality">Nationalität:
</label><input type="text" id="manifest_participants_0_nationality" name="manifest[participants][0][nationality]" required="required" maxlength="30" value="deutsch"></div>
</div>
<div class="part3">
<div><label for="manifest_participants_0_phoneNumber">Telefonnummer für Notfälle:
</label><input type="text" id="manifest_participants_0_phoneNumber" name="manifest[participants][0][phoneNumber]" required="required" maxlength="30" value="0155/22230234"></div>
</div>
<div class="part4">
<h2>Passdaten</h2>
<div><label for="manifest_participants_0_passNumber">Passnummer:
</label><input type="text" id="manifest_participants_0_passNumber" name="manifest[participants][0][passNumber]" required="required" maxlength="100" pattern=".{3,100}" value="ASH"></div>
<div><label for="manifest_participants_0_dateOfIssue" class="date">Ausstellungsdatum:
</label><input type="text" id="manifest_participants_0_dateOfIssue" name="manifest[participants][0][dateOfIssue]" required="required" value="25.12.2002"><span class="help">(TT.MM.JJJJ)</span></div>
<div><label for="manifest_participants_0_dateOfExpiration" class="date">Gültigkeitsdatum:
</label><input type="text" id="manifest_participants_0_dateOfExpiration" name="manifest[participants][0][dateOfExpiration]" required="required" value="12.01.2038"><span class="help">(TT.MM.JJJJ)</span></div>
<div><label for="manifest_participants_0_placeOfIssue">Ausstellungsort:
</label><input type="text" id="manifest_participants_0_placeOfIssue" name="manifest[participants][0][placeOfIssue]" required="required" maxlength="100" value="Stadtverwaltung Berlin"></div>
</div>
</div>
<div class="content-block person ">
<h1>Teilnehmer 1</h1>
<div class="part1">
<h2>Daten bitte genau laut Reisepass eingeben.</h2>
<div id="manifest_participants_1_gender" class="gender"><input type="radio" id="manifest_participants_1_gender_m" name="manifest[participants][1][gender]" required="required" value="m"><label for="manifest_participants_1_gender_m">Herr
</label><input type="radio" id="manifest_participants_1_gender_w" name="manifest[participants][1][gender]" required="required" value="w" checked="checked"><label for="manifest_participants_1_gender_w">Frau
</label></div>
<div><label for="manifest_participants_1_firstName">Vorname:
</label><input type="text" id="manifest_participants_1_firstName" name="manifest[participants][1][firstName]" required="required" maxlength="255" value="Testvorname2"></div>
<div><label for="manifest_participants_1_lastName">Nachname:
</label><input type="text" id="manifest_participants_1_lastName" name="manifest[participants][1][lastName]" required="required" maxlength="255" value="Testnachname2"></div>
<div><label for="manifest_participants_1_street">Straße:
</label><input type="text" id="manifest_participants_1_street" name="manifest[participants][1][street]" required="required" maxlength="255" value="Teststrasse2"></div>
<div><label for="manifest_participants_1_streetNumber">Hausnummer:
</label><input type="text" id="manifest_participants_1_streetNumber" name="manifest[participants][1][streetNumber]" required="required" maxlength="10" value="99/B"></div>
<div><label for="manifest_participants_1_postalCode">PLZ:
</label><input type="text" id="manifest_participants_1_postalCode" name="manifest[participants][1][postalCode]" required="required" maxlength="10" value="56070"></div>
<div><label for="manifest_participants_1_city">Stadt:
</label><input type="text" id="manifest_participants_1_city" name="manifest[participants][1][city]" required="required" maxlength="255" value="Teststadt2"></div>
</div>
<div class="part2">
<div><label for="manifest_participants_1_maritalStatus">Familienstand:
</label><select id="manifest_participants_1_maritalStatus" name="manifest[participants][1][maritalStatus]" required="required"><option value="11">ledig</option><option value="12">verheiratet</option><option value="13">getrennt lebend</option><option value="14">geschieden</option><option value="15" selected="selected">verwitwet</option><option value="16">ledig</option><option value="17">verheiratet</option><option value="18">getrennt lebend</option><option value="19">geschieden</option><option value="20">verwitwet</option></select></div>
<div><label for="manifest_participants_1_occupation">Beruf:
</label><input type="text" id="manifest_participants_1_occupation" name="manifest[participants][1][occupation]" required="required" maxlength="255" value="Mechaniker"></div>
<div><label for="manifest_participants_1_dateOfBirth" class="date">Geburtsdatum:
</label><input type="text" id="manifest_participants_1_dateOfBirth" name="manifest[participants][1][dateOfBirth]" required="required" value="27.01.1985"><span class="help">(TT.MM.JJJJ)</span></div>
<div><label for="manifest_participants_1_placeOfBirth">Geburtsort:
</label><input type="text" id="manifest_participants_1_placeOfBirth" name="manifest[participants][1][placeOfBirth]" required="required" maxlength="100" value="Stuttgart"></div>
<div><label for="manifest_participants_1_nationality">Nationalität:
</label><input type="text" id="manifest_participants_1_nationality" name="manifest[participants][1][nationality]" required="required" maxlength="30" value="italienisch"></div>
</div>
<div class="part3">
<div><label for="manifest_participants_1_phoneNumber">Telefonnummer für Notfälle:
</label><input type="text" id="manifest_participants_1_phoneNumber" name="manifest[participants][1][phoneNumber]" required="required" maxlength="30" value="0162/66688855"></div>
</div>
<div class="part4">
<h2>Passdaten</h2>
<div><label for="manifest_participants_1_passNumber">Passnummer:
</label><input type="text" id="manifest_participants_1_passNumber" name="manifest[participants][1][passNumber]" required="required" maxlength="100" pattern=".{3,100}" value="BGR23233AS"></div>
<div><label for="manifest_participants_1_dateOfIssue" class="date">Ausstellungsdatum:
</label><input type="text" id="manifest_participants_1_dateOfIssue" name="manifest[participants][1][dateOfIssue]" required="required" value="08.02.2005"><span class="help">(TT.MM.JJJJ)</span></div>
<div><label for="manifest_participants_1_dateOfExpiration" class="date">Gültigkeitsdatum:
</label><input type="text" id="manifest_participants_1_dateOfExpiration" name="manifest[participants][1][dateOfExpiration]" required="required" value="12.01.2038"><span class="help">(TT.MM.JJJJ)</span></div>
<div><label for="manifest_participants_1_placeOfIssue">Ausstellungsort:
</label><input type="text" id="manifest_participants_1_placeOfIssue" name="manifest[participants][1][placeOfIssue]" required="required" maxlength="100" value="SV Stuttgart"></div>
</div>
</div>
<div class="content-block person margin">
<h1>Teilnehmer 2</h1>
<div class="part1">
<h2>Daten bitte genau laut Reisepass eingeben.</h2>
<div id="manifest_participants_$$name$$_gender" class="gender"><input type="radio" id="manifest_participants_$$name$$_gender_m" name="manifest[participants][$$name$$][gender]" required="required" value="m"><label for="manifest_participants_$$name$$_gender_m">Herr
</label><input type="radio" id="manifest_participants_$$name$$_gender_w" name="manifest[participants][$$name$$][gender]" required="required" value="w"><label for="manifest_participants_$$name$$_gender_w">Frau
</label></div>
<div><label for="manifest_participants_$$name$$_firstName">Vorname:
</label><input type="text" id="manifest_participants_$$name$$_firstName" name="manifest[participants][$$name$$][firstName]" required="required" maxlength="255" value=""></div>
<div><label for="manifest_participants_$$name$$_lastName">Nachname:
</label><input type="text" id="manifest_participants_$$name$$_lastName" name="manifest[participants][$$name$$][lastName]" required="required" maxlength="255" value=""></div>
<div><label for="manifest_participants_$$name$$_street">Straße:
</label><input type="text" id="manifest_participants_$$name$$_street" name="manifest[participants][$$name$$][street]" required="required" maxlength="255" value=""></div>
<div><label for="manifest_participants_$$name$$_streetNumber">Hausnummer:
</label><input type="text" id="manifest_participants_$$name$$_streetNumber" name="manifest[participants][$$name$$][streetNumber]" required="required" maxlength="10" value=""></div>
<div><label for="manifest_participants_$$name$$_postalCode">PLZ:
</label><input type="text" id="manifest_participants_$$name$$_postalCode" name="manifest[participants][$$name$$][postalCode]" required="required" maxlength="10" value=""></div>
<div><label for="manifest_participants_$$name$$_city">Stadt:
</label><input type="text" id="manifest_participants_$$name$$_city" name="manifest[participants][$$name$$][city]" required="required" maxlength="255" value=""></div>
</div>
<div class="part2">
<div><label for="manifest_participants_$$name$$_maritalStatus">Familienstand:
</label><select id="manifest_participants_$$name$$_maritalStatus" name="manifest[participants][$$name$$][maritalStatus]" required="required"><option value="11">ledig</option><option value="12">verheiratet</option><option value="13">getrennt lebend</option><option value="14">geschieden</option><option value="15">verwitwet</option><option value="16">ledig</option><option value="17">verheiratet</option><option value="18">getrennt lebend</option><option value="19">geschieden</option><option value="20">verwitwet</option></select></div>
<div><label for="manifest_participants_$$name$$_occupation">Beruf:
</label><input type="text" id="manifest_participants_$$name$$_occupation" name="manifest[participants][$$name$$][occupation]" required="required" maxlength="255" value=""></div>
<div><label for="manifest_participants_$$name$$_dateOfBirth" class="date">Geburtsdatum:
</label><input type="text" id="manifest_participants_$$name$$_dateOfBirth" name="manifest[participants][$$name$$][dateOfBirth]" required="required" value=""><span class="help">(TT.MM.JJJJ)</span></div>
<div><label for="manifest_participants_$$name$$_placeOfBirth">Geburtsort:
</label><input type="text" id="manifest_participants_$$name$$_placeOfBirth" name="manifest[participants][$$name$$][placeOfBirth]" required="required" maxlength="100" value=""></div>
<div><label for="manifest_participants_$$name$$_nationality">Nationalität:
</label><input type="text" id="manifest_participants_$$name$$_nationality" name="manifest[participants][$$name$$][nationality]" required="required" maxlength="30" value=""></div>
</div>
<div class="part3">
<div><label for="manifest_participants_$$name$$_phoneNumber">Telefonnummer für Notfälle:
</label><input type="text" id="manifest_participants_$$name$$_phoneNumber" name="manifest[participants][$$name$$][phoneNumber]" required="required" maxlength="30" value=""></div>
</div>
<div class="part4">
<h2>Passdaten</h2>
<div><label for="manifest_participants_$$name$$_passNumber">Passnummer:
</label><input type="text" id="manifest_participants_$$name$$_passNumber" name="manifest[participants][$$name$$][passNumber]" required="required" maxlength="100" pattern=".{3,100}" value=""></div>
<div><label for="manifest_participants_$$name$$_dateOfIssue" class="date">Ausstellungsdatum:
</label><input type="text" id="manifest_participants_$$name$$_dateOfIssue" name="manifest[participants][$$name$$][dateOfIssue]" required="required" value=""><span class="help">(TT.MM.JJJJ)</span></div>
<div><label for="manifest_participants_$$name$$_dateOfExpiration" class="date">Gültigkeitsdatum:
</label><input type="text" id="manifest_participants_$$name$$_dateOfExpiration" name="manifest[participants][$$name$$][dateOfExpiration]" required="required" value=""><span class="help">(TT.MM.JJJJ)</span></div>
<div><label for="manifest_participants_$$name$$_placeOfIssue">Ausstellungsort:
</label><input type="text" id="manifest_participants_$$name$$_placeOfIssue" name="manifest[participants][$$name$$][placeOfIssue]" required="required" maxlength="100" value=""></div>
</div>
</div>
</div>
<input type="hidden" id="manifest__token" name="manifest[_token]" value="034ccd1c4754983605fbdcd0eb2d3c436cc71c24">
<div class="clearfix"></div>
<a href="#" id="add_person">Person hinzufügen</a>
<input type="submit" value="Update">
</form>
<form class="manifest-form" method="post" action="/app_dev.php/manifest/new">
<div class="content-block booking-data">
<h1>Buchungsdaten</h1>
<div>
<div><label for="manifest_orderId">Buchungsnummer:
</label><input type="text" id="manifest_orderId" name="manifest[orderId]" required="required" maxlength="10" value=""></div>
<div><label for="manifest_shipName">Schiff:
</label><input type="text" id="manifest_shipName" name="manifest[shipName]" required="required" maxlength="255" value=""><span class="help">z.B. MS KREUZFAHRT</span></div>
<div><label for="manifest_departure" class="date">Reisebeginn:
</label><input type="text" id="manifest_departure" name="manifest[departure]" required="required" value=""><span class="help">(TT.MM.JJJJ)</span></div>
<div><label for="manifest_departureShip" class="date">Abfahrtsdatum Schiff:
</label><input type="text" id="manifest_departureShip" name="manifest[departureShip]" required="required" value=""><span class="help">(TT.MM.JJJJ)</span></div>
Erstellt am: 15.06.2011
</div>
</div>
<div id="participants">
<div class="content-block person margin">
<h1>Teilnehmer 0</h1>
<div class="part1">
<h2>Daten bitte genau laut Reisepass eingeben.</h2>
<div id="manifest_participants_$$name$$_gender" class="gender"><input type="radio" id="manifest_participants_$$name$$_gender_m" name="manifest[participants][$$name$$][gender]" required="required" value="m"><label for="manifest_participants_$$name$$_gender_m">Herr
</label><input type="radio" id="manifest_participants_$$name$$_gender_w" name="manifest[participants][$$name$$][gender]" required="required" value="w"><label for="manifest_participants_$$name$$_gender_w">Frau
</label></div>
<div><label for="manifest_participants_$$name$$_firstName">Vorname:
</label><input type="text" id="manifest_participants_$$name$$_firstName" name="manifest[participants][$$name$$][firstName]" required="required" maxlength="255" value=""></div>
<div><label for="manifest_participants_$$name$$_lastName">Nachname:
</label><input type="text" id="manifest_participants_$$name$$_lastName" name="manifest[participants][$$name$$][lastName]" required="required" maxlength="255" value=""></div>
<div><label for="manifest_participants_$$name$$_street">Straße:
</label><input type="text" id="manifest_participants_$$name$$_street" name="manifest[participants][$$name$$][street]" required="required" maxlength="255" value=""></div>
<div><label for="manifest_participants_$$name$$_streetNumber">Hausnummer:
</label><input type="text" id="manifest_participants_$$name$$_streetNumber" name="manifest[participants][$$name$$][streetNumber]" required="required" maxlength="10" value=""></div>
<div><label for="manifest_participants_$$name$$_postalCode">PLZ:
</label><input type="text" id="manifest_participants_$$name$$_postalCode" name="manifest[participants][$$name$$][postalCode]" required="required" maxlength="10" value=""></div>
<div><label for="manifest_participants_$$name$$_city">Stadt:
</label><input type="text" id="manifest_participants_$$name$$_city" name="manifest[participants][$$name$$][city]" required="required" maxlength="255" value=""></div>
</div>
<div class="part2">
<div><label for="manifest_participants_$$name$$_maritalStatus">Familienstand:
</label><select id="manifest_participants_$$name$$_maritalStatus" name="manifest[participants][$$name$$][maritalStatus]" required="required"><option value="11">ledig</option><option value="12">verheiratet</option><option value="13">getrennt lebend</option><option value="14">geschieden</option><option value="15">verwitwet</option><option value="16">ledig</option><option value="17">verheiratet</option><option value="18">getrennt lebend</option><option value="19">geschieden</option><option value="20">verwitwet</option></select></div>
<div><label for="manifest_participants_$$name$$_occupation">Beruf:
</label><input type="text" id="manifest_participants_$$name$$_occupation" name="manifest[participants][$$name$$][occupation]" required="required" maxlength="255" value=""></div>
<div><label for="manifest_participants_$$name$$_dateOfBirth" class="date">Geburtsdatum:
</label><input type="text" id="manifest_participants_$$name$$_dateOfBirth" name="manifest[participants][$$name$$][dateOfBirth]" required="required" value=""><span class="help">(TT.MM.JJJJ)</span></div>
<div><label for="manifest_participants_$$name$$_placeOfBirth">Geburtsort:
</label><input type="text" id="manifest_participants_$$name$$_placeOfBirth" name="manifest[participants][$$name$$][placeOfBirth]" required="required" maxlength="100" value=""></div>
<div><label for="manifest_participants_$$name$$_nationality">Nationalität:
</label><input type="text" id="manifest_participants_$$name$$_nationality" name="manifest[participants][$$name$$][nationality]" required="required" maxlength="30" value=""></div>
</div>
<div class="part3">
<div><label for="manifest_participants_$$name$$_phoneNumber">Telefonnummer für Notfälle:
</label><input type="text" id="manifest_participants_$$name$$_phoneNumber" name="manifest[participants][$$name$$][phoneNumber]" required="required" maxlength="30" value=""></div>
</div>
<div class="part4">
<h2>Passdaten</h2>
<div><label for="manifest_participants_$$name$$_passNumber">Passnummer:
</label><input type="text" id="manifest_participants_$$name$$_passNumber" name="manifest[participants][$$name$$][passNumber]" required="required" maxlength="100" pattern=".{3,100}" value=""></div>
<div><label for="manifest_participants_$$name$$_dateOfIssue" class="date">Ausstellungsdatum:
</label><input type="text" id="manifest_participants_$$name$$_dateOfIssue" name="manifest[participants][$$name$$][dateOfIssue]" required="required" value=""><span class="help">(TT.MM.JJJJ)</span></div>
<div><label for="manifest_participants_$$name$$_dateOfExpiration" class="date">Gültigkeitsdatum:
</label><input type="text" id="manifest_participants_$$name$$_dateOfExpiration" name="manifest[participants][$$name$$][dateOfExpiration]" required="required" value=""><span class="help">(TT.MM.JJJJ)</span></div>
<div><label for="manifest_participants_$$name$$_placeOfIssue">Ausstellungsort:
</label><input type="text" id="manifest_participants_$$name$$_placeOfIssue" name="manifest[participants][$$name$$][placeOfIssue]" required="required" maxlength="100" value=""></div>
</div>
</div>
</div>
<input type="hidden" id="manifest__token" name="manifest[_token]" value="034ccd1c4754983605fbdcd0eb2d3c436cc71c24">
<div class="clearfix"></div>
<a href="#" id="add_person">Person hinzufügen</a>
<input type="submit" value="Update">
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment