<?php echo '<div id="deposit" class="' . get_tab_panel_class() . '">'; print_checkbox_element(array('label' => 'Deposit Required', 'name' => 'deposit_required', 'value' => 1)); print_input_element(array('label' => 'Deposit amount', 'name' => 'deposit_amount', 'placeholder' => '0.00', 'disabledunless' => array('deposit_required'), 'validation' => 'number')); print_dropdown_element(array('label' => 'Credit card type', 'name' => 'cc_type', 'options' => array('Visa' => 'Visa', 'Mastercard' => 'Mastercard'), 'disabledunless' => array('deposit_required'))); print_input_element(array('label' => 'Credit Card number', 'name' => 'cc_number', 'disabledunless' => array('deposit_required'))); print_input_element(array('label' => 'Credit Card expiry', 'name' => 'cc_expiry', 'placeholder' => '01/15', 'size' => 5, 'disabledunless' => array('deposit_required'))); print_input_element(array('label' => 'Credit Card security (CVV)', 'name' => 'cc_security', 'size' => 3, 'disabledunless' => array('deposit_required'))); print_tabbed_form_navbuttons(); echo '</div>';
<?php $locked = false; echo '<div id="internal_info" class="' . get_tab_panel_class() . '">'; print_datetime_element(array('label' => 'Creation date', 'name' => 'creation_date', 'render_static' => $locked, 'show' => true, 'required' => true, 'static_value' => $maintenance_contract_data['creation_date'], 'static_displayvalue' => $maintenance_contract_data['creation_date'])); print_date_element(array('label' => 'Next maintenance date', 'name' => 'next_maintenance_date', 'render_static' => $locked || !has_capability('orders:editpreferredstartdate'), 'show' => true, 'required' => true, 'static_value' => $maintenance_contract_data['next_maintenance_date'], 'static_displayvalue' => $maintenance_contract_data['next_maintenance_date'])); print_dropdown_element(array('label' => 'Schedule type', 'name' => 'schedule_interval', 'required' => true, 'options' => array('3' => 'Quarterly', '6' => '6-monthly', '12' => 'Yearly'))); print_tabbed_form_navbuttons(); echo '</div>';
<?php $locked = false; echo '<div id="maintenance_contract_units" class="' . get_tab_panel_class() . '">'; if (has_capability('maintenance_contracts:manageunits') && !empty($maintenance_contract_id)) { $units_table_disabled = !empty($maintenance_contract_id); ?> <div class="table-responsive"> <table id="units_table" class="table table-bordered table-condensed"> <thead> <tr><th>Type</th><th>Tenancy/Owner</th><th>Brand</th><th>Area Serving</th><th style="width: 250px" class="actions">Actions</th></tr> </thead> <tbody> <tr id="new_unit_row"> <td colspan="5"> <button <?php echo $locked ? 'disabled="disabled"' : ''; ?> class="btn btn-success" type="button" id="new_unit_button">Add a unit</button> </td> </tr> </tbody> </table> </div> <div class="modal" id="task-notes" tabindex="-1" role="dialog" arial-labelledby="task-notes-label" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"> <span aria-hidden="true">×</span><span class="sr-only">Close</span> </button>
<?php echo '<div id="order_units" class="' . get_tab_panel_class() . '">'; if (has_capability('orders:manageunits') && !empty($order_id)) { $units_table_disabled = !empty($order_id); ?> <div class="table-responsive"> <table id="units_table" class="table table-bordered table-condensed"> <thead> <?php if ($is_installation) { ?> <tr><th>Type</th><th>Unitry Type</th><th>Tenancy/Owner</th><th>Brand</th><th>Area Serving</th><th style="width: 250px" class="actions">Actions</th></tr> <?php } elseif ($is_repair) { ?> <tr><th>Type</th><th>Tenancy/Owner</th><th>Brand</th><th>Area Serving</th></tr> <?php } else { ?> <tr><th>Type</th><th>Tenancy/Owner</th><th>Brand</th><th>Area Serving</th><th style="width: 250px" class="actions">Actions</th></tr> <?php } ?> </thead> <tbody> <?php if (!$is_repair) { ?> <tr id="new_unit_row"> <td colspan="5">
<?php if (has_capability('orders:viewclientinfo')) { echo '<div id="account_details" class="' . get_tab_panel_class() . '">'; print_dropdown_element(array('label' => 'Maintenance Contract ID', 'name' => 'maintenance_contract_id', 'render_static' => $locked || !has_capability('orders:editaccount'), 'show' => true, 'static_value' => $order_data['maintenance_contract_id'], 'static_displayvalue' => $order_data['maintenance_contract_id'] . ' (' . $order_data['account_name'] . ')', 'options' => $dropdowns['maintenance_contracts'], 'extra_html' => array('onchange' => 'update_from_maintenance_contract_id(this);'), 'required' => false)); print_dropdown_element(array('label' => 'Billing Account', 'name' => 'account_id', 'render_static' => $locked || !has_capability('orders:editaccount'), 'show' => true, 'static_value' => $order_data['account_id'], 'static_displayvalue' => $order_data['account_name'], 'options' => $dropdowns['accounts'], 'extra_html' => array('onchange' => 'update_account_details(this);'), 'required' => true)); if (has_capability('orders:editbillingcontact') && !$locked) { print_dropdown_element(array('label' => 'Billing contact', 'name' => 'billing_contact_id', 'options' => array(null => '-- Select or create --', 0 => 'Create a new billing contact'), 'render_static' => $locked || !has_capability('orders:editbillingcontact'), 'static_value' => $order_data['billing_contact_id'], 'static_displayvalue' => $order_data['billing_contact_first_name'] . ' ' . $order_data['billing_contact_surname'], 'show' => has_capability('orders:viewbillingcontact'), 'extra_html' => array('class' => 'popover_trigger'), 'edit_link' => base_url() . 'users/contact/edit/' . $order_data['billing_contact_id'], 'required' => true)); } if (has_capability('orders:editsitecontact') && !$locked) { print_dropdown_element(array('label' => 'Job site contact', 'name' => 'site_contact_id', 'options' => array(null => '-- Select or create --', 0 => 'Create a new job site contact'), 'render_static' => $locked || !has_capability('orders:editsitecontact'), 'static_value' => $order_data['site_contact_id'], 'static_displayvalue' => $order_data['site_contact_first_name'] . ' ' . $order_data['site_contact_surname'], 'show' => has_capability('orders:viewsitecontact'), 'extra_html' => array('class' => 'popover_trigger'), 'edit_link' => base_url() . 'users/contact/edit/' . $order_data['site_contact_id'], 'required' => false)); } if (has_capability('orders:editsiteaddress') && !$locked) { print_dropdown_element(array('label' => 'Site address', 'name' => 'site_address_id', 'options' => array(null => '-- Select or create --', 0 => 'Create a new job site address'), 'render_static' => $locked || !has_capability('orders:editsiteaddress'), 'static_value' => $order_data['site_address_id'], 'static_displayvalue' => $this->address_model->get_formatted_address($order_data['site_address_id']), 'show' => has_capability('orders:viewsiteaddress'), 'extra_html' => array('class' => 'popover_trigger'), 'edit_link' => base_url() . 'addresses/edit/' . $order_data['site_address_id'], 'required' => true)); } ?> <div id="tenancy_table" class="panel panel-info" style="display:none"> <div class="panel-heading"> <h3>Tenancies <div class="pull-right title-buttons"> <button type="button" class="btn btn-info navbar-btn help btn-icon" title="Tenancies" data-content="Add at least one tenancy here. If the site has no tenancies, create one with the name of the billing account." data-placement="left" data-container="body"> <i class="fa fa-question" ></i><span>Help</span> </button> <button id="new-tenancy-button" class="btn btn-success navbar-btn btn-icon"><i class="fa fa-plus"></i> New</button> </div> </h3> </div> <div class="panel-body"> <table id="tenancy-table" class="table table-condensed"> <thead> <tr><th>Name</th><th>Actions</th></tr>
* 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. */ ?> <?php $message_identifier = $document_type . '_' . $document_id; echo '<div data-identifier="'.$message_identifier.'" id="messages_'.$message_identifier.'" '.$display.' class="messages-container '.get_tab_panel_class().'">'; $this->load->helper('inflector'); if (empty($in_tabbed_form)) $in_tabbed_form = false; $capability_category = $this->inflector->pluralize($document_type); $view_only_class = (empty($view_only)) ? 'view-only' : ''; if (empty($messages)) { $messages = array(); } ?> <div class="table-responsive"> <table class="table table-bordered table-condensed message_table <?=$view_only_class?>" > <thead> <tr><th>Date</th><th>Author</th><th>Note</th><th class="actions">Actions</th></tr> </thead>