= simple_form_for @agreement_contract, url: company_agreement_contract_path(@agreement_contract),remote: true, html: {class: 'dirtyform service_update'} do |f| table.table.inspection-tabel.w100 cellpadding="0" cellspacing="0" tbody tr.heading_tr th Type th Scheduler th Equipment th Tradesman th Description th Price th Qty. th Line Total th tr.nested-fields.invoice-settings data-id=(f.object.id) = f.hidden_field :id, value: f.object.id td = f.input :contract_type, as: :select, collection: AgreementContract.contract_types, label: false, disabled: f.object.activated?, selected: AgreementContract.contract_types[f.object.contract_type.try(:to_sym)] td = link_to '+ Edit', edit_company_wizard_agreement_contract_path(@agreement_contract, :duration), data: {toggle: "emodal", size: 'xlg', title: 'AGREEMENT'}, class: 'btn btn-add' td = link_to '+ Edit', edit_company_wizard_contract_path(@agreement_contract.contracts.last, :equipment), data: {toggle: "emodal", size: 'lxg', title: 'AGREEMENT'}, class: 'btn btn-add' td = link_to '+ Edit', edit_company_wizard_contract_path(@agreement_contract.contracts.last, 'tradesmens-selection'), data: {toggle: "emodal", size: 'xlg', title: 'AGREEMENT'}, class: 'btn btn-add' = f.simple_fields_for :line_items do |l| = l.hidden_field :id, value: l.object.id td = l.input :description, label: false, input_html: { class: 'agreement-description', value: l.object.description || @agreement_contract.contracts.last.description } td .display-inline-flex span.m-8-2 $ = l.input :price, label: false, input_html: { class: 'amount-in-cents' }, disabled: !f.object.can_update_agreement_price? td = l.input :quantity, label: false, input_html: { class: 'invoice-quantity inp50' }, disabled: !f.object.can_update_agreement_price? td = agreement_contract_price(@agreement_contract) span.fs10 = location_tax_info(@agreement_contract.location, @agreement_contract) td = submit_tag 'Save', class: 'btn btn-service-save'