Sha256: 85f79bcbeb495915c4e10ae56cef28b091570d6f5c76ab3a255300b2346889ab

Contents?: true

Size: 826 Bytes

Versions: 3

Compression:

Stored size: 826 Bytes

Contents

= form_for @user do |f|
  = f.error_messages
  = field_set_tag "User Details" do
    %dl
      %dt= f.label :first_name
      %dd= f.text_field :first_name
    %dl
      %dt= f.label :last_name
      %dd= f.text_field :last_name
  = field_set_tag "Login" do
    %dl
      %dt= f.label :email_address
      %dd= f.text_field :email_address
    %dl
      %dt= f.label :password
      %dd= f.password_field :password
    %dl
      %dt= f.label :password_confirmation, "...and again"
      %dd= f.password_field :password_confirmation


  %p.submit
    - unless @user.new_record?
      %span.right= link_to "Delete", @user, :class => 'button purple', :method => :delete, :data => {:confirm => "Are you sure you wish to remove this user?"}
    = f.submit :class => 'button green'
    = link_to "Cancel", :users, :class => 'button'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shoppe-0.0.7 app/views/shoppe/users/_form.html.haml
shoppe-0.0.6 app/views/shoppe/users/_form.html.haml
shoppe-0.0.5 app/views/shoppe/users/_form.html.haml