app/views/iugu/registrations/new.html.haml in iugusdk-1.0.0.alpha.22 vs app/views/iugu/registrations/new.html.haml in iugusdk-1.0.0.alpha.23
- old
+ new
@@ -31,11 +31,11 @@
= f.input :password_confirmation, :required => false, :placeholder => I18n.t("activerecord.attributes.password_confirmation"), :label => false
- if IuguSDK::enable_alias_on_signup
= f.input :account_alias, :label => 'Alias'
= render :partial => "iugu/shared/signup_fields", :locals => {:f => f}
= f.hidden_field :locale, :value => @matched_locale_from_browser
- - if params[:invitation_token].blank?
- = f.hidden_field :user_invitation, :value => params[:invitation_token].blank?
+ - unless params[:invitation_token].blank?
+ = f.hidden_field :user_invitation, :value => params[:invitation_token]
- if IuguSDK::enable_subscription_features
= f.hidden_field :plan_identifier, value: @plan_identifier
= f.hidden_field :currency, value: @currency
.actions
= f.button :submit, I18n.t("iugu.sign_up"), :class => "full-width default no-bottom-margin"