${'state'.$i} = [
'type' => 'text',
'name' => 'state' . $i,
- 'label' => '', //'State',
+ 'label' => '',
'grid' => 1,
'req' => $licenseReq
];
${'license'.$i} = [
'type' => 'text',
'name' => 'license' . $i,
- 'label' => '', //'License No.',
+ 'label' => '',
'grid' => 4,
'req' => $licenseReq
];
${'class'.$i} = [
'type' => 'text',
'name' => 'class' . $i,
- 'label' => '', //'Class',
+ 'label' => '',
'grid' => 1,
'req' => $licenseReq
];
${'endorsement'.$i} = [
'type' => 'text',
'name' => 'endorsement' . $i,
- 'label' => '', //'Endorsement(s)',
+ 'label' => '',
'grid' => 4,
'req' => $licenseReq
];
${'exp_date'.$i} = [
'type' => 'text',
'name' => 'exp_date' . $i,
- 'label' => '', //'Expiration Date',
+ 'label' => '',
'grid' => 2,
'req' => $licenseReq
];
'type' => 'radio',
'name' => 'disqualified_license',
'label' => 'C. Have you ever been disqualified for violations of the Federal'
- . 'Motor Carrier Safety Regulations?',
+ . ' Motor Carrier Safety Regulations?',
'grid' => 4,
'req' => true,
'opts' => [[
for ($i = 1; $i <= 4; ++$i) {
${'eq_class'.$i} = [
'type' => 'static',
- 'label' => '', //'Class of Equipment',
+ 'label' => '',
'value' => '<div class="static">'.$titles[$i].'</div>',
'grid' => 3
];
${'eq_type'.$i} = [
'type' => 'text',
'name' => 'eq_type' . $i,
- 'label' => '', //'Type of Equipment (Van, Tank, Flat, etc.)',
+ 'label' => '',
'grid' => 4,
'req' => false
];
${'eq_dates_from'.$i} = [
'type' => 'text',
'name' => 'eq_dates_from' . $i,
- 'label' => '', //'From',
+ 'label' => '',
'grid' => 1,
'req' => false
];
${'eq_dates_to'.$i} = [
'type' => 'text',
'name' => 'eq_dates_to' . $i,
- 'label' => '', //'To',
+ 'label' => '',
'grid' => 1,
'req' => false
];
${'eq_approx_miles'.$i} = [
'type' => 'text',
'name' => 'eq_approx_miles' . $i,
- 'label' => '', //'Approximate total Miles',
+ 'label' => '',
'grid' => 3,
'req' => false
];
if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'view') {
add_action('admin_enqueue_scripts', 'glm_load_view_style');
}
-if (isset($_REQUEST['post_type']) && $_REQUEST['post_type'] == GLM_EMP_POST_TYPE) {
+if ( isset($_REQUEST['post_type'])
+ && $_REQUEST['post_type'] == GLM_EMP_POST_TYPE
+ && !isset($_REQUEST['page'])
+) {
add_action('admin_enqueue_scripts', 'glm_load_edit_style');
}