Skip to content

Commit bf2f0e7

Browse files
remove early submission
* this was for the v1 of the a-11 form design
1 parent ac68ceb commit bf2f0e7

19 files changed

Lines changed: 7 additions & 215 deletions

File tree

app/controllers/admin/forms_controller.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,6 @@ def form_params
489489
:hisp,
490490
:template,
491491
:kind,
492-
:early_submission,
493492
:notes,
494493
:status,
495494
:title,
@@ -583,7 +582,6 @@ def form_admin_options_params
583582
:template,
584583
:kind,
585584
:aasm_state,
586-
:early_submission,
587585
:notes,
588586
:status,
589587
:title,

app/serializers/form_serializer.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ class FormSerializer < ActiveModel::Serializer
2727
:success_text,
2828
:modal_button_text,
2929
:display_header_square_logo,
30-
:early_submission,
3130
:user_id,
3231
:template,
3332
:uuid,

app/serializers/full_form_serializer.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ def links
4949
:success_text,
5050
:modal_button_text,
5151
:display_header_square_logo,
52-
:early_submission,
5352
:template,
5453
:uuid,
5554
:short_uuid,

app/views/admin/forms/_form_manager_options.html.erb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -95,18 +95,6 @@
9595
<%= f.text_field :expiration_date, class: "usa-input" %>
9696
</div>
9797

98-
<fieldset class="usa-fieldset margin-top-2">
99-
<legend class="usa-sr-only">Display Organization Tag Logo</legend>
100-
<div class="usa-checkbox">
101-
<%= f.check_box :early_submission, class: "usa-checkbox__input" %>
102-
<%= f.label :early_submission, class: "usa-checkbox__label" do %>
103-
Early Submission
104-
<small class="text-base">
105-
Display a submit button at the end of the first page in a multi-page form?
106-
</small>
107-
<% end %>
108-
</div>
109-
</fieldset>
11098
<fieldset class="usa-fieldset">
11199
<legend class="usa-sr-only">Load USWDS</legend>
112100
<div class="usa-checkbox">

app/views/components/forms/_custom.html.erb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,7 @@
8989

9090
<%- if (section != form.form_sections.first) || (section != form.form_sections.last) %>
9191
<div class="pagination-buttons">
92-
<%- if (section == form.form_sections.first) && form.early_submission? %>
93-
<div class="usa-prose text-bold margin-top-3">
94-
<%= t 'form.answer_more_questions' %>
95-
</div>
96-
<%= link_to (t 'form.yes_keep_going'), "#next-page", class: "usa-button next-section", 'data-form-section-target' => "" %>
97-
<button type="submit" class="usa-button usa-button--outline fba-early-submit"><%= t 'form.no_submit' %></button>
98-
<% elsif section != form.form_sections.last %>
92+
<%- if section != form.form_sections.last %>
9993
<nav aria-label="Pagination" class="pagination-buttons text-right">
10094
<%= link_to "#next-page",
10195
class: "next-section usa-button",

config/locales/en-US.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ en-US:
7979
submit: "Submit"
8080
submit_thankyou: "Thank you. Your feedback has been received."
8181
help_improve: "Help improve this site"
82-
answer_more_questions: "Would you like to take two more minutes to answer more questions to help us improve our services?"
83-
yes_keep_going: "Yes, keep going →"
84-
no_submit: "No, only submit these responses"
8582
next: "Next →"
8683
back: "← Back"
8784
select_one: "Select one"

config/locales/en.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,6 @@ en-US:
143143
submit: "Submit"
144144
submit_thankyou: "Thank you. Your feedback has been received."
145145
help_improve: "Help improve this site"
146-
answer_more_questions: "Would you like to take two more minutes to answer more questions to help us improve our services?"
147-
yes_keep_going: "Yes, keep going →"
148-
no_submit: "No, only submit these responses"
149146
next: "Next →"
150147
back: "← Back"
151148
select_one: "Select one"

config/locales/es.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ es:
3030
submit: "Enviar"
3131
submit_thankyou: "Gracias. Su comentario ha sido recibido."
3232
help_improve: "Ayuda a mejorar este sitio"
33-
answer_more_questions: "¿Le gustaría tomar dos minutos más para responder más preguntas y ayudarnos a mejorar nuestros servicios?"
34-
yes_keep_going: "Sí, sigue adelante →"
35-
no_submit: "No, solo envíe estas respuestas"
3633
next: "Siguiente →"
3734
back: "← Volver"
3835
select_one: "Seleccione uno"

config/locales/zh-CN.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ zh-CN:
5050
submit: "提交"
5151
submit_thankyou: "谢谢. 已收到您的反馈."
5252
help_improve: "帮助改善这个网站"
53-
answer_more_questions: "您是否想再花两分钟回答另外五个问题,以帮助我们改善服务质量?"
54-
yes_keep_going: "是的,继续前进→"
55-
no_submit: "不,仅提交这些回复"
5653
next: "下一个→"
5754
back: "←返回"
5855
select_one: "选择一个"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class RemoveFormEarlySubmission < ActiveRecord::Migration[7.2]
2+
def change
3+
remove_column :forms, :early_submission
4+
end
5+
end

0 commit comments

Comments
 (0)