</tr> <tr id="new_part_row" style="display: none"> <td><?php echo form_dropdown('part_type_id', $dropdowns['part_types']); echo form_hidden('part_id', null); ?> </td> <td><?php echo form_input(array('name' => 'quantity', 'placeholder' => 'Quantity')); ?> </td> <td class="actions" style="width: 220px"> <button class="btn btn-success btn-sm" type="button" id="save_new_part">Save Part/Labour</button> <button class="btn btn-warning btn-sm" type="button" id="cancel_new_part">Cancel</button> </td> </tr> </tbody> </table> </div> <?php print_fieldset_close(); echo "</div>"; print_submit_container_open(); print_submit_button(); print_cancel_button(base_url() . 'miniant/orders/order/edit/' . $order_id, 'Return to job #' . $order_id); print_submit_container_close(); print_form_container_close(); echo '</div>'; echo form_close(); echo '</div>'; echo '</div>';
* Contact nicolas <*****@*****.**> * * Licensed under the "Attribution-NonCommercial-ShareAlike" Vizsage * Public License (the "License"). You may not use this file except * in compliance with the License. Roughly speaking, non-commercial * users may share and modify this code, but must give credit and * share improvements. However, for proper details please * read the full License, available at * 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. */ echo form_open(base_url().'users/capability/process_edit/', array('id' => 'capability_edit_form', 'class' => 'form-horizontal')); echo form_hidden('capability_id', $capability_id); print_form_container_open(); print_input_element(array('name' => 'name', 'label' => 'Name', 'required' => true, 'size' => 50)); print_textarea_element(array('name' => 'description', 'cols' => 80, 'rows' => 6, 'label' => 'Description')); print_dropdown_element(array('name' => 'dependson', 'label' => 'Parent', 'required' => true, 'options' => $parent_caps)); print_submit_container_open(); print_submit_button(); print_cancel_button(base_url().'users/capability'); print_submit_container_close(); print_form_container_close(); echo form_close();
* Contact nicolas <*****@*****.**> * * Licensed under the "Attribution-NonCommercial-ShareAlike" Vizsage * Public License (the "License"). You may not use this file except * in compliance with the License. Roughly speaking, non-commercial * users may share and modify this code, but must give credit and * share improvements. However, for proper details please * read the full License, available at * 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. */ echo form_open(base_url().'users/role/process_edit/', array('id' => 'role_edit_form', 'class' => 'form-horizontal')); echo form_hidden('role_id', $role_id); print_form_container_open(); print_input_element(array('name' => 'name', 'label' => 'Name', 'required' => true, 'size' => 50)); print_textarea_element(array('name' => 'description', 'cols' => 80, 'rows' => 6, 'label' => 'Description')); print_dropdown_element(array('name' => 'parent_id', 'options' => $parent_ids, 'label' => 'Parent role')); print_submit_container_open(); print_submit_button(); print_cancel_button(base_url().'users/role'); print_submit_container_close(); print_form_container_close(); echo form_close();
<div class="panel panel-primary"> <div class="panel-heading"><?php echo get_title($title_options); ?> </div> <?php echo form_open(base_url() . 'miniant/brands/process_edit/', array('id' => 'brand_edit_form', 'class' => 'form-horizontal')); echo '<div class="panel-body">'; echo form_hidden('brand_id', $brand_id); print_form_container_open(); print_dropdown_element(array('name' => 'unit_type_id', 'label' => 'Equipment type', 'options' => $unit_types, 'required' => true, 'size' => 50)); print_input_element(array('name' => 'name', 'label' => 'Name', 'required' => true, 'size' => 50)); print_textarea_element(array('name' => 'description', 'cols' => 80, 'rows' => 6, 'label' => 'Description', 'required' => true)); print_submit_container_open(); print_submit_button(); print_cancel_button(base_url() . 'miniant/brands'); print_submit_container_close(); print_form_container_close(); echo '</div>'; echo form_close(); ?> </div> </div>
echo form_hidden('senior_technician_id', $assignment_data->order_senior_technician_id); print_form_container_open(); print_datetime_element(array('label' => 'Appointment date', 'name' => 'appointment_date', 'required' => true)); print_input_element(array('label' => 'Estimated duration (Mins)', 'name' => 'estimated_duration', 'required' => true)); print_multiselect_element(array('label' => 'Assigned technicians', 'name' => 'technician_id[]', 'required' => true, 'options' => $technicians, 'default_value' => $assigned_technicians)); print_dropdown_element(array('label' => 'Senior technician', 'name' => 'senior_technician_id', 'required' => true, 'default_value' => $senior_technician_id, 'options' => array())); /* print_dropdown_element(array( 'label' => 'Priority level', 'name' => 'priority_level_id', 'required' => true, 'options' => $priority_levels )); */ if (has_capability('assignments:editstatuses')) { print_multiselect_element(array('label' => 'Statuses', 'name' => 'status_id[]', 'required' => false, 'options' => $allstatuses, 'default_value' => $statuses, 'extra_html' => array('style' => "width: 500px; height: auto;"))); } print_submit_container_open(); print_submit_button(); print_cancel_button(base_url() . 'miniant/orders/schedule'); print_submit_container_close(); print_form_container_close(); if (has_capability('orders:editassignments')) { echo '<a href="' . base_url() . 'miniant/stages/assignment_details/index/' . $assignment_id . '" class="btn btn-primary">Review this assignment</a>'; } echo '</div>'; echo form_close(); ?> </div> </div>
<?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();
case 'radio': foreach ($options as $option_id => $option) { $params = array('name' => 'value', 'label' => $option, 'value' => $option_id, 'default_value' => false); if ((int) $setting->value == $option_id) { $params['checked'] = true; } print_radio_element($params); } break; case 'checkbox': foreach ($options as $option_id => $option) { $setting_values = $this->setting_model->get_value($setting->id); if (is_array($setting_values)) { $checked = in_array($option, $setting_values); } else { $checked = $setting->value == $option_id; } print_checkbox_element(array('name' => 'value[]', 'label' => $option, 'value' => $option_id, 'checked' => $checked)); } break; } print_submit_container_open(); print_submit_button(); print_cancel_button(base_url().'settings'); print_submit_container_close(); print_form_container_close(); echo '</div>'; echo form_close(); ?>
print_input_element(array( 'label' => 'Event name', 'name' => 'event_name', 'required' => true )); print_textarea_element(array( 'label' => 'Event description', 'name' => 'event_description', 'required' => true )); print_dropdown_element(array( 'label' => 'Role', 'name' => 'role_id', 'options' => $dropdowns['roles'], 'required' => false )); print_submit_container_open(); print_submit_button(); print_cancel_button(base_url().'events/event'); print_submit_container_close(); print_form_container_close(); echo form_close(); ?> <script type="text/javascript"> var system = '<?=$system?>'; </script>
$this->load->view('orders/order/deposit', compact('locked', 'order_data', 'dropdowns')); if (!empty($order_id)) { $this->load->view('orders/order/order_units', compact('order_id', 'is_installation')); } if (has_capability('orders:viewmessages') && !empty($order_id)) { $display = empty($order_id) ? ' style="display: none;" ' : ''; $this->load->view('messages', array('display' => $display, 'document_type' => 'order', 'document_id' => $order_id, 'in_tabbed_form' => true)); } print_submit_container_open(); if (!$locked) { foreach ($submit_buttons as $name => $label) { print_submit_button($label, $name . '_button', $name); } } if (empty($order_id)) { print_cancel_button(base_url() . 'miniant/orders/order'); } else { echo form_submit('return', 'Return to Jobs', 'id="return_button" class="btn btn-default"'); } print_submit_container_close(); print_form_container_close(); echo '</div>'; echo form_close(); echo '</div></div>'; // Popover forms $this->load->view('orders/order/popovers', array('dropdowns' => $dropdowns)); if ($is_maintenance) { $this->load->view('orders/order/order_unit_maintenance_popover', compact('dropdowns', 'order_id')); } else { if ($is_installation) { $this->load->view('orders/order/order_unit_installation_popover', compact('dropdowns', 'order_id'));
<?php echo form_open(base_url() . 'building/job_sites/process_edit/', array('id' => 'job_site_edit_form', 'class' => 'form-horizontal')); echo form_hidden('id', $job_site_id); print_form_container_open(); print_input_element(array('label' => 'Unit', 'name' => 'unit', 'size' => 5, 'required' => false)); print_input_element(array('label' => 'Number', 'name' => 'number', 'size' => 5, 'required' => true)); print_input_element(array('label' => 'Street', 'name' => 'street', 'size' => 30, 'required' => true)); print_autocomplete_element(array('label' => 'Street type', 'name' => 'street_type', 'options_url' => 'addresses/get_street_types', 'required' => true, 'id' => 'autocomplete_street_type')); print_input_element(array('label' => 'Suburb', 'name' => 'city', 'size' => 26, 'required' => true)); print_input_element(array('label' => 'Postcode', 'name' => 'postcode', 'size' => 12, 'required' => true)); print_dropdown_element(array('label' => 'State', 'name' => 'state', 'options' => array('ACT' => 'ACT', 'NSW' => 'NSW', 'NT' => 'NT', 'QLD' => 'QLD', 'SA' => 'SA', 'TAS' => 'TAS', 'VIC' => 'VIC', 'WA' => 'WA'), 'required' => true, 'default_value' => 'WA')); print_submit_container_open(); print_submit_button(); print_cancel_button(base_url() . 'building/job_sites'); print_submit_container_close(); print_form_container_close(); echo form_close();
<?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>'; echo form_close(); ?> </div> <script type="text/javascript"> $(function() { $('#slider-corrected-time').slider({ value: <?php echo $corrected_time_value; ?>
<?php echo form_open(base_url() . 'building/tradesmen/process_edit/', array('id' => 'tradesman_edit_form', 'class' => 'form-horizontal')); echo form_hidden('id', $tradesman_id); print_form_container_open(); print_input_element(array('label' => 'Name', 'name' => 'name', 'size' => 40, 'required' => true, 'autocomplete' => 'off')); print_dropdown_element(array('label' => 'Type', 'name' => 'type_id', 'options' => $types, 'required' => true)); print_input_element(array('label' => 'Mobile', 'name' => 'mobile', 'size' => 16, 'required' => false)); print_input_element(array('label' => 'Email', 'name' => 'email', 'size' => 60, 'required' => false)); print_submit_container_open(); print_submit_button(); print_cancel_button(base_url() . 'building/tradesmen'); print_submit_container_close(); print_form_container_close(); echo form_close();
$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)); } print_submit_container_open(); if (!empty($maintenance_contract_id)) { print_submit_button("Submit for allocation", 'submit_button', 'submit'); } else { print_submit_button("Save and record units", 'submit_button', 'submit'); } if (empty($maintenance_contract_id)) { print_cancel_button(base_url() . 'miniant/maintenance_contracts'); } else { echo form_submit('return', 'Return to Maintenance contracts', 'id="return_button" class="btn btn-default"'); } print_submit_container_close(); print_form_container_close(); echo '</div>'; echo form_close(); echo '</div></div>'; // Popover forms $this->load->view('maintenance_contract/popovers', array('dropdowns' => $dropdowns)); $this->load->view('maintenance_contract/unit_popover', array('dropdowns' => $dropdowns, 'maintenance_contract_id' => $maintenance_contract_id)); ?> <script type="text/javascript"> //<![CDATA[ var locked = false;
<div class="panel panel-primary"> <div class="panel-heading"><?php echo get_title($title_options); ?> </div> <?php echo form_open(base_url() . 'miniant/refrigerant_types/process_edit/', array('id' => 'refrigerant_type_edit_form', 'class' => 'form-horizontal')); echo '<div class="panel-body">'; echo form_hidden('refrigerant_type_id', $refrigerant_type_id); print_form_container_open(); print_input_element(array('label' => 'Refrigerant type Name', 'name' => 'name', 'required' => true, 'render_static' => !has_capability('site:editrefrigerant_types'))); if (has_capability('site:editrefrigerant_types')) { print_submit_container_open(); print_submit_button(); print_cancel_button(base_url() . 'miniant/refrigerant_types'); print_submit_container_close(); } print_form_container_close(); echo '</div>'; echo form_close(); ?> </div> </div>
'required' => true )); print_input_element(array( 'label' => 'Secondary email', 'name' => 'email2', 'required' => false )); print_dropdown_element(array( 'label' => 'Type', 'name' => 'contact_type_id', 'options' => $types, 'required' => true )); print_dropdown_element(array( 'label' => 'Account', 'name' => 'account_id', 'options' => $accounts, 'required' => true )); print_submit_container_open(); print_submit_button(); print_cancel_button(base_url().'users/contact/cancel/'.$contact_id); print_submit_container_close(); print_form_container_close(); echo '</div>'; echo form_close();
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(); } if (!empty($account_id)) { print_fieldset_open('Billing contacts'); if (!empty($account_data['billing_contacts'])) { print_contact_table($account_data['billing_contacts']); } else { echo "<p>No billing contacts</p>"; } print_fieldset_close(); print_fieldset_open('Job site contacts'); if (!empty($account_data['site_contacts'])) { print_contact_table($account_data['site_contacts']); } else { echo "<p>No job site contacts</p>";