<% content_for(:title, t("camaleon_cms.admin.login.forgot_your_password_int")) %>
<%= render "layouts/camaleon_cms/admin/flash_messages" %> <% if @form_reset.present? %>

<%= t('camaleon_cms.admin.login.reset_password') %>

<%= form_for(@user, as: "user", :html => { method: "post", role: "form", id:"login_user", class: "form-horizontal" }, :url => cama_admin_forgot_path({h: params[:h]}) ) do |f| %>
<%= f.password_field :password, :class => "form-control", :placeholder => t('camaleon_cms.admin.table.password', default: 'Password') %>
<%= f.password_field :password_confirmation, :class => "form-control", :placeholder => t('camaleon_cms.admin.table.password_confirmation', default: 'Password Confirmation') %>
<% end %> <% else %>

<%= raw t('camaleon_cms.admin.login.reset_password_html')%>

<%= form_for(@user, as: "user", :html => { method: "post", role: "form", id:"login_user", class: "form-horizontal" }, :url => cama_admin_forgot_path ) do |f| %>
<%= f.email_field :email, :class => "form-control", :placeholder => t("camaleon_cms.admin.login.email", default: 'Email') %>
<% end %> <% end %>
<%= link_to("#{t("camaleon_cms.common.login", default: 'Log In')}»".html_safe, cama_admin_login_path, class: "btn btn-default") %>