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