<%= render 'account/shared/page' do |p| %> <% p.content_for :title, t('.section') %> <% p.content_for :body do %> <%= render 'account/shared/box', divider: true do |p| %> <% p.content_for :title, t('.header') %> <% p.content_for :description do %> <%= t('.description') %> <%= t('.manage_description') if can? :manage, @tangible_thing %> <% end %> <% p.content_for :body do %> <% with_attribute_settings object: @tangible_thing, strategy: :label do %> <%# 🚅 skip this section when scaffolding. %> <%= render 'shared/attributes/text', attribute: :text_field_value %> <%= 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/text', attribute: :cloudinary_image_value %> <%= render 'shared/attributes/date', attribute: :date_field_value %> <%= render 'shared/attributes/date_and_time', attribute: :date_and_time_field_value %> <%= render 'shared/attributes/email', attribute: :email_field_value %> <%= render 'shared/attributes/text', attribute: :password_field_value %> <%= render 'shared/attributes/phone_number', attribute: :phone_field_value %> <%= render 'shared/attributes/option', attribute: :option_value %> <%= render 'shared/attributes/options', attribute: :multiple_option_values %> <%= render 'shared/attributes/option', attribute: :super_select_value %> <%= render 'shared/attributes/options', attribute: :multiple_super_select_values %> <%= render 'shared/attributes/block', attribute: :text_area_value %> <%= render 'shared/attributes/html', attribute: :action_text_value %> <%# 🚅 stop any skipping we're doing now. %> <%# 🚅 super scaffolding will insert new fields above this line. %> <% end %> <% end %> <% p.content_for :actions do %> <%= link_to t('.buttons.edit'), [:edit, :account, @tangible_thing], class: first_button_primary if can? :edit, @tangible_thing %> <%= button_to t('.buttons.destroy'), [:account, @tangible_thing], method: :delete, class: first_button_primary, data: { confirm: t('.buttons.confirmations.destroy', model_locales(@tangible_thing)) } if can? :destroy, @tangible_thing %> <%= link_to t('global.buttons.back'), [:account, @absolutely_abstract_creative_concept, :completely_concrete_tangible_things], class: first_button_primary %> <% end %> <% end %> <%# 🚅 super scaffolding will insert new children above this line. %> <% end %> <% end %>