Sha256: 055a43cc03c04d1db2074602b06f535d3c32853c875400209e5503dbe7065a13

Contents?: true

Size: 1.5 KB

Versions: 25

Compression:

Stored size: 1.5 KB

Contents

%h2= t('.edit_profile')

.row
  .col-md-4

    = errors_for(current_user)

    = form_for current_user, url: user_path(current_user), role: 'form' do |form|
      .form-group= form.text_field :email, class: 'name form-control', placeholder: t('.email')
      .form-group= form.password_field :password, value: '', class: 'description form-control', placeholder: t('.current_password')
      .form-group= form.text_field :new_password, value: '', class: 'description form-control', placeholder: t('.new_password')

      = form.submit t('.update'), class: 'btn btn-primary btn-sm'

  .col-md-5.col-md-offset-1
    .row.col-sm-4
      .thumbnail
        = user_avatar(current_user)
    .row.col-sm-7.col-sm-offset-1
      .row
        %strong=t('.avatar')
      = form_for current_user, url: user_avatar_update_path(current_user), role: 'form', multipart: true do |form|
        .row
          %p= t('.avatar_upload_description')
        .row= form.file_field :avatar
        .row= form.text_field :avatar_url, placeholder: 'http://...'
        .row= form.submit t('.update_avatar'), class: 'btn btn-primary btn-sm submit_update_avatar'
%br
%h2= t('.edit_additional_info')
.row
  .col-md-4
    = form_for current_user, url: user_path(current_user), role: 'form' do |form|
      - additional_info_attrs.each do |attr|
        .form-group= form.text_field attr, value: current_user.send(attr), class: 'name form-control', placeholder: t("my_forum.additional_info.#{attr.to_s}")

      = form.submit t('.update'), class: 'btn btn-primary btn-sm'

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
my_forum-0.0.2.4 app/views/my_forum/users/edit.haml
my_forum-0.0.2.3 app/views/my_forum/users/edit.haml
my_forum-0.0.2.2 app/views/my_forum/users/edit.haml
my_forum-0.0.2.1 app/views/my_forum/users/edit.haml
my_forum-0.0.2 app/views/my_forum/users/edit.haml
my_forum-0.0.1.beta60 app/views/my_forum/users/edit.haml
my_forum-0.0.1.beta59 app/views/my_forum/users/edit.haml
my_forum-0.0.1.beta58 app/views/my_forum/users/edit.haml
my_forum-0.0.1.beta57 app/views/my_forum/users/edit.haml
my_forum-0.0.1.beta56 app/views/my_forum/users/edit.haml
my_forum-0.0.1.beta55 app/views/my_forum/users/edit.haml
my_forum-0.0.1.beta54 app/views/my_forum/users/edit.haml
my_forum-0.0.1.beta53 app/views/my_forum/users/edit.haml
my_forum-0.0.1.beta52 app/views/my_forum/users/edit.haml
my_forum-0.0.1.beta51 app/views/my_forum/users/edit.haml
my_forum-0.0.1.beta50 app/views/my_forum/users/edit.haml
my_forum-0.0.1.beta49 app/views/my_forum/users/edit.haml
my_forum-0.0.1.beta48 app/views/my_forum/users/edit.haml
my_forum-0.0.1.beta47 app/views/my_forum/users/edit.haml
my_forum-0.0.1.beta46 app/views/my_forum/users/edit.haml