% 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? %>
<%= t('.fields.text_field_value.heading') %> | <%= t('.fields.boolean_button_value.heading') %> | <%= t('.fields.button_value.heading') %> | <%= t('.fields.multiple_button_values.heading') %> | <%# 🚅 stop any skipping we're doing now. %> <%# 🚅 super scaffolding will insert new field headers above this line. %><%= 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 %> | <%# 🚅 stop any skipping we're doing now. %> <%# 🚅 super scaffolding will insert new fields above this line. %><%= 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 %> |