philomena/lib/philomena_web/templates/profile/description/edit.html.slime

22 lines
777 B
Text
Raw Normal View History

h1 Updating Profile Description
= form_for @changeset, Routes.profile_description_path(@conn, :update, @user), [method: "put"], fn f ->
= if @changeset.action do
.alert.alert-danger
p Oops, something went wrong! Please check the errors below.
.block
.block__header
span.block__header__title Personal Title
.block__content
.field
= text_input f, :personal_title, class: "input input--short", placeholder: "Title"
= error_tag f, :personal_title
.block
div
= render PhilomenaWeb.MarkdownView, "_input.html", conn: @conn, f: f, action_text: "About Me", placeholder: "Description (up to 10000 characters)", name: :description
.block__content.communication-edit__actions
2019-12-15 19:04:41 +01:00
=> submit "Update", class: "button"