Sha256: ac4df7b244ba4a22295ebed767f3176770124931e978336d527f787371015521

Contents?: true

Size: 1.49 KB

Versions: 75

Compression:

Stored size: 1.49 KB

Contents

<%= 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, t('.description') %>

      <% p.content_for :body do %>
        <%= render 'shared/attributes/belongs_to', object: @collaborator, attribute: :membership %>
        <%= render 'shared/attributes/attribute', object: @collaborator, attribute: :roles do %>
          <% if @collaborator.roles.present? %>
            <%= @collaborator.roles.map { |role| t(".fields.roles.options.#{role}") }.to_sentence %>
          <% else %>
            <%= t(".fields.roles.none") %>
          <% end %>
        <% end %>
        <%# 🚅 super scaffolding will insert new fields above this line. %>
      <% end %>

      <% p.content_for :actions do %>
        <%= link_to t('.buttons.edit'), [:edit, :account, @collaborator], class: first_button_primary if can? :edit, @collaborator %>
        <%= button_to t('.buttons.destroy'), [:account, @collaborator], method: :delete, class: first_button_primary, data: { confirm: t('.buttons.confirmations.destroy', model_locales(@collaborator)) } if can? :destroy, @collaborator %>
        <%= link_to t('global.buttons.back'), [:account, @creative_concept, :collaborators], class: first_button_primary %>
      <% end %>

    <% end %>

    <%# 🚅 super scaffolding will insert new children above this line. %>

  <% end %>
<% end %>

Version data entries

75 entries across 75 versions & 2 rubygems

Version Path
bullet_train-super_scaffolding-1.2.20 app/views/account/scaffolding/absolutely_abstract/creative_concepts/collaborators/show.html.erb
bullet_train-super_scaffolding-1.2.19 app/views/account/scaffolding/absolutely_abstract/creative_concepts/collaborators/show.html.erb
bullet_train-super_scaffolding-1.2.18 app/views/account/scaffolding/absolutely_abstract/creative_concepts/collaborators/show.html.erb
bullet_train-super_scaffolding-1.2.17 app/views/account/scaffolding/absolutely_abstract/creative_concepts/collaborators/show.html.erb
bullet_train-super_scaffolding-1.2.16 app/views/account/scaffolding/absolutely_abstract/creative_concepts/collaborators/show.html.erb
bullet_train-super_scaffolding-1.2.15 app/views/account/scaffolding/absolutely_abstract/creative_concepts/collaborators/show.html.erb
bullet_train-super_scaffolding-1.2.14 app/views/account/scaffolding/absolutely_abstract/creative_concepts/collaborators/show.html.erb
bullet_train-super_scaffolding-1.2.13 app/views/account/scaffolding/absolutely_abstract/creative_concepts/collaborators/show.html.erb
bullet_train-super_scaffolding-1.2.12 app/views/account/scaffolding/absolutely_abstract/creative_concepts/collaborators/show.html.erb
bullet_train-super_scaffolding-1.2.11 app/views/account/scaffolding/absolutely_abstract/creative_concepts/collaborators/show.html.erb
bullet_train-super_scaffolding-1.2.10 app/views/account/scaffolding/absolutely_abstract/creative_concepts/collaborators/show.html.erb
bullet_train-super_scaffolding-1.2.9 app/views/account/scaffolding/absolutely_abstract/creative_concepts/collaborators/show.html.erb
bullet_train-super_scaffolding-1.2.8 app/views/account/scaffolding/absolutely_abstract/creative_concepts/collaborators/show.html.erb
bullet_train-super_scaffolding-1.2.7 app/views/account/scaffolding/absolutely_abstract/creative_concepts/collaborators/show.html.erb
bullet_train-super_scaffolding-1.2.6 app/views/account/scaffolding/absolutely_abstract/creative_concepts/collaborators/show.html.erb
bullet_train-super_scaffolding-1.2.5 app/views/account/scaffolding/absolutely_abstract/creative_concepts/collaborators/show.html.erb
bullet_train-super_scaffolding-1.2.4 app/views/account/scaffolding/absolutely_abstract/creative_concepts/collaborators/show.html.erb
bullet_train-super_scaffolding-1.2.3 app/views/account/scaffolding/absolutely_abstract/creative_concepts/collaborators/show.html.erb
bullet_train-super_scaffolding-1.2.2 app/views/account/scaffolding/absolutely_abstract/creative_concepts/collaborators/show.html.erb
bullet_train-super_scaffolding-1.2.1 app/views/account/scaffolding/absolutely_abstract/creative_concepts/collaborators/show.html.erb