tr class="threshold-pannel panel-heading" id=threshold.id td = threshold.trade.name td = threshold.repair_wos td = threshold.maintenance_wos td = "#{threshold.outstanding_time_frame} hrs" td = link_to threshold.area_exceptions.present? ? 'YES' : 'NO', '#', class: "no-action area-exception-link", data: {threshold_id: threshold.id} td.center = link_to edit_company_threshold_path(threshold.id), data: {toggle: 'emodal', title: 'Edit Threshold', size: 'lg', modal_id: 'custom_id'}, remote: true do = fa_icon('pencil') span.pl10 = link_to company_threshold_path(threshold.id), method: :delete, remote: true, data: {confirm: "Are you sure?"} do = fa_icon('times-circle') tr class="threshold_area_exception_panel_#{threshold.id} hide" td colspan=8 class='bg-lightest-grey' table.table.table-bordered.tabel-area-exception th.no-border | Area Exceptions tbody.panel.area-exception-panel - threshold.area_exceptions.each do |area_exception| tr.area_exception_panel id=area_exception.id = render 'company/area_exceptions/area_exception', area_exception: area_exception, threshold: threshold tr td colspan=8 = link_to 'NEW AREA', new_company_threshold_area_exception_path(threshold.id), class: 'btn btn-view pull-left', data: {toggle: 'emodal', title: 'New Area Exception', size: 'lg', modal_id: 'custom_id'}, remote: true