<%if flash[:error]%>
<%=flash[:error]%>
<%end%> <% if @user.present? and @user.errors.any? %>
<% @user.errors.full_messages.each do |msg| %>
  • <%= msg %>
  • <% end %>
    <% end %> <%if flash[:success]%>
    <%=flash[:success]%>

    <%- if @requires_approval %> <%= t 'login.not_approved' %> <% else %> <%= raw t 'activation.please_continue', link: link_to(SiteSetting.title, root_path) %> <% end %>

    <% else %> <%if @user.present? %>

    <%= t 'password_reset.choose_new' %>

    <%=form_tag({}, method: :put) do %>

    <%=submit_tag(t('password_reset.update'), class: 'btn')%>

    <%end%> <%end%> <%end%>