Sha256: c157c9a9da687cdcbce2a286b2c50e04584106d94acb4ce464eed1154bc11eba

Contents?: true

Size: 1.99 KB

Versions: 11

Compression:

Stored size: 1.99 KB

Contents

<h2>Benutzer bearbeiten</h2>

<%= form_for @user do |f| %>
  <% if @user.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@user.errors.count, "error") %> prohibited this groups_user from being saved:</h2>

      <ul>
        <% @user.errors.full_messages.each do |msg| %>
          <li><%= msg %></li>
        <% end %>
      </ul>
    </div>
  <% end %>

  <div class="row">
    <%= f.label 'Login' %>
    <div class="input uneditable-input">
      <%= @user.login %>
    </div>
  </div>

  <div class="row">
    <%= f.label 'Name' %>
    <div class="input uneditable-input">
      <%= @user.name %>
    </div>
  </div>

  <div class="row">
    <%= f.label 'E-Mail' %>
    <div class="input uneditable-input">
      <%= @user.email %>
    </div>
  </div>

  <% if current_user.id == @user.id %>
    <%= link_to "Bearbeiten", edit_user_registration_path(current_user) %>
  <% end %>

  <% @user.groups_users.each do |groups_user| %>
    <% next if groups_user.group.nil? %>
    <% if File.exist?(File.join(Rails.root, 'app', 'views', 'registrations', groups_user.group.name)) && (@user.id == current_user.id || current_user.group_admin?(groups_user.group)) %>
    <fieldset>
      <legend><%= groups_user.group.name %> (<%= groups_user.granted ? "freigeschaltet" : "nicht freigeschaltet" %>)</legend>
      <%= render :partial => "registrations/#{groups_user.group.name}/app_infos", :locals => {:f => f} %>
      <%# show user filter fields to group admins only %>
      <% if current_user.group_admin?(groups_user.group) && File.exist?(File.join(Rails.root, 'app', 'views', 'registrations', groups_user.group.name, '_filters.html.erb')) %>
        <div class="row">
          <b><%= f.label "Filter" %></b>
        </div>
        <%= render :partial => "registrations/#{groups_user.group.name}/filters", :locals => {:f => f} %>
      <% end %>
    </fieldset>
    <% end %>
  <% end %>

  <div class="actions">
    <%= f.submit "Benutzer speichern" %>
  </div>
<% end %>

<%= link_to 'Zurück', groups_users_path %>

Version data entries

11 entries across 11 versions & 1 rubygems

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