= simple_form_for @agreement_contract, url: deactivate_company_agreement_contract_path(@agreement_contract), remote: true, html: {class: 'agreement_contract_confirmation'} do |f| .row.mt30 .col-sm-8.col-sm-offset-2 strong |You are about to deactivate the services, the service will be moved to |expired tab and the workorders and the invoices will not be generated. - if @agreement_contract.inspector? div.mt30 - if @agreement_contract.invoices.not_paid.present? - @agreement_contract.invoices.not_paid.each do |invoice| = "Invoice ##{invoice.short_invoice_number} is with status 'UnPaid', Do you want to mark it void?" .row .col-sm-2 = hidden_field_tag :invoice_id, invoice.id = radio_button_tag :void_invoice, 'Yes' = label_tag :void_invoice_Yes, 'Yes' .col-sm-2 = radio_button_tag :void_invoice, 'No', true = label_tag :void_invoice_No, 'No' div | Agreement Deactivation Date: = f.input :deactivation_date, label: false, as: :string, input_html: {class: 'datepicker w30', autocomplete: :off, value: f.object.deactivation_date&.frmt_mm_dd_YY || Time.current.frmt_mm_dd_YY, data: {options: {format: 'MM/DD/YYYY', showClear: true}}} .clearfix .modal-footer.gray-footer = link_to 'Cancel', '#', class: 'btn btn-cancel', data: { dismiss: :modal } = f.submit 'Accept', class: 'btn btn-continue'