<?php
if (!defined('ABSPATH'))
    die('Restricted Access');
/**
* @param wp-job-portal Form -field
*/
?>
    <div class="wpjobportal-form-wrapper">
        <div class="wpjobportal-form-title">
            <?php echo esc_html(__('Title', 'wp-job-portal')); ?>
            <span style="color: red;" >*</span>
        </div>
        <div class="wpjobportal-form-value">
            <?php echo wp_kses(WPJOBPORTALformfield::text('title', isset(wpjobportal::$_data[0]->title) ? wpjobportal::wpjobportal_getVariableValue(wpjobportal::$_data[0]->title) : '', array('class' => 'inputbox one wpjobportal-form-input-field', 'data-validation' => 'required')),WPJOBPORTAL_ALLOWED_TAGS) ?>
        </div>
    </div>
    <div class="wpjobportal-form-wrapper">
        <div class="wpjobportal-form-title">
            <?php echo esc_html(__('Published', 'wp-job-portal')); ?>
        </div>
        <div class="wpjobportal-form-value">
            <?php echo wp_kses(WPJOBPORTALformfield::radiobutton('status', array('1' => esc_html(__('Yes', 'wp-job-portal')), '0' => esc_html(__('No', 'wp-job-portal'))), isset(wpjobportal::$_data[0]->status) ? wpjobportal::$_data[0]->status : 1, array('class' => 'radiobutton')),WPJOBPORTAL_ALLOWED_TAGS); ?>
        </div>
    </div>
    <div class="wpjobportal-form-wrapper">
        <div class="wpjobportal-form-title">
            <?php echo esc_html(__('Default', 'wp-job-portal')); ?>
        </div>
        <div class="wpjobportal-form-value">
            <?php echo wp_kses(WPJOBPORTALformfield::radiobutton('isdefault', array('1' => esc_html(__('Yes', 'wp-job-portal')), '0' => esc_html(__('No', 'wp-job-portal'))), isset(wpjobportal::$_data[0]->isdefault) ? wpjobportal::$_data[0]->isdefault : 0, array('class' => 'radiobutton')),WPJOBPORTAL_ALLOWED_TAGS); ?>
        </div>
    </div>
    <?php echo wp_kses(WPJOBPORTALformfield::hidden('id', isset(wpjobportal::$_data[0]->id) ? wpjobportal::$_data[0]->id : ''),WPJOBPORTAL_ALLOWED_TAGS); ?>
    <?php echo wp_kses(WPJOBPORTALformfield::hidden('ordering', isset(wpjobportal::$_data[0]->ordering) ? wpjobportal::$_data[0]->ordering : '' ),WPJOBPORTAL_ALLOWED_TAGS); ?>
    <?php echo wp_kses(WPJOBPORTALformfield::hidden('wpjobportal_isdefault', isset(wpjobportal::$_data[0]->isdefault) ? wpjobportal::$_data[0]->isdefault : ''),WPJOBPORTAL_ALLOWED_TAGS); ?>
    <?php echo wp_kses(WPJOBPORTALformfield::hidden('action', 'careerlevel_savecareerlevel'),WPJOBPORTAL_ALLOWED_TAGS); ?>
    <?php echo wp_kses(WPJOBPORTALformfield::hidden('form_request', 'wpjobportal'),WPJOBPORTAL_ALLOWED_TAGS); ?>
    <?php echo wp_kses(WPJOBPORTALformfield::hidden('_wpnonce', esc_html(wp_create_nonce('wpjobportal_careerlevel_nonce'))),WPJOBPORTAL_ALLOWED_TAGS); ?>
    <div class="wpjobportal-form-button">
        <a id="form-cancel-button" class="wpjobportal-form-cancel-btn" href="<?php echo esc_url_raw(admin_url('admin.php?page=wpjobportal_careerlevel')); ?>" title="<?php echo esc_attr(__('cancel', 'wp-job-portal')); ?>">
            <?php echo esc_html(__('Cancel', 'wp-job-portal')); ?>
        </a>
        <?php echo wp_kses(WPJOBPORTALformfield::submitbutton('save', esc_html(__('Save','wp-job-portal')) .' '. esc_html(__('Career Level', 'wp-job-portal')), array('class' => 'button wpjobportal-form-save-btn')),WPJOBPORTAL_ALLOWED_TAGS); ?>
    </div>
