diff --git a/app/views/organizations/staff/fosterer_invitations/_form.html.erb b/app/views/organizations/staff/fosterer_invitations/_form.html.erb index cdb070c2b..dda8a6657 100644 --- a/app/views/organizations/staff/fosterer_invitations/_form.html.erb +++ b/app/views/organizations/staff/fosterer_invitations/_form.html.erb @@ -1,54 +1,54 @@ -
-
- - <%= bootstrap_form_with model: user, url: invitation_path(user) do |form| %> -
+<%= bootstrap_form_with model: user, url: invitation_path(user) do |form| %> +
+
+ Foster Details +
+ +
+ +
-
-
- <%= form.text_field :first_name, class: "form-control", required: true %> -
+
+ <%= form.text_field :first_name, class: "form-control", wrapper_class: "w-100", required: true %>
+ -
-
- <%= form.text_field :last_name, class: "form-control", required: true %> -
+
+ <%= form.text_field :last_name, class: "form-control", wrapper_class: "w-100", required: true %>
+ -
-
- <%= form.text_field :email, class: "form-control", required: true %> -
+
+ <%= form.text_field :email, class: "form-control", required: true, wrapper_class: "w-100" %>
+ <%= form.fields_for :person do |person_form| %> -
-
- <%= person_form.telephone_field :phone_number, - class: "form-control", - required: false - %> -
+
+ <%= person_form.telephone_field :phone_number, + class: "form-control", + wrapper_class: "w-100", + required: false + %>
+ -
-
- -
- <%= person_form.fields_for :location, user.person.location do |location_form| %> - <%= render 'shared/location_fields', form: location_form %> - <% end %> -
+
+ +
+ <%= person_form.fields_for :location, user.person.location do |location_form| %> + <%= render 'shared/location_fields', form: location_form %> + <% end %>
<% end %> + <%= form.hidden_field :roles, value: :fosterer %> - -
- <%= form.submit t("general.send_invite"), class: "btn btn-primary" %> -
- <% end %> +
+ +
-
+<% end %> diff --git a/app/views/organizations/staff/fosterer_invitations/new.html.erb b/app/views/organizations/staff/fosterer_invitations/new.html.erb index f0a6902f9..7bcf9849e 100644 --- a/app/views/organizations/staff/fosterer_invitations/new.html.erb +++ b/app/views/organizations/staff/fosterer_invitations/new.html.erb @@ -1,6 +1,8 @@ <%= render DashboardPageComponent.new(crumb: :invite_fosterer) do |c| %> <% c.with_header_title { t("invite_fosterer") } %> <% c.with_body do |b| %> - <%= render "organizations/staff/fosterer_invitations/form", user: @user %> +
+ <%= render "organizations/staff/fosterer_invitations/form", user: @user %> +
<% end %> <% end %>