<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => {:class => 'form-app-infos'}) do |f| %>
<%= f.hidden_field :requested_group, :value => @group.id if @group %>
<%= f.label :login, "Login" %>
<%= f.text_field :login, :class => 'form-control' %>
<%= f.label :name, "Name" %>
<%= f.text_field :name, :class => 'form-control' %>
<%= f.label :email, "E-Mail" %>
<%= f.text_field :email, :class => 'form-control' %>
<% if @group && File.exist?(File.join(Rails.root, 'app', 'views', 'registrations', @group.name)) %>
<%= render :partial => "registrations/#{@group.name}/app_infos", :locals => {:f => f} %>
<% end %>
<%= f.label :password, "Passwort" %>
<%= f.password_field :password, :class => 'form-control' %>
<%= f.label :password_confirmation, "Passwortbestätigung" %>
<%= f.password_field :password_confirmation, :class => 'form-control' %>
<%= f.submit "Registrieren", :class => 'btn btn-primary' %>
<% end %>