Sha256: 84be9d99c9ef7a2d77155e737b3a5a31a3d3dad1a5780d2c89dd8cb71f9db0eb

Contents?: true

Size: 1.49 KB

Versions: 13

Compression:

Stored size: 1.49 KB

Contents

<h2 class="h4">
  <%= t("manage_members", scope: "decidim.group_members.index") %>
</h2>

<%= cell "decidim/user_group_pending_requests_list", model %>

<p class="profile__group__description"><%= t("current_members_without_admins", scope: "decidim.group_members.index") %></p>

<%= link_to profile_members_path, class: "profile__group__back" do %>
  <%= icon "arrow-left-s-line" %>
  <span class="sr-only"><%= t("cancel", scope: "decidim.shared.confirm_modal") %></span>
<% end %>

<% if validation_messages.present? %>
  <% validation_messages.each do |validation| %>
    <%= cell("decidim/announcement", validation) %>
  <% end %>
<% else %>
  <% memberships.each do |membership| %>
    <div class="profile__group__list">
      <%= card_for membership %>

      <%= link_to(
        t("decidim.group_members.actions.promote_to_admin"),
        decidim.promote_group_manage_user_path(model.nickname, membership),
        method: :post,
        data: { confirm: t("decidim.group_members.actions.are_you_sure") },
        class: "button button__sm button__transparent-secondary"
      ) %>

      <%= link_to(
        decidim.group_manage_user_path(model.nickname, membership),
        method: :delete,
        data: { confirm: t("decidim.group_members.actions.are_you_sure") },
        class: "button button__sm button__transparent-secondary"
      ) do %>
        <span><%= t("decidim.group_members.actions.remove_from_group") %></span>
        <%= icon "delete-bin-line" %>
      <% end %>
    </div>
  <% end %>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-core-0.29.1 app/cells/decidim/group_members/show.erb
decidim-core-0.28.4 app/cells/decidim/group_members/show.erb
decidim-core-0.29.0 app/cells/decidim/group_members/show.erb
decidim-core-0.28.3 app/cells/decidim/group_members/show.erb
decidim-core-0.29.0.rc4 app/cells/decidim/group_members/show.erb
decidim-core-0.29.0.rc3 app/cells/decidim/group_members/show.erb
decidim-core-0.29.0.rc2 app/cells/decidim/group_members/show.erb
decidim-core-0.29.0.rc1 app/cells/decidim/group_members/show.erb
decidim-core-0.28.2 app/cells/decidim/group_members/show.erb
decidim-core-0.28.1 app/cells/decidim/group_members/show.erb
decidim-core-0.28.0 app/cells/decidim/group_members/show.erb
decidim-core-0.28.0.rc5 app/cells/decidim/group_members/show.erb
decidim-core-0.28.0.rc4 app/cells/decidim/group_members/show.erb