<%if @error%>
<%= @error %>
<%end%>
<% if @user.present? and @user.errors.any? %>
<% @user.errors.full_messages.each do |msg| %>
<%= msg %>
<% end %>
<% end %>
<%if @success%>
<%= @success %>
<%- if @requires_approval %>
<%= t 'login.not_approved' %>
<% else %>
"><%= t('password_reset.continue', site_name: SiteSetting.title) %>
<% end %>
<% else %>
<%if @user.present? %>
<% if @user.has_password? %>
<%= t 'password_reset.choose_new' %>
<% else %>
<%= t 'password_reset.choose' %>
<% end %>
<%=form_tag({}, method: :put) do %>
<%= t 'js.login.caps_lock_warning' %>
<%=submit_tag( @user.has_password? ? t('password_reset.update') : t('password_reset.save'), class: 'btn')%>
<%end%>
<%end%>
<%end%>
<%- content_for(:no_ember_head) do %>
<%= script "ember_jquery" %>
<%- end %>