Sha256: 46e311c7072cdf1eeb3ad2da07b719e3577087ae4edbb4dc42243c005f58f16f
Contents?: true
Size: 1.48 KB
Versions: 8
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> </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> <div class='form-actions'> <%= f.submit 'Save', :id => "submit_button" %> or <%= link_to "Cancel", admin_users_url, :title => "Cancelling will lose all changes you've made to this news item" %> </div> <% end %>
Version data entries
8 entries across 8 versions & 1 rubygems