Sha256: 1f6d282d5dcb41bb99e643399f3ab1b215c51fda06649611988ca49eb97af7ec
Contents?: true
Size: 1.45 KB
Versions: 43
Compression:
Stored size: 1.45 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
43 entries across 43 versions & 2 rubygems