Sha256: 47adb639c160889b7f6000b3cefca52155112302f014fa1e88c97d89d69df90d

Contents?: true

Size: 1.37 KB

Versions: 1

Compression:

Stored size: 1.37 KB

Contents

<%= error_messages_for :user %>
<% form_for [:admin, @user] do |f| %>
	<div class='field'>
		<%= f.label :login %>
		<%= f.text_field :login %>
	</div>
	<div class='field'>
		<%= f.label :email %>
		<%= f.text_field :email %>
	</div>
	<div class='field'>
		<%= f.label :password %>
		<%= f.password_field :password %><br />
		<span class="preview">Leaving password blank keeps the current password</span>
	</div>
	<div class='field'>
		<%= f.label :password_confirmation %>
		<%= f.password_field :password_confirmation %>
	</div>
	<div class='field'>
		<%= f.label :plugin_access %>
		<ul id='plugins'>
			<% @available_plugins.each do |plugin| -%>
			  <%# Since the dashboard is always included by the framework, this will maintain the user's order %>
			  <% if Refinery::Plugins.always_allowed.titles.include?(plugin) or (plugin == 'Users' and @user.id == current_user.id) %>
			    <%= hidden_field_tag 'user[plugins][]', plugin %>
			  <% else %>
					<li>
				    <%= check_box_tag 'user[plugins][]', plugin, @selected_plugin_titles.include?(plugin), :id => "plugins_#{plugin.downcase.gsub(" ", "_")}" %>
						<%= f.label 'user[plugins][]', plugin, :class => "stripped", :for => "plugins_#{plugin.downcase.gsub(" ", "_")}" %>
					</li>
			  <% end %>
			<% end %>
		</ul>
	</div>
	<%= render :partial => "/shared/admin/form_actions", :locals => {:f => f, :continue_editing => false} %>
	
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
refinerycms-0.9.5.13 vendor/plugins/authentication/app/views/admin/users/_form.html.erb