app/views/iugu/sessions/new.html.haml in iugusdk-1.0.5 vs app/views/iugu/sessions/new.html.haml in iugusdk-1.0.6

- old
+ new

@@ -15,31 +15,30 @@ - if msg.is_a? String .notice.notice-red{ :class => name } %h4.notice-heading = msg - - if IuguSDK::enable_signup_form - = simple_form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => { :class => "no-bottom-margin" }) do |f| - .inputs - = f.input :email, :required => false, :autofocus => true, :placeholder => "E-Mail", :label => false + = simple_form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => { :class => "no-bottom-margin" }) do |f| + .inputs + = f.input :email, :required => false, :autofocus => true, :placeholder => "E-Mail", :label => false - = f.input :password, :required => false, :placeholder => I18n.t("activerecord.attributes.password"), :label => false - // = f.input :remember_me, :as => :boolean, :label => I18n.t("activerecord.attributes.remember_me") if devise_mapping.rememberable? - - if !params[:invitation_token].blank? - = f.input :user_invitation, as: :hidden, input_html: { value: params[:invitation_token] } - .actions - = f.button :submit, I18n.t("iugu.sign_in"), :class => "full-width default" + = f.input :password, :required => false, :placeholder => I18n.t("activerecord.attributes.password"), :label => false + // = f.input :remember_me, :as => :boolean, :label => I18n.t("activerecord.attributes.remember_me") if devise_mapping.rememberable? + - if !params[:invitation_token].blank? + = f.input :user_invitation, as: :hidden, input_html: { value: params[:invitation_token] } + .actions + = f.button :submit, I18n.t("iugu.sign_in"), :class => "full-width default" - - if devise_mapping.recoverable? && controller_name != 'passwords' - = link_to I18n.t("iugu.forgot_your_password?"), new_password_path(resource_name), :class => "button full-width no-bottom-margin" + - if devise_mapping.recoverable? && controller_name != 'passwords' + = link_to I18n.t("iugu.forgot_your_password?"), new_password_path(resource_name), :class => "button full-width no-bottom-margin" - - if IuguSDK::enable_social_login - .social - .text - = I18n.t("iugu.or_sign_up_with") - - if devise_mapping.omniauthable? - - resource_class.omniauth_providers.each do |provider| - = link_to "#{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider), :class => "full-width button no-bottom-margin default #{provider.to_s}" + - if IuguSDK::enable_social_login + .social + .text + = I18n.t("iugu.or_sign_up_with") + - if devise_mapping.omniauthable? + - resource_class.omniauth_providers.each do |provider| + = link_to "#{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider), :class => "full-width button no-bottom-margin default #{provider.to_s}" - if IuguSDK::enable_user_confirmation - if devise_mapping.confirmable? && controller_name != 'confirmations' .text