Skip to content

Commit aeb8c03

Browse files
ryanwoldatworksanason
authored andcommitted
remove early submission
* this was for the v1 of the a-11 form design
1 parent 63a82bf commit aeb8c03

18 files changed

Lines changed: 7 additions & 212 deletions

File tree

app/controllers/admin/forms_controller.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,6 @@ def form_params
502502
:hisp,
503503
:template,
504504
:kind,
505-
:early_submission,
506505
:notes,
507506
:status,
508507
:title,
@@ -576,7 +575,6 @@ def form_admin_options_params
576575
:template,
577576
:kind,
578577
:aasm_state,
579-
:early_submission,
580578
:enable_turnstile,
581579
:append_id_to_success_text,
582580
:notes,

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: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
<div class="usa-hint font-sans-2xs">
9393
YYYY-MM-DD
9494
</div>
95-
<%= f.date_field :expiration_date, class: "usa-input" %>
95+
<%= f.text_field :expiration_date, class: "usa-input" %>
9696
</div>
9797

9898
<fieldset class="usa-fieldset margin-top-2">
@@ -107,18 +107,6 @@
107107
<% end %>
108108
</div>
109109
</fieldset>
110-
<fieldset class="usa-fieldset margin-top-2">
111-
<legend class="usa-sr-only">Display Organization Tag Logo</legend>
112-
<div class="usa-checkbox">
113-
<%= f.check_box :early_submission, class: "usa-checkbox__input" %>
114-
<%= f.label :early_submission, class: "usa-checkbox__label" do %>
115-
Early Submission
116-
<small class="text-base">
117-
Display a submit button at the end of the first page in a multi-page form?
118-
</small>
119-
<% end %>
120-
</div>
121-
</fieldset>
122110
<fieldset class="usa-fieldset">
123111
<legend class="usa-sr-only">Load USWDS</legend>
124112
<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
@@ -91,13 +91,7 @@
9191

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

config/locales/en.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,6 @@ en:
172172
submit: "Submit"
173173
submit_thankyou: "Thank you. Your feedback has been received."
174174
help_improve: "Help improve this site"
175-
answer_more_questions: "Would you like to take two more minutes to answer more questions to help us improve our services?"
176-
yes_keep_going: "Yes, keep going →"
177-
no_submit: "No, only submit these responses"
178175
next: "Next →"
179176
back: "← Back"
180177
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

db/schema.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@
253253
t.text "success_text"
254254
t.string "modal_button_text"
255255
t.boolean "display_header_square_logo"
256-
t.boolean "early_submission", default: false
257256
t.integer "user_id"
258257
t.boolean "template", default: false
259258
t.string "uuid"

0 commit comments

Comments
 (0)