config/fields/site_3.fields.php line 86

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. );
  12. $pFields[] = array(
  13.     'name'=>'last_name',
  14.     'title'=>array(1=>'Wat is uw achternaam?',2=>'What is your last name?'),
  15.     'type'=>'text',
  16.     'note'=>array(1=>'',2=>''),
  17.     'placeholder' => array(1=>'Bijv. "van der Ven"',2=>''),
  18.     'pattern'=>"^[a-zA-Z\.\- ]+$",
  19.     '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.'),
  20.     'group' => 1,
  21.     'required' => true,
  22. );
  23. $pFields[] = array(
  24.     'name'=>'postal',
  25.     'title'=>array(1=>'Wat is uw postcode?',2=>'What is your zip code?'),
  26.     'type'=>'text',
  27.     'note'=>array(1=>'Voer in als: 1234AA',2=>'Fill in as: 1234AA'),
  28.     'pattern'=>"^([1-9]{1}[0-9]{3}[ A-Za-z]{2,3})|([1-9]{1}[0-9]{3,5})$",
  29.     'error'=>array(1=>'Vul uw postcode in als: 1234AA',2=>'Please fill in your zipcode as: 1234AA'),
  30.     'group' => 2,
  31.     'replace'=>' ',
  32.     'transform'=>'uppercase',
  33.     'special'=>'fillAddress',
  34.     'required' => true,
  35. );
  36. $pFields[] = array(
  37.     'name'=>'streetnr',
  38.     'title'=>array(1=>'Op welk huisnummer woont u?',2=>'What is your street number?'),
  39.     'type'=>'text',
  40.     'note'=>array(1=>'',2=>''),
  41.     'pattern'=>"^([1-9]{1}[0-9]{0,5})$",
  42.     '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."),
  43.     'group' => 2,
  44.     'special'=>'fillAddress',
  45.     'required' => true,
  46. );
  47. $pFields[] = array(
  48.     'name'=>'suffix',
  49.     'title'=>array(1=>'Heeft uw huisnummer een toevoeging?',2=>'Please enter your house number suffix?'),
  50.     'type'=>'text',
  51.     'note'=>array(1=>'',2=>''),
  52.     'pattern'=>"",
  53.     'error'=>array(1=>'Vul uw toevoeging in. Spaties zijn niet toegestaan.',2=>"Please fill in your house number suffix. "),
  54.     'group' => 2,
  55.     'required' => false,
  56. );
  57. $pFields[] = array(
  58.     'name'=>'address',
  59.     'title'=>array(1=>'Wat is uw straatnaam?',2=>'What is your street name?'),
  60.     'type'=>'text',
  61.     'note'=>array(1=>'Indien gevonden hebben wij dit al voor u ingevuld.',2=>'If found we have filled this in already.'),
  62.     'pattern'=>"^[0-9a-zA-Z\.\- ']+$",
  63.     '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.'),
  64.     'group' => 2,
  65.     'required' => true,
  66. );
  67. $pFields[] = array(
  68.     'name'=>'city',
  69.     'title'=>array(1=>'Wat is uw plaatsnaam?',2=>'What city do you live in?'),
  70.     'type'=>'text',
  71.     'note'=>array(1=>'Indien gevonden hebben wij dit al voor u ingevuld.',2=>'If found we have filled this in already.'),
  72.     'pattern'=>"^[a-zA-Z\.\- ]+$",
  73.     '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.'),
  74.     'group' => 2,
  75.     'required' => true,
  76. );
  77. $pFields[] = array(
  78.     'name'=>'country',
  79.     'title'=>array(1=>'Wat is uw land?',2=>'What country do you live in?'),
  80.     'type'=>'select',
  81.     'note'=>array(1=>'',2=>''),
  82.     'pattern'=>"",
  83.     '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.'),
  84.     'group' => 2,
  85.     'required' => true,
  86.     'options' => \Symfony\Component\Intl\Intl::getRegionBundle()->getCountryNames(),
  87. );
  88. $pFields[] = array(
  89.     'name'=>'phone',
  90.     'title'=>array(1=>'Wat is uw telefoonnummer?',2=>'What is your phone number?'),
  91.     'type'=>'text',
  92.     'note'=>array(1=>'',2=>''),
  93.     //'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}))',
  94.     'pattern' => '',
  95.     'error'=>array(1=>'Vul uw telefoonnummer in.',2=>'Please fill in your phone number.'),
  96.     'group' => 3,
  97.     'required' => true,
  98. );
  99. $pFields[] = array(
  100.     'name'=>'email',
  101.     'title'=>array(1=>'Wat is uw emailadres?',2=>'What is your e-mail adress?'),
  102.     'type'=>'text',
  103.     'note'=>array(1=>'',2=>''),
  104.     'pattern'=>"^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,10}$",
  105.     'error'=>array(1=>'Vul uw emailadres in.',2=>'Please fill in your e-mail address.'),
  106.     'group' => 3,
  107.     'required' => true,
  108.     'transform'=>'lowercase',
  109. );