config/fields/site_1.fields.php line 107

Open in your IDE?
  1. <?php
  2. $pFields[] = array(
  3.     'name'=>'first_name',
  4.     'title'=>array(1=>'Wat is uw voornaam?',2=>'What is your first name?'),
  5.     'type'=>'text',
  6.     'note'=>array(1=>'',2=>''),
  7.     'pattern'=>"^[a-zA-Z\.\- ]+$",
  8.     'error'=>array(1=>'Vul uw voornaam in. Speciale karakters zijn helaas niet toegestaan.',2=>'Please fill in your first name. Special characters are not allowed in this field.'),
  9.     'group' => 1,
  10.     'required' => true,
  11.     'mobiletitle' => 'voornaam',
  12.     'class' => '',
  13.     'autocomplete' => 'given-name',
  14. );
  15. $pFields[] = array(
  16.     'name'=>'last_name',
  17.     'title'=>array(1=>'Wat is uw achternaam?',2=>'What is your last name?'),
  18.     'type'=>'text',
  19.     'note'=>array(1=>'',2=>''),
  20.     'placeholder' => array(1=>'Bijv. "van der Ven"',2=>''),
  21.     'pattern'=>"^[a-zA-Z\.\- ]+$",
  22.     'error'=>array(1=>'Vul uw achternaam in. Speciale karakters zijn helaas niet toegestaan.',2=>'Please fill in your last name. Special characters are not allowed in this field.'),
  23.     'group' => 1,
  24.     'required' => true,
  25.     'mobiletitle' => 'achternaam',
  26.     'class' => '',
  27.     'autocomplete' => 'family-name',
  28. );
  29. $pFields[] = array(
  30.     'name'=>'postal',
  31.     'title'=>array(1=>'Wat is uw postcode?',2=>'What is your zip code?'),
  32.     'type'=>'text',
  33.     'note'=>array(1=>'Voer in als: 1234AA',2=>'Fill in as: 1234AA'),
  34.     'pattern'=>"^([1-9]{1}[0-9]{3}[ A-Za-z]{2,3})|([1-9]{1}[0-9]{3,5})$",
  35.     'error'=>array(1=>'Vul uw postcode in als: 1234AA',2=>'Please fill in your zipcode as: 1234AA'),
  36.     'group' => 2,
  37.     'replace'=>' ',
  38.     'transform'=>'uppercase',
  39.     'special'=>'fillAddress',
  40.     'required' => true,
  41.     'mobiletitle' => 'postcode',
  42.     'class' => 'mobile-1-3',
  43.     'autocomplete' => 'postal-code',
  44. );
  45. $pFields[] = array(
  46.     'name'=>'streetnr',
  47.     'title'=>array(1=>'Op welk huisnummer woont u?',2=>'What is your street number?'),
  48.     'type'=>'text',
  49.     'note'=>array(1=>'',2=>''),
  50.     'pattern'=>"^([1-9]{1}[0-9]{0,5})$",
  51.     'error'=>array(1=>'Vul uw huisnummer in. Spaties zijn niet toegestaan. Toevoeging graag opgeven in het aparte veld.',2=>"Please fill in your house number. Spaces are not allowed. Please add any suffixes in the field below."),
  52.     'group' => 2,
  53.     'special'=>'fillAddress',
  54.     'required' => true,
  55.     'mobiletitle' => 'huisnummer',
  56.     'class' => 'mobile-1-3',
  57.     'autocomplete' => 'on',
  58. );
  59. $pFields[] = array(
  60.     'name'=>'suffix',
  61.     'title'=>array(1=>'Heeft uw huisnummer een toevoeging?',2=>'Please enter your house number suffix?'),
  62.     'type'=>'text',
  63.     'note'=>array(1=>'',2=>''),
  64.     'pattern'=>"",
  65.     'error'=>array(1=>'Vul uw toevoeging in. Spaties zijn niet toegestaan.',2=>"Please fill in your house number suffix. "),
  66.     'group' => 2,
  67.     'required' => false,
  68.     'mobiletitle' => 'toevoeging',
  69.     'class' => 'mobile-1-3-last',
  70.     'autocomplete' => 'on',
  71. );
  72. $pFields[] = array(
  73.     'name'=>'address',
  74.     'title'=>array(1=>'Wat is uw straatnaam?',2=>'What is your street name?'),
  75.     'type'=>'text',
  76.     'note'=>array(1=>'Indien gevonden hebben wij dit al voor u ingevuld.',2=>'If found we have filled this in already.'),
  77.     'pattern'=>"^[0-9a-zA-Z\.\- ']+$",
  78.     'error'=>array(1=>'Vul uw straatnaam in. Speciale karakters zijn niet toegestaan.',2=>'Please fill in your street name. Special characters are not allowed in this field.'),
  79.     'group' => 2,
  80.     'required' => true,
  81.     'mobiletitle' => 'straat',
  82.     'class' => '',
  83.     'autocomplete' => 'address-line1',
  84. );
  85. $pFields[] = array(
  86.     'name'=>'city',
  87.     'title'=>array(1=>'Wat is uw plaatsnaam?',2=>'What city do you live in?'),
  88.     'type'=>'text',
  89.     'note'=>array(1=>'Indien gevonden hebben wij dit al voor u ingevuld.',2=>'If found we have filled this in already.'),
  90.     'pattern'=>"^[a-zA-Z\.\- ]+$",
  91.     'error'=>array(1=>'Vul uw plaatsnaam in. Speciale karakters zijn niet toegestaan.',2=>'Please fill in your city. Special characters are not allowed in this field.'),
  92.     'group' => 2,
  93.     'required' => true,
  94.     'mobiletitle' => 'plaats',
  95.     'class' => '',
  96.     'autocomplete' => 'address-level2',
  97. );
  98. $pFields[] = array(
  99.     'name'=>'country',
  100.     'title'=>array(1=>'Wat is uw land?',2=>'What country do you live in?'),
  101.     'type'=>'select',
  102.     'note'=>array(1=>'',2=>''),
  103.     'pattern'=>"",
  104.     'error'=>array(1=>'Vul uw land in. Speciale karakters zijn niet toegestaan.',2=>'Please fill in your country. Special characters are not allowed in this field.'),
  105.     'group' => 2,
  106.     'required' => true,
  107.     'options' => \Symfony\Component\Intl\Intl::getRegionBundle()->getCountryNames(),
  108.     'mobiletitle' => 'land',
  109.     'class' => '',
  110.     'autocomplete' => 'country',
  111. );
  112. $pFields[] = array(
  113.     'name'=>'phone',
  114.     'title'=>array(1=>'Wat is uw telefoonnummer?',2=>'What is your phone number?'),
  115.     'type'=>'text',
  116.     'note'=>array(1=>'',2=>''),
  117.     //'pattern'=>'^(?:0|(?:\+|00) ?31 ?)(?:(?:[1-9] ?(?:[0-9] ?){8})|(?:6 ?-? ?[1-9] ?(?:[0-9] ?){7})|(?:[1-9]\d ?-? ?[1-9] ?(?:[0-9] ?){6})|(?:[1-9]\d{2} ?-? ?[1-9] ?(?:[0-9] ?){5}))',
  118.     'pattern' => '',
  119.     'error'=>array(1=>'Vul uw telefoonnummer in.',2=>'Please fill in your phone number.'),
  120.     'group' => 3,
  121.     'required' => true,
  122.     'mobiletitle' => 'telefoon',
  123.     'class' => '',
  124.     'autocomplete' => 'tel',
  125. );
  126. $pFields[] = array(
  127.     'name'=>'email',
  128.     'title'=>array(1=>'Wat is uw emailadres?',2=>'What is your e-mail adress?'),
  129.     'type'=>'text',
  130.     'note'=>array(1=>'',2=>''),
  131.     'pattern'=>"^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,10}$",
  132.     'error'=>array(1=>'Vul uw emailadres in.',2=>'Please fill in your e-mail address.'),
  133.     'group' => 3,
  134.     'required' => true,
  135.     'transform'=>'lowercase',
  136.     'mobiletitle' => 'e-mailadres',
  137.     'class' => '',
  138.     'autocomplete' => 'email',
  139. );
  140. $pFields[] = array(
  141.     'name'=>'birthdate',
  142.     'title'=>array(1=>'Wat is uw geboortedatum?',2=>'What is your date of birth?'),
  143.     'type'=>'text',
  144.     'note'=>array(1=>'Wil je een cadeautje ontvangen op je verjaardag? Vul dan hier je geboortedatum in. LET OP: dit is niet verplicht, maar we sturen je graag een cadeautje :).',2=>'Do you want to receive a special gift on your birthday? Fill in your Date of Birth here. It is not a required field - but we would love to send you a small surprise on your special day :).'),
  145.     'pattern'=>"",
  146.     'error'=>array(1=>'',2=>''),
  147.     'group' => 3,
  148.     'required' => false,
  149.     'mobiletitle' => 'geboortedatum (DD/MM/YYYY)',
  150.     'class' => 'datepicker',
  151.     'autocomplete' => 'bday',
  152. );