if (module_job::can_i('edit', 'Job Tasks')) { $task_editable = true; } else { $task_editable = false; } echo module_job::generate_task_preview($job_id, $job, $task_id, $task_data, $task_editable); } ?> </tbody> </table> <?php if ((int) $job_id > 0) { ?> <div id="job_summary"> <?php echo module_job::generate_job_summary($job_id, $job, $show_hours_summary); ?> </div> <?php } ?> </div> <?php $fieldset_data = array('heading' => $header, 'elements_before' => ob_get_clean()); echo module_form::generate_fieldset($fieldset_data); } // end can i view job tasks if (module_invoice::can_i('view', 'Invoices') && (int) $job_id > 0) { ?>
if (module_job::can_i('edit', 'Job Tasks')) { $task_editable = true; } else { $task_editable = false; } echo module_job::generate_task_preview($job_id, $job, $task_id, $task_data, $task_editable); } ?> </tbody> </table> <?php if ((int) $job_id > 0) { ?> <div id="job_summary"> <?php echo module_job::generate_job_summary($job_id, $job); ?> </div> <?php } ?> </mobile> <?php } // end can i view job tasks ?> <?php