app/views/iugu/sessions/new.html.haml in iugusdk-1.0.0.alpha.1 vs app/views/iugu/sessions/new.html.haml in iugusdk-1.0.0.alpha.2
- old
+ new
@@ -1,9 +1,10 @@
%h2 Sign in
-= simple_form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|
- .inputs
- = f.input :email, :required => false, :autofocus => true
- = f.input :password, :required => false
- = f.input :remember_me, :as => :boolean if devise_mapping.rememberable?
- .actions
- = f.button :submit, "Sign in"
-= render :partial => "devise/shared/links"
+- unless IuguSDK::enable_social_only
+ = simple_form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|
+ .inputs
+ = f.input :email, :required => false, :autofocus => true
+ = f.input :password, :required => false
+ = f.input :remember_me, :as => :boolean if devise_mapping.rememberable?
+ .actions
+ = f.button :submit, "Sign in"
+= render :partial => "iugu/shared/links"