- rtc_controller_name ||= controller_name - search_constraint ||= nil - search_action ||= nil - search_key ||= 'q' - rtc_title = true if rtc_title.nil? - rtc_header = true if rtc_header.nil? - rtc_column_header = true if rtc_column_header.nil? - rtc_footer = true if rtc_footer.nil? - rtc_partial = rtc_controller_name.singularize if rtc_partial.nil? - toggle_view = false if toggle_view.nil? - add_form_remote = true if add_form_remote.nil? - rtc_empty_data_message = sanitize "Data #{t(rtc_controller_name)} kosong" if rtc_empty_data_message.nil? - rtc_button_new = true if rtc_button_new.nil? - rtc_multiple_selection ||= nil - advanced_search_attributes ||= nil - columns_width = columns_width.presence || [] - rtc_actions ||= nil - export_attributes ||= nil - recapitulation_matrix ||= nil - table_title ||= nil - row_number = false if row_number.nil? - multiple_selection = false if multiple_selection.nil? - multiple_selection_actions ||= nil .component.rich_table_component{class: "#{rtc_controller_name}_component"} - if rtc_title.present? || rtc_button_new.present? = render "rich_table_component/rtc/component_title", rtc_controller_name: rtc_controller_name, rtc_title: rtc_title = render "rich_table_component/rtc/component_actions", rtc_controller_name: rtc_controller_name, params: params, rtc_title: rtc_title, add_form_remote: add_form_remote, rtc_button_new: rtc_button_new, rtc_actions: rtc_actions, multiple_selection_actions: multiple_selection_actions, export_attributes: export_attributes = render "rich_table_component/rtc/component_content", search_constraint: search_constraint, search_action: search_action, search_key: search_key, headers: headers, rtc_header: rtc_header, rtc_column_header: rtc_column_header, rtc_footer: rtc_footer, rtc_controller_name: rtc_controller_name, rtc_partial: rtc_partial, toggle_view: toggle_view, rtc_empty_data_message: rtc_empty_data_message, advanced_search_attributes: advanced_search_attributes, columns_width: columns_width, table_title: table_title, row_number: row_number, multiple_selection: multiple_selection, params: params / - if rtc_multiple_selection / - if rtc_multiple_selection[:action] / %form{action: rtc_multiple_selection[:action], class: "rtc_multiple_selection", id: "rtc_multiple_selection_#{rtc_controller_name}"} / - if rtc_multiple_selection[:label] / %input{type: 'submit', class: 'button', value: rtc_multiple_selection[:label]} - if recapitulation_matrix = render 'rich_table_component/rtc/recapitulation_matrix', rtc_controller_name: rtc_controller_name, recapitulation_matrix: recapitulation_matrix