'grid' => 12,
'req' => false
];
+$referenceReq = false;
+$nameHdr = [
+ 'type' => 'static',
+ 'label' => 'Name',
+ 'grid' => 3,
+ 'req' => $referenceReq
+];
+$addressHdr = [
+ 'type' => 'static',
+ 'label' => 'Address and Telephone',
+ 'grid' => 3,
+ 'req' => $referenceReq
+];
+$relationshipHdr = [
+ 'type' => 'static',
+ 'label' => 'Relationship',
+ 'grid' => 3,
+ 'req' => $referenceReq
+];
+$yearHdr = [
+ 'type' => 'static',
+ 'label' => 'Years Acquainted',
+ 'grid' => 3,
+ 'req' => $referenceReq
+];
+for ($i = 1; $i <= 3; ++$i) {
+ $referenceReq = false;
+ ${'name'.$i} = [
+ 'type' => 'text',
+ 'name' => 'name' . $i,
+ 'label' => '',
+ 'grid' => 3,
+ 'req' => $referenceReq,
+ 'hdr' => $nameHdr
+ ];
+ ${'address'.$i} = [
+ 'type' => 'text',
+ 'name' => 'address' . $i,
+ 'label' => '',
+ 'grid' => 3,
+ 'req' => $referenceReq,
+ 'hdr' => $addressHdr
+ ];
+ ${'relationship'.$i} = [
+ 'type' => 'text',
+ 'name' => 'relationship' . $i,
+ 'label' => '',
+ 'grid' => 3,
+ 'req' => $referenceReq,
+ 'hdr' => $relationshipHdr
+ ];
+ ${'year'.$i} = [
+ 'type' => 'text',
+ 'name' => 'years' . $i,
+ 'label' => '',
+ 'grid' => 3,
+ 'req' => $referenceReq,
+ 'hdr' => $yearHdr
+ ];
+}
$form = [
['type' => 'header', 'label' => ''],
[$why_do_you_want_to_work_for_staffords],
[$emp_3_super],
[$emp_3_reason],
['type' => 'header', 'label' => ''],
+
+ ['type' => 'header', 'label' => 'References'],
+ [$nameHdr, $addressHdr, $relationshipHdr, $yearHdr],
+ [$name1, $address1, $relationship1, $year1],
+ ['type' => 'header', 'label' => ''],
+ [$nameHdr, $addressHdr, $relationshipHdr, $yearHdr],
+ [$name2, $address2, $relationship2, $year2],
+ ['type' => 'header', 'label' => ''],
+ [$nameHdr, $addressHdr, $relationshipHdr, $yearHdr],
+ [$name3, $address3, $relationship3, $year3],
+
+ ['type' => 'header', 'label' => 'Resume Upload'],
[$resume_file],
['type' => 'header', 'label' => ''],
[$additional_comments]
<style>
- div.static {
- text-align:left;
- padding-top: 5px;
- }
- .row.content ul.glm-emp-forms-ul {
- columns: 1;
- -moz-columns: 1;
- -webkit-columns: 1;
- margin-left: auto;
- margin-right: auto;
- padding-left: 20px;
- }
- input[type="checkbox"] {
- margin-top: 10px;
- }
+ div.static {text-align:left;padding-top: 5px;}
+ .row.content ul.glm-emp-forms-ul {columns: 1;-moz-columns: 1;-webkit-columns: 1;margin-left:auto;margin-right:auto;padding-left: 20px;}
+ input[type="checkbox"] {margin-top: 10px; }
.row h4 {padding-top: 0;}
+ #staffords-app-form-wrap input[type=radio]+label {margin-left:0;}
</style>
-<div class="row">
+<div class="row" id="staffords-app-form-wrap">
<div class="small-12 columns">
<h1><?php if(isset($formTitle)) {echo $formTitle;}?></h1>
<form method="post" action="<?php echo $formAction;?>" enctype="multipart/form-data">
<?php foreach($row as $field) :?>
<div class="small-12 medium-<?php echo $field['grid'];?> columns">
<label<?php if (isset($field['req']) && $field['req']):?> class="error"<?php endif;?>>
- <?php if(isset($field['label'])) { echo $field['label'];}?>
+ <?php if ( isset( $field['label'] ) ) {
+ if ( $field['type'] == 'static' ) {
+ echo '<span class="show-for-medium-up">' . $field['label'] . '</span>';
+ } else {
+ echo $field['label'];
+ }
+ if ( $field['label'] == '' && $field ['hdr'] ) {
+ echo '<span class="show-for-small-only">' . $field['hdr']['label'] . '</span>';
+ }
+ }?>
</label>
<?php switch($field['type']) :
case 'text':?>