<% unless resource.errors.empty? %> <% end %>
Benutzer
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put, :class => 'form-horizontal' }) do |f| %>
<%= f.label :login, "Login", :class => 'col-sm-2 control-label' %>

<%= resource.login %>

<%= f.label :email, "E-Mail", :class => 'col-sm-2 control-label' %>

<%= resource.email %>

<%= f.label :password, "Passwort", :class => 'col-sm-2 control-label' %>
<%= f.password_field :password, :class => 'form-control' %> freilassen, wenn Sie das nicht ändern wollen
<%= f.label :password_confirmation, "Passwortbestätigung", :class => 'col-sm-2 control-label' %>
<%= f.password_field :password_confirmation, :class => 'form-control' %>
<%= f.label :current_password, "Bisheriges Passwort", :class => 'col-sm-2 control-label' %>
<%= f.password_field :current_password, :class => 'form-control' %> wir benötigen Ihr aktuelles Passwort, um die Änderung zu bestätigen
<%= f.submit "Speichern", :class => 'btn btn-primary' %>
<% end %>
<%# FIXME: generating tokens does not work %> <% if false %>
Token
Token
<%= resource.authentication_token.blank? ? "Kein Token" : resource.authentication_token %>
 
<%= link_to "Token erzeugen", token_authentications_path(:user_id => resource.id), :method => :post, :confirm => "Sind Sie sicher?", :class => 'btn btn-default' %> <%= link_to "Token löschen", token_authentication_path(resource), :method => :delete, :confirm => "Sind Sie sicher?", :class => 'btn btn-danger' %>
<% if resource.authentication_token %> Sie können diese URL zum Anmelden benutzen <%= link_to "http://maps.zh.ch#{root_path(:user_token => resource.authentication_token)}", root_path(:user_token => resource.authentication_token) %> <% end %>
<% end %>