6 changed files with 120 additions and 2 deletions
@ -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 sales (<%= @bulk_upload.year_combo %>)</span> |
||||||
|
<h1 class="govuk-heading-l">These logs have already been created</h1> |
||||||
|
|
||||||
|
<p class="govuk-body">You have chosen to create logs from your recent bulk upload. To view and update these logs, return to the list of sales logs.</p> |
||||||
|
|
||||||
|
<%= govuk_button_link_to "Return to sales logs", sales_logs_path %> |
||||||
|
</div> |
||||||
|
</div> |
||||||
Loading…
Reference in new issue