<%= t(".page_heading") %>

<%= error_messages_for :user %> <%= error_messages_for @user.profile %> <%= render "edit_header_navigation" %>

<%= t(".public_information_notice_html", privacy_policy_link: link_to(t(".privacy_policy"), privacy_path)) %>

<%= t(".change_profile_landmark") %>

<%= form_for(@user) do |f| %>
<%= fields_for :profile_attributes, @user.profile do |p| %>
<%= p.label :title, t(".title") %>
<%= p.text_field :title, class: "observe_textlength" %> <%= live_validation_for_field("profile_attributes_title", presence: false, maximum_length: Profile::PROFILE_TITLE_MAX) %> <%= generate_countdown_html("profile_attributes_title", Profile::PROFILE_TITLE_MAX) %>
<%= p.label :about_me, t(".about_me") %>

<%= allowed_html_instructions %>

<%= p.text_area :about_me, class: "observe_textlength" %> <%= live_validation_for_field("profile_attributes_about_me", presence: false, maximum_length: Profile::ABOUT_ME_MAX) %> <%= generate_countdown_html("profile_attributes_about_me", Profile::ABOUT_ME_MAX) %>
<% if policy(@user.profile).can_edit_profile? %>
<%= p.label :ticket_number, class: "required" %>
<%= p.text_field :ticket_number, class: "required" %>
<% end %>
<%= p.label :update, t(".update") %>
<%= f.submit t(".update") %>
<% end %>
<% end %>