<?php $static_displayvalue = empty($attachment->filename_original) ? '' : anchor($attachment->url, $attachment->filename_original, array('target' => '_blank')) . nbs(2); echo form_open_multipart(base_url() . 'building/job_site_attachments/process_edit/', array('id' => 'job_site_attachment_edit_form', 'class' => 'form-horizontal')); echo form_hidden('id', $job_site_attachment_id); echo form_hidden('job_site_id', $job_site_id); print_form_container_open(); print_input_element(array('label' => 'Description', 'name' => 'description', 'size' => 30, 'required' => false)); print_file_element(array('label' => 'PDF Attachment', 'name' => 'attachment', 'render_static' => !has_capability('building:viewjobsites') || !empty($attachment->filename_original), 'show' => true, 'static_displayvalue' => $static_displayvalue, 'required' => false)); print_submit_container_open(); print_submit_button(); print_cancel_button(base_url() . 'building/job_site_attachments/browse/html/' . $job_site_id); print_submit_container_close(); print_form_container_close(); echo form_close();
<?php echo form_open_multipart(base_url() . 'miniant/servicequotes/servicequote/process_client_response', array('id' => 'client_response_edit_form', 'class' => 'form-horizontal')); echo '<div class="">'; echo form_hidden('servicequote_id', $servicequote_id); print_form_container_open(); print_dropdown_element(array('label' => 'Response', 'name' => 'client_response', 'required' => true, 'render_static' => $review_only, 'options' => array('On hold' => 'On hold', 'Accepted' => 'Accepted', 'Rejected' => 'Rejected'))); print_textarea_element(array('label' => 'Notes', 'name' => 'client_response_notes', 'render_static' => $review_only, 'required' => false)); $static_displayvalue = empty($attachment->filename_original) ? '' : anchor($attachment->url, $attachment->filename_original, array('target' => '_blank')) . nbs(2); $static_displayvalue .= anchor(base_url() . 'miniant/servicequotes/servicequote/delete_attachment/' . $servicequote_id, '<i class="fa fa-trash-o" onclick="return deletethis();" title="Delete this attachment?"></i>'); print_file_element(array('label' => 'Attachment', 'name' => 'attachment', 'show' => true, 'render_static' => !empty($attachment->filename_original) || $review_only, 'static_displayvalue' => $static_displayvalue, 'required' => false)); ?> <?php if ($review_only) { ?> <a href="<?php echo base_url(); ?> miniant/servicequotes/servicequote/prepare_client_quote/<?php echo $servicequote_id; ?> /1" class="btn btn-primary"><i class="fa fa-step-backward"></i>Previous</a> <a href="<?php echo base_url(); ?> miniant/servicequotes/servicequote/record_received_parts/<?php echo $servicequote_id; ?> /1" class="btn btn-primary">Next <i class="fa fa-step-forward"></i></a> <?php
print_static_form_element('Appointment date', '<span id="appointment_date">'.$order_data['appointment_date'].'</span>'); } if (has_capability('orders:allocateorders') && !$locked) { print_dropdown_element('technician_id', 'Assigned technician', $dropdowns['technicians'], false); } else if (!empty($order_id) || $locked) { print_static_form_element('Assigned technician', '<span id="technician_name" data-id="'.$order_data['technician_id'].'">'.$order_data['technician_first_name'] . ' ' . $order_data['technician_last_name'].'</span>'); } */ if ($is_maintenance || empty($order_id)) { $params = array('label' => 'Start date', 'name' => 'maintenance_preferred_start_date', 'render_static' => $locked || !has_capability('orders:editpreferredstartdate'), 'show' => true, 'static_value' => $order_data['preferred_start_date'], 'static_displayvalue' => $order_data['preferred_start_date'], 'required' => true); if (empty($order_id)) { // $params['disabledunless'] = array('order_type_id' => $this->order_model->get_type_id('Maintenance')); } print_date_element($params); } else { if (!$is_maintenance || empty($order_data)) { $params = array('label' => 'Preferred job date', 'name' => 'preferred_start_date', 'render_static' => $locked || !has_capability('orders:editpreferredstartdate'), 'show' => true, 'static_value' => $order_data['preferred_start_date'], 'static_displayvalue' => $order_data['preferred_start_date']); if (empty($order_id)) { $params['disabledif'] = array('order_type_id' => $this->order_model->get_type_id('Maintenance')); } print_date_element($params); } } print_input_element(array('label' => 'Customer\'s PO number', 'name' => 'customer_po_number', 'render_static' => $locked || !has_capability('orders:editcustomerponumber'), 'show' => true, 'static_value' => @$order_data['customer_po_number'])); $attachment = $order_data['attachment']; $static_displayvalue = empty($attachment->filename_original) ? '' : anchor($attachment->url, $attachment->filename_original, array('target' => '_blank')) . nbs(2); $static_displayvalue .= anchor(base_url() . 'miniant/orders/order/delete_attachment/' . $order_id, '<i class="fa fa-trash-o" onclick="return deletethis();" title="Delete this attachment?"></i>'); print_file_element(array('label' => 'Attachment', 'name' => 'attachment', 'render_static' => $locked || !has_capability('orders:addattachment') || !empty($order_data['attachment']->filename_original), 'show' => true, 'static_displayvalue' => $static_displayvalue, 'required' => false)); print_tabbed_form_navbuttons(); echo '</div>';