Browse Source
* persist how to fix choice * fix choice decision persisted * set no cache headers * add chosen to sales journey * set no cache headers for sales * fix linting * Add chosen journey for sales soft validations * Add chosen journey for lettings soft validations * Update copy * Also redirect fix inline and confirm if soft validations are chosen to be bulk fixed --------- Co-authored-by: Kat <katrina@kosiak.co.uk>pull/1687/head
Phil Lee
2 years ago
committed by
GitHub
26 changed files with 536 additions and 8 deletions
@ -0,0 +1,31 @@
|
||||
module Forms |
||||
module BulkUploadLettingsResume |
||||
class Chosen |
||||
include ActiveModel::Model |
||||
include ActiveModel::Attributes |
||||
include Rails.application.routes.url_helpers |
||||
|
||||
attribute :bulk_upload |
||||
|
||||
def view_path |
||||
"bulk_upload_lettings_resume/chosen" |
||||
end |
||||
|
||||
def back_path |
||||
lettings_logs_path |
||||
end |
||||
|
||||
def next_path |
||||
lettings_logs_path |
||||
end |
||||
|
||||
def save! |
||||
true |
||||
end |
||||
|
||||
def preflight_valid? |
||||
true |
||||
end |
||||
end |
||||
end |
||||
end |
@ -0,0 +1,31 @@
|
||||
module Forms |
||||
module BulkUploadLettingsSoftValidationsCheck |
||||
class Chosen |
||||
include ActiveModel::Model |
||||
include ActiveModel::Attributes |
||||
include Rails.application.routes.url_helpers |
||||
|
||||
attribute :bulk_upload |
||||
|
||||
def view_path |
||||
"bulk_upload_lettings_soft_validations_check/chosen" |
||||
end |
||||
|
||||
def back_path |
||||
lettings_logs_path |
||||
end |
||||
|
||||
def next_path |
||||
lettings_logs_path |
||||
end |
||||
|
||||
def save! |
||||
true |
||||
end |
||||
|
||||
def preflight_valid? |
||||
true |
||||
end |
||||
end |
||||
end |
||||
end |
@ -0,0 +1,31 @@
|
||||
module Forms |
||||
module BulkUploadSalesResume |
||||
class Chosen |
||||
include ActiveModel::Model |
||||
include ActiveModel::Attributes |
||||
include Rails.application.routes.url_helpers |
||||
|
||||
attribute :bulk_upload |
||||
|
||||
def view_path |
||||
"bulk_upload_sales_resume/chosen" |
||||
end |
||||
|
||||
def back_path |
||||
sales_logs_path |
||||
end |
||||
|
||||
def next_path |
||||
sales_logs_path |
||||
end |
||||
|
||||
def save! |
||||
true |
||||
end |
||||
|
||||
def preflight_valid? |
||||
true |
||||
end |
||||
end |
||||
end |
||||
end |
@ -0,0 +1,31 @@
|
||||
module Forms |
||||
module BulkUploadSalesSoftValidationsCheck |
||||
class Chosen |
||||
include ActiveModel::Model |
||||
include ActiveModel::Attributes |
||||
include Rails.application.routes.url_helpers |
||||
|
||||
attribute :bulk_upload |
||||
|
||||
def view_path |
||||
"bulk_upload_sales_soft_validations_check/chosen" |
||||
end |
||||
|
||||
def back_path |
||||
sales_logs_path |
||||
end |
||||
|
||||
def next_path |
||||
sales_logs_path |
||||
end |
||||
|
||||
def save! |
||||
true |
||||
end |
||||
|
||||
def preflight_valid? |
||||
true |
||||
end |
||||
end |
||||
end |
||||
end |
@ -0,0 +1,14 @@
|
||||
<% content_for :before_content do %> |
||||
<%= govuk_back_link href: @form.back_path %> |
||||
<% end %> |
||||
|
||||
<div class="govuk-grid-row"> |
||||
<div class="govuk-grid-column-two-thirds"> |
||||
<span class="govuk-caption-l">Bulk upload for lettings (<%= @bulk_upload.year_combo %>)</span> |
||||
<h1 class="govuk-heading-l">You need to fix logs from your bulk upload</h1> |
||||
|
||||
<p class="govuk-body">You have chosen to create logs from your recent bulk upload. To view and complete these logs, return to the list of lettings logs.</p> |
||||
|
||||
<%= govuk_button_link_to "Return to lettings logs", lettings_logs_path %> |
||||
</div> |
||||
</div> |
@ -0,0 +1,14 @@
|
||||
<% content_for :before_content do %> |
||||
<%= govuk_back_link href: @form.back_path %> |
||||
<% end %> |
||||
|
||||
<div class="govuk-grid-row"> |
||||
<div class="govuk-grid-column-two-thirds"> |
||||
<span class="govuk-caption-l">Bulk upload for lettings (<%= @bulk_upload.year_combo %>)</span> |
||||
<h1 class="govuk-heading-l">These logs have been created</h1> |
||||
|
||||
<p class="govuk-body">You have created logs from your bulk upload. Return to lettings logs to view them.</p> |
||||
|
||||
<%= govuk_button_link_to "Return to lettings logs", lettings_logs_path %> |
||||
</div> |
||||
</div> |
@ -0,0 +1,14 @@
|
||||
<% content_for :before_content do %> |
||||
<%= govuk_back_link href: @form.back_path %> |
||||
<% end %> |
||||
|
||||
<div class="govuk-grid-row"> |
||||
<div class="govuk-grid-column-two-thirds"> |
||||
<span class="govuk-caption-l">Bulk upload for sales (<%= @bulk_upload.year_combo %>)</span> |
||||
<h1 class="govuk-heading-l">You need to fix logs from your bulk upload</h1> |
||||
|
||||
<p class="govuk-body">You have chosen to create logs from your recent bulk upload. To view and complete these logs, return to the list of sales logs.</p> |
||||
|
||||
<%= govuk_button_link_to "Return to sales logs", sales_logs_path %> |
||||
</div> |
||||
</div> |
@ -0,0 +1,14 @@
|
||||
<% content_for :before_content do %> |
||||
<%= govuk_back_link href: @form.back_path %> |
||||
<% end %> |
||||
|
||||
<div class="govuk-grid-row"> |
||||
<div class="govuk-grid-column-two-thirds"> |
||||
<span class="govuk-caption-l">Bulk upload for sales (<%= @bulk_upload.year_combo %>)</span> |
||||
<h1 class="govuk-heading-l">These logs have been created</h1> |
||||
|
||||
<p class="govuk-body">You have created logs from your bulk upload. Return to sales logs to view them.</p> |
||||
|
||||
<%= govuk_button_link_to "Return to sales logs", sales_logs_path %> |
||||
</div> |
||||
</div> |
@ -0,0 +1,5 @@
|
||||
class AddChoiceToBulkUpload < ActiveRecord::Migration[7.0] |
||||
def change |
||||
add_column :bulk_uploads, :choice, :text, null: true |
||||
end |
||||
end |
Loading…
Reference in new issue