% yield %> <% form ||= current_fields_form options ||= {} other_options ||= {} id_of_dependent_fields_frame = form.field_id(method, :dependent_fields) %> <%= form.fields_for(method) do |address_form| %> <% with_field_settings form: address_form do %> <% # For self-updating the fields in the turbo_frame further down %> <% accept_query_string_override_for(address_form, :country_id) %> <%= render 'shared/fields/super_select', method: :country_id, choices: populate_country_options, options: {include_blank: true}, other_options: {search: true, wrapper_class: "col-span-2"}, html_options: {data: {}}, wrapper_options: { data: { 'controller': "dependable", 'action': '$change->dependable#updateDependents', 'dependable-dependents-selector-value': "##{id_of_dependent_fields_frame}" } } %> <%= render 'shared/fields/text_field', method: :address_one %> <%= render 'shared/fields/text_field', method: :address_two %>