<% if @user_my_modules.size == 0 then %>
  • <%= t 'experiments.canvas.full_zoom.modal_manage_users.no_users' %>
  • <% else %> <% @user_my_modules.each_with_index do |umm, i| user = umm.user %>
  • <% if i > 0 %>
    <% end %>
    <%= image_tag avatar_path(user, :icon_small), class: 'img-circle pull-left' %>
    <%= user.full_name %>
    "> <%=t "experiments.canvas.full_zoom.modal_manage_users.user_join", date: l(umm.created_at, format: :full_date) %>
    <% if can_manage_my_module?(@my_module) %>
    <%= link_to my_module_user_my_module_path(@my_module, umm, format: :json), method: :delete, remote: true, class: 'btn btn-light remove-user-link' do %> <% end %>
    <% end %>
  • <% end %> <% end %> <% if can_manage_my_module?(@my_module) && @undesignated_users.any? %>

  • <%= form_with model: [@my_module, @new_um], data: { remote: true }, format: :json, html: { class: 'add-user-form' } do |f| %>
    <%= collection_select(:user_my_module, :user_id, @undesignated_users, :id, :full_name, {}, { class: 'selectpicker' }) %>
    <%= f.button class: 'btn btn-primary' do %> <%= t("experiments.canvas.full_zoom.modal_manage_users.create") %> <% end %>
    <% end %>
  • <% end %>