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