Sha256: 29d673a7fd8f47473c2e50233d0c33a6c74bb1d3d4190a0208fa477bd0a512de

Contents?: true

Size: 1.74 KB

Versions: 11

Compression:

Stored size: 1.74 KB

Contents

<% if @groups.any? || @groups_users.any? %>
<h1>Usergruppen Verwaltung</h1>
<% end %>

<% if @groups.any? %>
<table>
  <tr>
    <th>Group</th>
    <th>Signup-Link</th>
    <th></th>
  </tr>

<% @groups.each do |group| %>
  <tr>
    <td><%= group.name %></td>
    <td><%= link_to new_user_registration_url(:group => group.name), new_user_registration_path(:group => group.name) %></td>
    <td><%= link_to 'User hinzufügen', new_groups_user_path({:group => group}) %></td>
  </tr>
<% end %>
</table>
<% end %>

<% if @groups_users.any? %>
<table>
  <tr>
    <th>Group</th>
    <th>Login</th>
    <th>User</th>
    <th>EMail</th>
    <th>Granted</th>
    <th>Info</th>
    <th></th>
    <th></th>
  </tr>

<% @groups_users.each do |groups_user| %>
  <tr>
    <td><%= groups_user.group.name %></td>
    <td><%= link_to groups_user.user.login, edit_user_path(groups_user.user) %></td>
    <td><%= groups_user.user.name %></td>
    <td><%= groups_user.user.email %></td>
    <td><%= link_to groups_user.granted.to_s, edit_groups_user_path(groups_user) %></td>
    <td>
      <% unless groups_user.user.app_infos.nil? %>
        <% groups_user.user.app_infos.each do |key, value| %>
          <i><%= key %></i>: <%= value %><br/>
        <% end %>
      <% end %>
    </td>
    <td><%= link_to 'Bearbeiten', edit_user_path(groups_user.user) %></td>
    <td><%= link_to 'Entfernen', groups_user, :confirm => 'Benutzer aus Gruppe entfernen?', :method => :delete %></td>
  </tr>
<% end %>
</table>
<% end %>

<h1>Eigene Gruppen</h1>

<table>
  <tr>
    <th>Gruppe</th>
    <th>Freigeschaltet</th>
  </tr>
<% current_user.groups_users.each do |groups_user| %>
  <tr>
    <td><%= groups_user.group.name %></td>
    <td><%= groups_user.granted ? "ja" : "nein" %></td>
  </tr>
<% end %>
</table>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gb_mapfish_appserver-1.0.2 app/views/groups_users/index.html.erb
gb_mapfish_appserver-1.0.1 app/views/groups_users/index.html.erb
gb_mapfish_appserver-1.0.0 app/views/groups_users/index.html.erb
gb_mapfish_appserver-0.9.7 app/views/groups_users/index.html.erb
gb_mapfish_appserver-0.9.6 app/views/groups_users/index.html.erb
gb_mapfish_appserver-0.9.5 app/views/groups_users/index.html.erb
gb_mapfish_appserver-0.9.4 app/views/groups_users/index.html.erb
gb_mapfish_appserver-0.9.3 app/views/groups_users/index.html.erb
gb_mapfish_appserver-0.9.2 app/views/groups_users/index.html.erb
gb_mapfish_appserver-0.9.1 app/views/groups_users/index.html.erb
gb_mapfish_appserver-0.9.0 app/views/groups_users/index.html.erb