Sha256: f0fbd4bf2d9a7869d9bd5e63300e8f62f1a47c57c9f7d5be7e3d24e6a6cb1da8
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
<%= admin_form_for [:admin, current_resource], :html => {:multipart => true} do |f| %> <%= f.errors %> <%= f.inputs do %> <%= f.input :email %> <% end %> <% if current_resource.persisted? %> <%= link_to t('fullstack.admin.edit', :default => "Edit") + " " + t('helpers.label.password', :default => "password"), "javascript:void(0);", :id => "edit_your_password", :class => "btn btn-small" %> <div id="password_fields" style="display:none;"> <% else %> <div> <% end %> <%= f.inputs do %> <%= f.input :password %> <%= f.input :password_confirmation %> <% end %> </div> <%= f.actions do %> <%= f.resource_submit %> <% end %> <% end %> <% content_for :javascripts do -%> <%= coffee_script_tag do %> html = $("#password_fields").find("fieldset") html.remove() $("#password_fields").show() $(document).ready -> $("#edit_your_password").click -> elems = $(html) elems.hide() $("#password_fields").empty().append(elems) elems.show('slow') $(@).remove() <% end %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fullstack-cms-0.1.5 | app/views/admin/users/_form.html.erb |