Ejemplo n.º 1
0
 : <?php 
    echo isset($termination_data['terminate_date']) ? erp_format_date($termination_data['terminate_date']) : '';
    ?>
</p>
            <p><?php 
    _e('Termination Type', 'wp-erp');
    ?>
 : <?php 
    echo isset($termination_data['termination_type']) ? erp_hr_get_terminate_type($termination_data['termination_type']) : '';
    ?>
</p>
            <p><?php 
    _e('Termination Reason', 'wp-erp');
    ?>
 : <?php 
    echo isset($termination_data['termination_reason']) ? erp_hr_get_terminate_reason($termination_data['termination_reason']) : '';
    ?>
</p>
            <p><?php 
    _e('Eligible for Hire', 'wp-erp');
    ?>
 : <?php 
    echo isset($termination_data['eligible_for_rehire']) ? erp_hr_get_terminate_rehire_options($termination_data['eligible_for_rehire']) : '';
    ?>
</p>

            <?php 
    if (current_user_can('erp_edit_employee', $employee->id)) {
        ?>
                <a class="button button-secondary erp-hide-print" id="erp-employee-terminate" href="#" data-id="<?php 
        echo $employee->id;
Ejemplo n.º 2
0
<div class="terminate-form-wrap">
    <div class="row">
        <?php 
erp_html_form_input(array('label' => __('Termination Date', 'wp-erp'), 'name' => 'terminate_date', 'value' => '{{data.terminate_date}}', 'required' => true, 'class' => 'erp-date-field'));
?>
    </div>

    <div class="row" data-selected="{{ data.termination_type }}">
        <?php 
erp_html_form_input(array('label' => __('Termination Type', 'wp-erp'), 'name' => 'termination_type', 'value' => '', 'class' => 'erp-hrm-select2', 'type' => 'select', 'required' => true, 'id' => 'termination_type', 'options' => array('' => __('- Select -', 'wp-erp')) + erp_hr_get_terminate_type()));
?>
    </div>

    <div class="row" data-selected="{{ data.termination_reason }}">
        <?php 
erp_html_form_input(array('label' => __('Termination Reason', 'wp-erp'), 'name' => 'termination_reason', 'value' => '', 'class' => 'erp-hrm-select2', 'required' => true, 'type' => 'select', 'id' => 'termination_reason', 'options' => array('' => __('- Select -', 'wp-erp')) + erp_hr_get_terminate_reason()));
?>
    </div>

    <div class="row" data-selected="{{ data.eligible_for_rehire }}">
        <?php 
erp_html_form_input(array('label' => __('Eligible for Rehire', 'wp-erp'), 'name' => 'eligible_for_rehire', 'value' => '', 'class' => 'erp-hrm-select2', 'required' => true, 'type' => 'select', 'id' => 'eligible_for_rehire', 'options' => array('' => __('- Select -', 'wp-erp')) + erp_hr_get_terminate_rehire_options()));
?>
    </div>

    <?php 
wp_nonce_field('employee_update_terminate');
?>
    <input type="hidden" name="action" id="employee-terminate-action" value="erp-hr-emp-update-terminate-reason">
    <input type="hidden" name="employee_id" id="emp-id" value="<?php 
echo $employee_id;