Sha256: ec2997491132ba6498762198342a114aec61938d600ae5a9627deffddd3547c4

Contents?: true

Size: 1.47 KB

Versions: 2

Compression:

Stored size: 1.47 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, 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

2 entries across 2 versions & 1 rubygems

Version Path
my_forum-0.0.1.beta39 app/views/my_forum/users/edit.haml
my_forum-0.0.1.beta38 app/views/my_forum/users/edit.haml