<% absolutely_abstract_creative_concept = @absolutely_abstract_creative_concept || @creative_concept %> <% context ||= absolutely_abstract_creative_concept %> <% collection ||= :completely_concrete_tangible_things %> <% hide_actions ||= false %> <% hide_back ||= false %> <% tangible_things = tangible_things.order(:id) unless has_order?(tangible_things) %> <% pagy, tangible_things = pagy(tangible_things, page_param: :tangible_things_page) %> <%= action_model_select_controller do %> <%= updates_for context, collection do %> <%= render 'account/shared/box', pagy: pagy do |p| %> <% p.content_for :title, t(".contexts.#{context.class.name.underscore}.header") %> <% p.content_for :description do %> <%= t(".contexts.#{context.class.name.underscore}.description#{"_empty" unless tangible_things.any?}") %> <%= render "shared/limits/index", model: tangible_things.model %> <% end %> <% p.content_for :table do %> <% if tangible_things.any? %> <%= render "shared/tables/select_all" %> <%# 🚅 skip this section when scaffolding. %> <%# 🚅 stop any skipping we're doing now. %> <%# 🚅 super scaffolding will insert new field headers above this line. %> <% tangible_things.each do |tangible_thing| %> <% with_attribute_settings object: tangible_thing do %> <%= render "shared/tables/checkbox", object: tangible_thing %> <%# 🚅 skip this section when scaffolding. %> <%# 🚅 stop any skipping we're doing now. %> <%# 🚅 super scaffolding will insert new fields above this line. %> <% end %> <% end %>
<%= t('.fields.text_field_value.heading') %> <%= t('.fields.boolean_button_value.heading') %> <%= t('.fields.button_value.heading') %> <%= t('.fields.multiple_button_values.heading') %><%= t('.fields.created_at.heading') %>
<%= render 'shared/attributes/text', attribute: :text_field_value, url: [:account, tangible_thing] %> <%= render 'shared/attributes/boolean', attribute: :boolean_button_value %> <%= render 'shared/attributes/option', attribute: :button_value %> <%= render 'shared/attributes/options', attribute: :multiple_button_values %><%= render 'shared/attributes/date_and_time', attribute: :created_at %> <% unless hide_actions %> <% if can? :edit, tangible_thing %> <%= link_to t('.buttons.shorthand.edit'), [:edit, :account, tangible_thing], class: 'button-secondary button-smaller' %> <% end %> <% if can? :destroy, tangible_thing %> <%= button_to t('.buttons.shorthand.destroy'), [:account, tangible_thing], method: :delete, data: { confirm: t('.buttons.confirmations.destroy', model_locales(tangible_thing)) }, class: 'button-secondary button-smaller' %> <% end %> <%# 🚅 super scaffolding will insert new action model buttons above this line. %> <% end %>
<% end %> <% end %> <% p.content_for :actions do %> <% unless hide_actions %> <% if context == absolutely_abstract_creative_concept %> <% if can? :create, Scaffolding::CompletelyConcrete::TangibleThing.new(absolutely_abstract_creative_concept: absolutely_abstract_creative_concept) %> <%= link_to t('.buttons.new'), [:new, :account, absolutely_abstract_creative_concept, :completely_concrete_tangible_thing], class: "#{first_button_primary(:completely_concrete_tangible_thing)} new" %> <% end %> <% end %> <%# 🚅 super scaffolding will insert new targets one parent action model buttons above this line. %> <%# 🚅 super scaffolding will insert new bulk action model buttons above this line. %> <%= render "shared/bulk_action_select" %> <% unless hide_back %> <%= link_to t('global.buttons.back'), [:account, context], class: "#{first_button_primary(:completely_concrete_tangible_thing)} back" %> <% end %> <% end %> <% end %> <% p.content_for :raw_footer do %> <%# 🚅 super scaffolding will insert new action model index views above this line. %> <% end %> <% end %> <% end %> <% end %>