show.html.haml 1012 B

12345678910111213141516
  1. - content_for :page_title do
  2. = t('settings.edit_profile')
  3. = simple_form_for @account, url: settings_profile_path, html: { method: :put } do |f|
  4. = render 'shared/error_messages', object: @account
  5. .fields-group
  6. = f.input :display_name, placeholder: t('simple_form.labels.defaults.display_name'), hint: t('simple_form.hints.defaults.display_name', counter: "<span class=\"name-counter\">#{30 - @account.display_name.size}</span>").html_safe
  7. = f.input :note, placeholder: t('simple_form.labels.defaults.note'), hint: t('simple_form.hints.defaults.note', counter: "<span class=\"note-counter\">#{160 - @account.note.size}</span>").html_safe
  8. = f.input :avatar, wrapper: :with_label, hint: t('simple_form.hints.defaults.avatar')
  9. = f.input :header, wrapper: :with_label, hint: t('simple_form.hints.defaults.header')
  10. = f.input :locked, as: :boolean, wrapper: :with_label, hint: t('simple_form.hints.defaults.locked')
  11. .actions
  12. = f.button :button, t('generic.save_changes'), type: :submit