<div class="panel panel-primary"> <div class="panel-heading"><?php echo get_title($title_options); ?> </div> <?php echo form_open_multipart(base_url() . 'miniant/orders/order/process_edit', array('id' => 'order_edit_form', 'class' => 'form-horizontal')); print_hidden_element(array('name' => 'order_id', 'default_value' => $order_id)); echo '<div id="order_panel" class="tab-container panel-body"> <div id="tab_overlay"></div>'; print_form_container_open(); $tab_list = array(); if (has_capability('orders:viewclientinfo')) { $tab_list[] = array('id' => 'account_details', 'label' => 'Account Details', 'subtabs' => array(array('id' => 'billing_contact', 'label' => 'Billing Contact'), array('id' => 'site_contact', 'label' => 'Job Site Contact'), array('id' => 'site_address', 'label' => 'Job Site Address'))); } $tab_list[] = array('id' => 'internal_info', 'label' => 'Info (Job details)'); if (has_capability('orders:viewclientinfo')) { $tab_list[] = array('id' => 'deposit', 'label' => 'Deposit'); } if (!empty($order_id)) { $tab_list[] = array('id' => 'order_units', 'label' => 'Equipment'); $tab_list[] = array('id' => 'messages_order_' . $order_id, 'label' => 'Notes'); } setup_tabbed_form($tab_list); print_tab_list(); /** * TODO implement a multi-select * if (has_capability('orders:changestatus')) { print_dropdown_element('status_id', 'Status', $dropdowns['statuses'], true); }
<?php echo form_open(base_url() . 'miniant/servicequotes/servicequote/approve_final_suppliers'); print_hidden_element(array('name' => 'servicequote_id', 'default_value' => $servicequote_id)); ?> <table class="table table-striped table-hover"> <thead> <tr> <th colspan="4" style="text-align: center;">Parts</th> <?php foreach ($suppliers as $supplier) { ?> <th colspan="3" style="text-align: center;"><?php echo $supplier['supplier_data']->name; ?> </th> <?php } ?> <th rowspan="2">Selected supplier</th> </tr> <tr> <th>Qty</th> <th>Part type</th> <th>Model</th> <th>Other info</th> <?php foreach ($suppliers as $supplier) { ?> <th style="border-left: 1px solid #CCC">Unit cost</th><th>Total cost</th><th style="border-right: 1px solid #CCC">Availability</th> <?php
<div class="row"> <div class="col-md-12"> <div class="panel panel-success"> <?php $parts_title_options['title'] = $this->diagnostic_model->get_reference_id($unit->diagnostic->id); $parts_title_options['extra'] = '<a class="btn btn-primary unsaved-warning" href="' . base_url() . 'miniant/stages/diagnostic_report/index/' . $unit->assignment_id . '">Edit issues</a>'; ?> <div class="panel-heading"><?php echo get_title($parts_title_options); ?> </div> <div class="panel-body"> <?php echo form_open(base_url() . 'miniant/stages/required_parts/process', array('id' => 'required_parts_form', 'class' => 'form-horizontal')); print_hidden_element(array('name' => 'id', 'default_value' => $unit->diagnostic->id)); print_hidden_element(array('name' => 'sq_id', 'default_value' => $sq_id)); ?> <table class="table table-condensed table-striped table-responsive table-bordered"> <thead> <tr><th>Required part</th><th>Issue</th><th>Qty</th><th>Faulty part model number</th><th>Required info</th><th>Description of required info</th></tr> </thead> <tbody> <?php foreach ($unit->required_parts as $part) { ?> <tr> <td><?php echo $part->name; ?> </td>
<div class="panel panel-primary"> <div class="panel-heading"><?php echo get_title($title_options); ?> </div> <?php echo form_open(base_url() . 'miniant/orders/documents/process_edit/', array('id' => 'order_document_edit_form', 'class' => 'form-horizontal')); ?> <div class="panel-body"> <?php print_form_container_open(); print_hidden_element(array('name' => 'order_id', 'default_value' => $order_id)); print_hidden_element(array('name' => 'invoice_tenancy_id', 'default_value' => $invoice_tenancy->id)); print_form_section_heading('Technician time adjustment'); print_input_element(array('label' => 'System time', 'name' => 'system_time', 'required' => true, 'render_static' => true, 'static_displayvalue' => get_hours_and_minutes_from_seconds($invoice_tenancy->system_time) . ' hours')); $corrected_time_value = empty($invoice_tenancy->technician_time) ? round($invoice_tenancy->system_time / 60 / 60, 2) : round($invoice_tenancy->technician_time / 60 / 60, 2); print_dropdown_element(array('label' => 'Corrected time (hours)', 'name' => 'technician_time_hours', 'options' => range(0, 64), 'required' => true)); print_dropdown_element(array('label' => 'Corrected time (minutes)', 'name' => 'technician_time_minutes', 'options' => array(0 => 0, 15 => 15, 30 => 30, 45 => 45), 'required' => true)); print_form_section_heading('DOWD codes'); foreach ($abbreviations as $abbreviation) { print_checkbox_element(array('label' => $abbreviation->abbreviation, 'name' => 'abbreviations[]', 'value' => $abbreviation->id, 'default_value' => $abbreviation->selected, 'info_text' => $abbreviation->explanation)); } print_submit_container_open(); print_submit_button('Save and complete review'); print_cancel_button(base_url() . 'miniant/orders/documents/index/html/' . $order_id); print_submit_container_close(); print_form_container_close(); ?> <?php echo '</div>';
* http://vizsage.com/license/Vizsage-License-BY-NC-SA.html * and the handy reference for understanding the full license at * http://vizsage.com/license/Vizsage-Deed-BY-NC-SA.html * * Unless required by applicable law or agreed to in writing, any * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific * language governing permissions and limitations under the License. */ ?> <div id="detailsmessage"></div> <?=form_open($form_action, array('id' => 'userform', 'class' => 'form-horizontal', 'role' => 'form'))?> <div class="panel panel-info"> <?php print_hidden_element(array('name' => 'user_id'))?> <?php print_hidden_element(array('name' => 'action'))?> <div class="panel-heading"><?=get_title($details_title_options)?></div> <div id="details" class="panel-body"> <div id="detailsmessage"></div> <?php if (!empty($user_id)) print_static_form_element('ID', $user_id); print_input_element(array('name' => 'first_name', 'label' => 'First Name', 'required' => true)); print_input_element(array('name' => 'last_name', 'label' => 'Last Name', 'required' => true)); $back_link = base_url()."users/user"; if ($type == 'staff') { print_input_element(array('name' => 'username', 'label' =>'Username')); // Only show password if admin has donanything for users if (empty($user_id) || (has_capability('site:doanything') || ($this->session->userdata('user_id') == $user_id && has_capability('users:editownaccount')))) { print_password_element(array('label' => 'Password', 'name' => 'password', 'required' => false));
<?php echo '<div id="internal_info" class="' . get_tab_panel_class() . '">'; print_datetime_element(array('label' => 'Call date', 'name' => 'call_date', 'render_static' => $locked || !has_capability('orders:editcalldate'), 'show' => true, 'static_value' => $order_data['call_date'], 'static_displayvalue' => $order_data['call_date'])); print_dropdown_element(array('label' => 'Job type', 'name' => 'order_type_id', 'render_static' => $locked || !has_capability('orders:editordertype') || !empty($order_data['order_type_id']), 'show' => true, 'static_value' => @$order_data['order_type'], 'static_displayvalue' => $dropdowns['order_types'][$order_data['order_type_id']], 'options' => $dropdowns['order_types'], 'required' => true)); if (!empty($order_data['order_type_id'])) { print_hidden_element(array('name' => 'order_type_id', 'default_value' => $order_data['order_type_id'])); if ($is_installation) { print_input_element(array('label' => 'Quotation number', 'name' => 'installation_quotation_number', 'render_static' => $locked, 'show' => true, 'static_value' => @$order_data['installation_quotation_number'], 'required' => true)); } } else { print_input_element(array('label' => 'Quotation number', 'name' => 'installation_quotation_number', 'render_static' => $locked, 'show' => true, 'static_value' => @$order_data['installation_quotation_number'], 'disabledunless' => array('order_type_id' => $this->order_model->get_type_id('Installation')), 'required' => true)); } /* if (has_capability('orders:setappointmentdate') && !$locked) { print_datetime_element('Appointment date', array('name' => 'appointment_date')); } else if (!empty($order_id) || $locked) { 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')); }
$parts_title_options['title'] = $this->diagnostic_model->get_reference_id($unit->diagnostic->id); $parts_title_options['extra'] = '<a class="btn btn-primary unsaved-warning" href="' . base_url() . 'miniant/stages/diagnostic_report/index/' . $unit->assignment_id . '">Edit issues</a>'; } ?> <div class="panel-heading"><?php echo get_title($parts_title_options); ?> </div> <div class="panel-body"> <?php echo form_open(base_url() . 'miniant/stages/parts_used/process', array('id' => 'parts_used_form', 'class' => 'form-horizontal')); if ($order_type != 'Installation' && $order_type != 'Repair') { print_hidden_element(array('name' => 'diagnostic_id', 'default_value' => $unit->diagnostic->id)); } print_hidden_element(array('name' => 'assignment_id', 'default_value' => $unit->assignment_id)); print_hidden_element(array('name' => 'type', 'default_value' => $type)); ?> <table class="table table-condensed table-striped table-responsive table-bordered"> <thead> <tr><th>Part used</th><th>Qty/Notes</th><th>PO Number</th><th>Origin</th><th class="actions">Actions</th></tr> </thead> <tbody> <?php foreach ($unit->required_parts as $part) { ?> <tr> <td><?php echo $part->part_name; ?> </td> <td><?php
<div class="panel panel-primary"> <div class="panel-heading"><?php echo get_title($title_options); ?> </div> <?php echo form_open_multipart(base_url() . 'miniant/maintenance_contracts/process_edit', array('id' => 'maintenance_contract_edit_form', 'class' => 'form-horizontal')); echo '<div id="maintenance_contract_panel" class="tab-container panel-body"> <div id="tab_overlay"></div>'; print_hidden_element(array('name' => 'maintenance_contract_id', 'default_value' => $maintenance_contract_id)); print_form_container_open(); $tab_list = array(); if (has_capability('maintenance_contracts:viewcontracts')) { $tab_list[] = array('id' => 'account_details', 'label' => 'Account Details', 'subtabs' => array(array('id' => 'billing_contact', 'label' => 'Billing Contact'), array('id' => 'site_contact', 'label' => 'Job Site Contact'), array('id' => 'site_address', 'label' => 'Job Site Address'))); } $tab_list[] = array('id' => 'internal_info', 'label' => 'Info (Maintenance contract details)'); if (!empty($maintenance_contract_id)) { $tab_list[] = array('id' => 'maintenance_contract_units', 'label' => 'Equipment'); $tab_list[] = array('id' => 'messages_maintenance_contract_' . $maintenance_contract_id, 'label' => 'Notes'); } setup_tabbed_form($tab_list); print_tab_list(); $this->load->view('maintenance_contract/account_details.php', compact('locked', 'maintenance_contract_data', 'dropdowns')); $this->load->view('maintenance_contract/info.php', compact('locked', 'maintenance_contract_data', 'dropdowns')); if (!empty($maintenance_contract_id)) { $this->load->view('maintenance_contract/units', compact('maintenance_contract_id')); } if (has_capability('maintenance_contracts:viewcontracts') && !empty($maintenance_contract_id)) { $display = empty($maintenance_contract_id) ? ' style="display: none;" ' : ''; $this->load->view('messages', array('display' => $display, 'document_type' => 'maintenance_contract', 'document_id' => $maintenance_contract_id, 'in_tabbed_form' => true)); }
"><?php echo $uncompleted_stage->stage_label; ?> </a></p> <?php } else { ?> <?php echo form_open(base_url() . 'miniant/stages/order_dowd/process/', array('id' => 'order_dowd_edit_form', 'class' => 'order_dowd_edit_form form-horizontal')); ?> <div> <?php $default_dowd_id = empty($order->dowd_id) ? $dowd->id : $order->dowd_id; $default_dowd_text = empty($order->dowd_text) ? $dowd->description : $order->dowd_text; print_hidden_element(array('name' => 'order_id', 'default_value' => $order->id)); print_hidden_element(array('name' => 'assignment_id', 'default_value' => $assignment->id)); print_dropdown_element(array('name' => "dowd_id", 'label' => 'DOWD template', 'classes' => array('dowd_template'), 'options' => $dowds_dropdown, 'default_value' => $default_dowd_id, 'extra_html' => array('data-order_id' => $order->id), 'required' => true)); print_textarea_element(array('placeholder' => 'Description', 'label' => 'Description', 'name' => "dowd_text", 'default_value' => $default_dowd_text, 'cols' => 55, 'rows' => 5, 'extra_html' => array('data-order_id' => $order->id), 'required' => true)); print_submit_container_open(); echo form_submit('button', 'Save DOWD', 'id="submit_button" class="btn btn-primary"'); print_form_container_close(); echo '</div>'; echo form_close(); ?> <?php } ?> </div> </div>
foreach ($unit->diagnostic_issues as $key => $issue) { ?> <tr> <td><?php echo $issue->part_type_name; ?> </td> <td><?php echo $issue->issue_type_name; ?> </td> <td><?php echo $dowds_dropdown[$issue->dowd_id]; ?> <?php print_hidden_element(array('name' => 'dowd_id[' . $issue->id . ']', 'default_value' => $issue->dowd_id)); ?> </td> <td> <?php print_textarea_element(array('placeholder' => 'Description', 'popover' => true, 'label' => 'Description', 'name' => "dowd_text[" . $issue->id . "]", 'default_value' => $issue->dowd_text, 'cols' => 25, 'rows' => 5, 'extra_html' => array('data-dowd_id' => $issue->dowd_id, 'style' => "margin-left: 15px;"), 'required' => true)); ?> </td> </tr> <?php } ?> <?php } ?> </tbody>
<div class="panel panel-primary"> <div class="panel-heading"><?php echo get_title($title_options); ?> </div> <?php echo form_open(base_url() . 'miniant/miniant_accounts/process_edit/', array('id' => 'account_edit_form', 'class' => 'form-horizontal')); echo '<div class="panel-body">'; echo form_hidden('account_id', $account_id); print_form_container_open(); print_input_element(array('label' => 'Billing Name', 'name' => 'name', 'required' => true, 'render_static' => !has_capability('site:editaccounts'))); print_input_element(array('label' => 'ABN', 'name' => 'abn', 'required' => false, 'render_static' => !has_capability('site:editaccounts'))); print_dropdown_element(array('label' => 'Credit hold', 'name' => 'cc_hold', 'required' => false, 'options' => array(0 => 'No', 1 => 'Yes'), 'info_text' => 'If a credit hold is placed on this account, it will appear in red throughout Mini-Ant', 'render_static' => !has_capability('site:editaccounts'))); print_fieldset_open('Billing address'); print_hidden_element(array('name' => 'billing_address_id')); print_checkbox_element(array('label' => 'Is this a PO Box?', 'name' => 'billing_address_po_box_on', 'value' => 1, 'render_static' => !has_capability('site:editaccounts'))); print_input_element(array('label' => 'Unit', 'name' => 'billing_address_unit', 'required' => false, 'disabledif' => array('billing_address_po_box_on' => 1), 'render_static' => !has_capability('site:editaccounts'))); print_input_element(array('label' => 'Number', 'name' => 'billing_address_number', 'required' => true, 'disabledif' => array('billing_address_po_box_on' => 1), 'render_static' => !has_capability('site:editaccounts'))); print_input_element(array('label' => 'Street', 'name' => 'billing_address_street', 'required' => true, 'disabledif' => array('billing_address_po_box_on' => 1), 'render_static' => !has_capability('site:editaccounts'))); print_autocomplete_element(array('label' => 'Street type', 'name' => 'billing_address_street_type', 'options_url' => 'addresses/get_street_types', 'required' => true, 'id' => 'autocomplete_street_type', 'disabledif' => array('billing_address_po_box_on' => 1), 'render_static' => !has_capability('site:editaccounts'))); print_input_element(array('label' => 'PO Box', 'name' => 'billing_address_po_box', 'required' => true, 'disabledunless' => array('billing_address_po_box_on' => 1), 'render_static' => !has_capability('site:editaccounts'))); print_input_element(array('label' => 'City', 'name' => 'billing_address_city', 'required' => true, 'render_static' => !has_capability('site:editaccounts'))); print_input_element(array('label' => 'Post Code', 'name' => 'billing_address_postcode', 'required' => true, 'render_static' => !has_capability('site:editaccounts'))); print_fieldset_close(); if (has_capability('site:editaccounts')) { print_submit_container_open(); print_submit_button(); print_cancel_button(base_url() . 'miniant/miniant_accounts'); print_submit_container_close(); }