<% context ||= @team %> <% hide_actions ||= false %> <% hide_back ||= false %> <%= updates_for context, :scaffolding_absolutely_abstract_creative_concepts do %> <%= render 'account/shared/box' do |p| %> <% p.content_for :title, t(".contexts.#{context.class.name.underscore}.header") %> <% p.content_for :description do %> <%= t(".contexts.#{context.class.name.underscore}.#{creative_concepts.any? ? 'description' : 'description_empty'}") %> <% end %> <% if creative_concepts.any? %> <% p.content_for :table do %> <%# 🚅 super scaffolding will insert new field headers above this line. %> <% creative_concepts.each do |creative_concept| %> <% with_attribute_settings object: creative_concept do %> <%# 🚅 super scaffolding will insert new fields above this line. %> <% end %> <% end %>
<%= t('.fields.name.heading') %> <%= t('.fields.all_collaborators.heading') %><%= t('.fields.created_at.heading') %>
<%= render 'shared/attributes/text', attribute: :name, url: [:account, creative_concept] %> <%= render 'account/shared/memberships/photos', memberships: creative_concept.all_collaborators, size: 9, align: :center %><%= display_date_and_time(creative_concept.created_at) %> <% unless hide_actions %> <%= link_to t('.buttons.shorthand.edit'), [:edit, :account, creative_concept], class: 'button-secondary button-smaller' if can? :edit, creative_concept %> <%= button_to t('.buttons.shorthand.destroy'), [:account, creative_concept], method: :delete, data: { confirm: t('.buttons.confirmations.destroy', model_locales(creative_concept)) }, class: 'button-secondary button-smaller' if can? :destroy, creative_concept %> <% end %>
<% end %> <% end %> <% p.content_for :actions do %> <% unless hide_actions %> <% if can? :create, Scaffolding::AbsolutelyAbstract::CreativeConcept.new(team: @team) %> <%= link_to t('.buttons.new'), [:new, :account, @team, :scaffolding_absolutely_abstract_creative_concept], class: "#{first_button_primary(:absolutely_abstract_creative_concept)} new" %> <% end %> <%= link_to t('global.buttons.back'), [:account, context], class: "#{first_button_primary(:absolutely_abstract_creative_concept)} back" unless hide_back %> <% end %> <% end %> <% end %> <% end %>