Sha256: e8413ce0293f56956a5c74d9098bc8d1b86b2333c3c3cfa8f19ef69312fa7f59

Contents?: true

Size: 1.58 KB

Versions: 11

Compression:

Stored size: 1.58 KB

Contents

<h2>Edit <%= resource_name.to_s.humanize %></h2>

<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
	<%= devise_error_messages! %>
	
	<div class="row">
		<%= f.label :login %>
		<%= f.text_field :login %>
	</div>
	
	<div class="row">
		<%= f.label :email %>
		<%= f.text_field :email %>
	</div>
	
	<div class="row">
		<%= f.label :password %> <i>(leave blank if you don't want to change it)</i>
		<%= f.password_field :password %>
	</div>
	
	<div class="row">
		<%= f.label :password_confirmation %>
		<%= f.password_field :password_confirmation %>
	</div>
	
	<div class="row">
		<%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i>
		<%= f.password_field :current_password %>
	</div>
	
	<div class="row">
		<%= f.submit "Update" %>
	</div>

	<div class="row">
		<%= f.label :token_authentication_key %>
	  	<p><%= resource.authentication_token.blank? ? "Token Empty" : resource.authentication_token %></p>
	</div>

	<div class="row">
  		<%= link_to "Generate Token", token_authentications_path(:user_id => resource.id), :method => :post, :confirm => "Are you sure?"  %>
  		<%= link_to "Delete Token", token_authentication_path(resource), :method => :delete, :confirm => "Are you sure?"  %>
	</div>

	<div class="row">
		<% if resource.authentication_token %>
			<p>You can use this url to login<br />
			<%= link_to "http://maps.zh.ch#{root_path(:user_token => resource.authentication_token)}", root_path(:user_token => resource.authentication_token)  %></p>
		<% end %>
	</div>




<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

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