Sha256: f3f183c23ec0a89cff536c1b5f7fb37a2198c0a033856394c516c31cdfda273f
Contents?: true
Size: 1.4 KB
Versions: 59
Compression:
Stored size: 1.4 KB
Contents
<%= render 'account/shared/page' do |page| %> <% page.title t('.section') %> <% page.body do %> <%= render 'account/shared/box', divider: true do |box| %> <% box.t :description, title: '.header' %> <% box.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 %> <% box.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
59 entries across 59 versions & 1 rubygems