-if is_mobile_request?
%div{'data-role' => 'header','data-theme'=>"b"} = link_to "home", root_url, 'data-role' => 'button' ,'data-icon'=>'home','data-iconpos'=>"notext" %h2=t 'devise.common.forgot_your_password' %div{'data-role' => 'content'} = form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { 'data-ajax'=>"false",:method => :post }) do |f| - @flash=devise_error_messages2! %div.field.fieldcontain.ui-hide-label = f.label :email = f.email_field :email,:placeholder=>:email .center-button= f.submit t('devise.passwords.new.send_me_reset_password_instructions') ,'data-inline'=>"true" ,'data-theme'=>"b", 'data-icon'=>"arrow-r" = render :partial => "devise/shared/links" = render "layouts/alerte_mobile" if @flash !=""
-else
.panel.panel-default .panel-heading %h4=t 'devise.common.forgot_your_password' .panel-body = form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| = devise_error_messages! .form-group = f.email_field :email,:autofocus=> true, :class=> "form-control",:placeholder => t('activerecord.attributes.user.email') %p= f.submit t('devise.passwords.new.send_me_reset_password_instructions') ,:class=> "btn btn-primary" = render :partial => "devise/shared/links"