<a href="<?php echo module_file::link_generate(false, array('arguments' => array('job_id' => $job['job_id']), 'data' => array('job_id' => $job['job_id']))); ?> "><?php echo _l('View all %d files in this job', count($files)); ?> </a> <?php } else { echo _l("This job has %d files", count($files)); } echo '<br/>'; ?> <a href="<?php echo module_file::link_generate('new', array('arguments' => array('job_id' => $job['job_id']))); ?> "><?php _e('Add New File'); ?> </a> <?php $fieldset_data['elements']['files'] = array('title' => 'Files', 'fields' => array(ob_get_clean())); } echo module_form::generate_fieldset($fieldset_data); unset($fieldset_data); if (module_config::c('job_enable_description', 1)) { if (!module_job::can_i('edit', 'Jobs') && !$job['description']) { // no description, no ability to edit description, don't show anything. } else { // can edit description
<a href="<?php echo module_file::link_generate(false, array('arguments' => array('quote_id' => $quote['quote_id']), 'data' => array('quote_id' => $quote['quote_id']))); ?> "><?php echo _l('View all %d files in this quote', count($files)); ?> </a> <?php } else { echo _l("This quote has %d files", count($files)); } echo '<br/>'; ?> <a href="<?php echo module_file::link_generate('new', array('arguments' => array('quote_id' => $quote['quote_id']))); ?> "><?php _e('Add New File'); ?> </a> <?php $fieldset_data['elements']['files'] = array('title' => 'Files', 'fields' => array(ob_get_clean())); } echo module_form::generate_fieldset($fieldset_data); unset($fieldset_data); if (module_config::c('quote_enable_description', 1)) { if (!module_quote::can_i('edit', 'Quotes') && !$quote['description']) { // no description, no ability to edit description, don't show anything. } else { // can edit description