40 lines
1.8 KiB
Plaintext
40 lines
1.8 KiB
Plaintext
<h2><%= t("devise_views.organizations.registrations.new.title") %></h2>
|
|
|
|
<%= form_for(resource, as: :user, url: organization_registration_path) do |f| %>
|
|
<%= render 'shared/errors', resource: resource %>
|
|
<div class="row">
|
|
<div class="small-12 column">
|
|
|
|
<%= f.fields_for :organization do |fo| %>
|
|
<%= fo.text_field :name, autofocus: true, placeholder: t("devise_views.organizations.registrations.new.organization_name_label") %>
|
|
<% end %>
|
|
|
|
<%= f.email_field :email, placeholder: t("devise_views.organizations.registrations.new.email_label") %>
|
|
|
|
<%= f.text_field :phone_number, placeholder: t("devise_views.organizations.registrations.new.phone_number_label") %>
|
|
|
|
<%= f.password_field :password, autocomplete: "off",
|
|
placeholder: t("devise_views.organizations.registrations.new.password_label") %>
|
|
|
|
<%= f.password_field :password_confirmation, autocomplete: "off",
|
|
label: t("devise_views.organizations.registrations.new.password_confirmation_label"),
|
|
placeholder: t("devise_views.organizations.registrations.new.password_confirmation_label") %>
|
|
|
|
<%= f.simple_captcha input_html: {required: false} %>
|
|
|
|
<!-- Makes me work! -->
|
|
<%= f.label :remember_me do %>
|
|
<%= f.check_box :remember_me, 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>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= render "devise/shared/links" %>
|