unset($fieldset_data); } $form_actions = array('class' => 'action_bar action_bar_left', 'elements' => array(array('type' => 'save_button', 'name' => 'butt_save', 'onclick' => "\$('#form_redirect').val('" . module_job::link_open(false) . "');", 'value' => _l('Save and Return')), array('type' => 'save_button', 'name' => 'butt_save', 'value' => _l('Save Job')), array('ignore' => !((int) $job_id && module_job::can_i('delete', 'Jobs')), 'type' => 'delete_button', 'name' => 'butt_del', 'value' => _l('Delete')), array('type' => 'button', 'name' => 'cancel', 'value' => _l('Cancel'), 'class' => 'submit_button', 'onclick' => "window.location.href='" . module_job::link_open(false) . "';"))); echo module_form::generate_form_actions($form_actions); ?> </form> <?php if ($do_perm_finish_check) { // we call our permission check // render finish method here instead of in index.php // this allows job task edit permissions without job edit permissions. // HOPE THIS WORKS! :) module_security::render_page_finished(); } hook_handle_callback('layout_column_half', 2, '65'); ?> <?php if (module_config::c('job_ajax_tasks', 1)) { ?> <iframe name="job_task_ajax_submit" id="job_task_ajax_submit" src="about:blank" style="display:none; width:0; height:0;" frameborder="0"></iframe> <?php } ?>