%= render 'account/shared/page' do |page| %>
<% page.title t('.section') %>
<% page.body do %>
<%= updates_for @creative_concept do %>
<%= render 'account/shared/box', divider: true do |box| %>
<% box.t :description, title: '.header' %>
<% box.body do %>
<% with_attribute_settings object: @creative_concept, strategy: :label do %>
<%= render 'shared/attributes/text', attribute: :name %>
<%= render 'shared/attributes/text', attribute: :description %>
<%# 🚅 super scaffolding will insert new fields above this line. %>
<%= render 'shared/attributes/base' do |p| %>
<% p.heading t(".fields.admins.heading") %>
<% p.body.render 'account/shared/memberships/photos', memberships: (@team.admins.reject(&:platform_agent?) + @creative_concept.admins.reject(&:platform_agent?)).uniq %>
<% end %>
<% if @creative_concept.editors.any? %>
<%= render 'shared/attributes/base' do |p| %>
<% p.heading t(".fields.editors.heading") %>
<% p.body.render 'account/shared/memberships/photos', memberships: @creative_concept.editors.reject(&:platform_agent?) %>
<% end %>
<% end %>
<% if @creative_concept.viewers.any? %>
<%= render 'shared/attributes/base' do |p| %>
<% p.heading t(".fields.viewers.heading") %>
<% p.body.render 'account/shared/memberships/photos', memberships: @creative_concept.viewers.reject(&:platform_agent?) %>
<% end %>
<% end %>
<% end %>
<% end %>
<% box.actions do %>
<%= link_to t('.buttons.edit'), [:edit, :account, @creative_concept], class: first_button_primary if can? :edit, @creative_concept %>
<%= button_to t('.buttons.destroy'), [:account, @creative_concept], method: :delete, class: first_button_primary, data: { confirm: t('.buttons.confirmations.destroy', model_locales(@creative_concept)) } if can? :destroy, @creative_concept %>
<%= link_to t('global.buttons.back'), [:account, @team, :scaffolding_absolutely_abstract_creative_concepts], class: first_button_primary %>
<% end %>
<% end %>
<% end %>
<%= render 'account/scaffolding/completely_concrete/tangible_things/index', tangible_things: @creative_concept.completely_concrete_tangible_things, hide_back: true %>
<% if can? :read, Scaffolding::AbsolutelyAbstract::CreativeConcepts::Collaborator.new(creative_concept: @creative_concept) %>
<%= render 'account/scaffolding/absolutely_abstract/creative_concepts/collaborators/index', collaborators: @creative_concept.collaborators, hide_back: true %>
<% end %>
<%# 🚅 super scaffolding will insert new children above this line. %>
<% end %>
<% end %>