Sha256: e160ee8ed8e165d1009635b2ff8a28307d2f2233c784e9db1816cfdad4a24008

Contents?: true

Size: 1.17 KB

Versions: 3

Compression:

Stored size: 1.17 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>

	<% current_user.groups.each do |group| %>
		<% if File.exist?(File.join(Rails.root, 'app', 'views', 'registrations', group.name)) %>
		<fieldset>
			<%#<legend><%= group.name % ></legend>%>
		    <%= render :partial => "registrations/#{group.name}/app_infos", :locals => {:f => f} %>
		</fieldset>
		<% end %>
	<% end %>
	
	<div class="row">
		<%= f.submit "Update" %>
	</div>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gb_mapfish_appserver-0.0.3 app/views/registrations/edit.html.erb
gb_mapfish_appserver-0.0.2 app/views/registrations/edit.html.erb
gb_mapfish_appserver-0.0.1 app/views/registrations/edit.html.erb