adds terms of services to organizations
This commit is contained in:
@@ -29,7 +29,7 @@ class Organizations::RegistrationsController < Devise::RegistrationsController
|
||||
private
|
||||
|
||||
def sign_up_params
|
||||
params.require(:user).permit(:email, :password, :phone_number, :password_confirmation, :captcha, :captcha_key, organization_attributes: [:name])
|
||||
params.require(:user).permit(:email, :password, :phone_number, :password_confirmation, :captcha, :captcha_key, :terms_of_service, organization_attributes: [:name])
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -22,14 +22,14 @@
|
||||
|
||||
<%= f.simple_captcha input_html: {required: false} %>
|
||||
|
||||
<!-- Makes me work! -->
|
||||
<%= f.label :remember_me do %>
|
||||
<%= f.check_box :remember_me, label: false %>
|
||||
|
||||
<%= f.label :terms_of_service do %>
|
||||
<%= f.check_box :terms_of_service, label: false %>
|
||||
<span class="checkbox">
|
||||
<%= t("devise_views.users.registrations.new.terms",
|
||||
terms: link_to(t("devise_views.users.registrations.new.terms_link"), "/conditions", target: "_blank")).html_safe %></span>
|
||||
<% end %>
|
||||
<!-- /. Makes me work! -->
|
||||
|
||||
|
||||
<%= f.submit t("devise_views.organizations.registrations.new.submit"), class: "button radius expand" %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user