mattvanhorn/BJJLife

View on GitHub
app/views/accounts/edit.html.haml

Summary

Maintainability
Test Coverage
#videos.grid
  = standard_header

  .main
    .row
      = simple_form_for current_user, :url => account_path do |form|
        %fieldset
          %legend= t('.legend.profile_details')
          = form.input :username, :hint => 'This is what will show up under the things you post'
          = form.input :teacher
          = form.input :rank
          = form.fields_for :location_attributes, current_user.location do |fields|
            = fields.input :city
            = fields.input :us_state
            = fields.input :postal_code
        %fieldset
          %legend= t('.legend.account_identity')
          = form.fields_for :identity_attributes, current_user.identity do |fields|
            = fields.input :email, :hint => 'This will never be shown to other users'
            = fields.input :password, :as => 'password', :hint => 'Only if you want to change your password'
            = fields.input :password_confirmation, :label => "Confirm Password", :as => 'password', :hint => 'Only if you want to change your password'

        = form.button :submit
  .sidebar
    TBD