Sha256: 47f836491e919daf63336da3b96ea053c3eb00f491778127167ac4a99711ecad
Contents?: true
Size: 1.48 KB
Versions: 10
Compression:
Stored size: 1.48 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>" unless @user.new_record? %> </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
10 entries across 10 versions & 1 rubygems