Sha256: b6ab9e3df4ee3245d125ba8ebe39d82c4c27aa313d301503f681b10207eb01d4

Contents?: true

Size: 1.46 KB

Versions: 21

Compression:

Stored size: 1.46 KB

Contents

<% context ||= @team %>
<% hide_actions ||= false %>
<% hide_back ||= false %>

<%= updates_for context, :memberships do %>
  <%= render 'account/shared/box' do |p| %>
    <% p.content_for :title, t(".contexts.#{context.class.name.underscore}.header") %>
    <% p.content_for :description do %>
      <%= raw t(".contexts.#{context.class.name.underscore}.#{@memberships.any? ? 'description' : 'description_empty'}") %>
      <%= render "shared/limits/index", model: @memberships.model %>
    <% end %>

    <% p.content_for :table do %>
      <% if @memberships.any? %>
        <table class="table">
          <thead>
            <tr>
              <th><%= t('memberships.singular') %></th>
              <th><%= t('memberships.fields.role_ids.heading') %></th>
              <%# 🚅 super scaffolding will insert new field headers above this line. %>
              <th></th>
            </tr>
          </thead>
          <tbody data-model="Membership" data-scope="current">
            <%= yield %>
          </tbody>
        </table>
      <% end %>
    <% end %>

    <% unless hide_actions %>
      <% p.content_for :actions do %>
        <%= link_to t('invitations.buttons.new'), new_account_team_invitation_path(@team, cancel_path: account_team_memberships_path(@team)), class: "#{first_button_primary}" %>
        <%= link_to t('global.buttons.back'), [:account, context], class: "#{first_button_primary} back" unless hide_back %>
      <% end %>
    <% end %>
  <% end %>
<% end %>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
bullet_train-1.2.20 app/views/account/memberships/_index.html.erb
bullet_train-1.2.19 app/views/account/memberships/_index.html.erb
bullet_train-1.2.18 app/views/account/memberships/_index.html.erb
bullet_train-1.2.17 app/views/account/memberships/_index.html.erb
bullet_train-1.2.16 app/views/account/memberships/_index.html.erb
bullet_train-1.2.15 app/views/account/memberships/_index.html.erb
bullet_train-1.2.14 app/views/account/memberships/_index.html.erb
bullet_train-1.2.13 app/views/account/memberships/_index.html.erb
bullet_train-1.2.12 app/views/account/memberships/_index.html.erb
bullet_train-1.2.11 app/views/account/memberships/_index.html.erb
bullet_train-1.2.10 app/views/account/memberships/_index.html.erb
bullet_train-1.2.9 app/views/account/memberships/_index.html.erb
bullet_train-1.2.8 app/views/account/memberships/_index.html.erb
bullet_train-1.2.7 app/views/account/memberships/_index.html.erb
bullet_train-1.2.6 app/views/account/memberships/_index.html.erb
bullet_train-1.2.5 app/views/account/memberships/_index.html.erb
bullet_train-1.2.4 app/views/account/memberships/_index.html.erb
bullet_train-1.2.3 app/views/account/memberships/_index.html.erb
bullet_train-1.2.2 app/views/account/memberships/_index.html.erb
bullet_train-1.2.1 app/views/account/memberships/_index.html.erb