.gray-bg.work-order-details
.col-md-12
.panel.panel-default
.panel-body
.row.header
p
.col-md-12
.pull-left
- if @work_order.contract_id
span.text-primary.bold.fs12 = "Agreement No: #{@work_order.contract_id}"
.pull-right
- if @company.vendor?
= link_to dispatch_now_company_technician_trip_path(@technician_trip), data: { toggle: 'emodal', size: 'lg', title: 'Dispatch Trip'}, class: 'btn p0 btn-sm' do
= image_tag 'dispatch.png', height: '15'
= link_to edit_company_wizard_work_order_path(@work_order), data: {remote: true, toggle: 'blockUI', target: '.dispatch-container'}, class: 'btn p0 btn-sm ml5' do
= image_tag 'edit.png', height: '15'
= link_to '#', data: { id: @work_order.id }, class: 'btn p0 add_notes ml5' do
= image_tag 'notes.png', height: '15'
p.bold
- work_order_decorate = Company::WorkOrderDecorator.decorate(@work_order)
| #{work_order_decorate.reference_text(separator: "\n", tooltip: true)} - #{@work_order.area.try(:name)} - Trip #{@trip.position}
.row.margintop10
.col-md-12
label Status
p
= @trip.extended_status_text
.row.margintop10
.col-md-12
label Client Name
p
= @work_order.company.try(:name)
.row.margintop10
.col-md-12
label Site Name and Address
p
= @work_order.location.name rescue nil
br/
= @work_order.location.try(:full_address) rescue nil
.row.margintop10
.col-md-12
label Type:
span.ml5 = @work_order.work_order_type.try(:titleize)
.row.margintop10
.col-md-12
label Date & Time:
span.ml5 = @technician_trip.start_date.try(:strftime, '%m/%d/%Y %I:%M %P')
.row.margintop10
.col-md-12
label Tradesmen:
span.ml5 = @technician_trip.tradesmen.try(:full_name)
.row.margintop10
.col-md-12
label Problem:
span.ml5 = @work_order.problem
.row.margintop10
.col-md-12
label Priority:
span.ml5 = @work_order.priority
.row.margintop10
.col-md-12
label Frequency:
span.ml5 = @work_order.contract.try(:occurance)
.row.margintop10
.col-md-12
label Description:
span.ml5 = @trip&.description