From 9cc352627ac5971bedb84f17679e0d5b5e5ff8f0 Mon Sep 17 00:00:00 2001 From: DaniBitZesty <84323332+DaniBitZesty@users.noreply.github.com> Date: Thu, 11 Jul 2024 15:43:34 +0100 Subject: [PATCH] Add missing class 'text-words-max' to textarea questions --- .../v2025/innovation/innovation_step1.rb | 2 +- .../v2025/innovation/innovation_step2.rb | 4 +- .../v2025/innovation/innovation_step3.rb | 36 +++++------ .../v2025/innovation/innovation_step4.rb | 26 ++++---- .../v2025/innovation/innovation_step5.rb | 5 ++ .../international_trade_step2.rb | 6 +- .../international_trade_step3.rb | 22 +++---- .../international_trade_step4.rb | 16 ++--- .../international_trade_step5.rb | 5 ++ .../social_mobility/social_mobility_step1.rb | 2 +- .../social_mobility/social_mobility_step2.rb | 8 +-- .../social_mobility/social_mobility_step3.rb | 39 ++++++------ .../social_mobility/social_mobility_step4.rb | 12 ++-- .../social_mobility/social_mobility_step5.rb | 5 ++ .../sustainable_development_step1.rb | 2 +- .../sustainable_development_step2.rb | 10 ++-- .../sustainable_development_step3.rb | 60 +++++++++---------- .../sustainable_development_step4.rb | 13 ++-- 18 files changed, 149 insertions(+), 124 deletions(-) diff --git a/forms/award_years/v2025/innovation/innovation_step1.rb b/forms/award_years/v2025/innovation/innovation_step1.rb index a7bb2dce1..c031c1467 100644 --- a/forms/award_years/v2025/innovation/innovation_step1.rb +++ b/forms/award_years/v2025/innovation/innovation_step1.rb @@ -184,7 +184,7 @@ def innovation_step1 textarea :major_issues_overcome, "Please explain any major issues that you have overcome in recent years and the remedial steps you have taken." do ref "A 2.2" - classes "sub-question" + classes "sub-question text-words-max" required context %(

For example, what steps did you take following a major Health and Safety incident.

diff --git a/forms/award_years/v2025/innovation/innovation_step2.rb b/forms/award_years/v2025/innovation/innovation_step2.rb index 0c7c6a44d..42e649da4 100644 --- a/forms/award_years/v2025/innovation/innovation_step2.rb +++ b/forms/award_years/v2025/innovation/innovation_step2.rb @@ -40,7 +40,7 @@ def innovation_step2 end textarea :invoicing_unit_relations, "Explain your relationship with the invoicing unit and the arrangements made." do - classes "sub-question" + classes "sub-question text-words-max" sub_ref "B 2.1" required conditional :principal_business, :no @@ -347,7 +347,7 @@ def innovation_step2 end textarea :other_awards_desc, "List the awards you have won in the past." do - classes "sub-question" + classes "sub-question text-words-max" sub_ref "B 13.1" required context "

If you can't fit all of your awards below, then choose those you're most proud of.

" diff --git a/forms/award_years/v2025/innovation/innovation_step3.rb b/forms/award_years/v2025/innovation/innovation_step3.rb index 6fa436ae3..ee941cbc4 100644 --- a/forms/award_years/v2025/innovation/innovation_step3.rb +++ b/forms/award_years/v2025/innovation/innovation_step3.rb @@ -36,7 +36,7 @@ def innovation_step3 textarea :innovation_desc_short, "Provide a one-line description of your innovative product, service, business model or process." do sub_section :innovation_background_header - classes "sub-question word-max-strict" + classes "sub-question word-max-strict text-words-max" sub_ref "C 1.2" required context %( @@ -105,7 +105,7 @@ def innovation_step3 textarea :innovation_hold_existing_patent_details, "Provide a link to your published patent document. If you do not have a patent, please explain the reasons why not." do sub_section :innovation_background_header - classes "sub-question word-max-strict" + classes "sub-question word-max-strict text-words-max" sub_ref "C 1.4.1" required context %( @@ -133,7 +133,7 @@ def innovation_step3 textarea :innovation_other_countries_it_was_developed, "Describe in what other countries and, if applicable, by what parties it was developed." do sub_section :innovation_background_header - classes "sub-question word-max-strict" + classes "sub-question word-max-strict text-words-max" sub_ref "C 1.5.1" required conditional :innovation_conceived_and_developed, :no @@ -161,7 +161,7 @@ def innovation_step3 textarea :innovation_contributors, "Please enter their names." do sub_section :innovation_background_header - classes "sub-question word-max-strict" + classes "sub-question word-max-strict text-words-max" sub_ref "C 1.6.1" required conditional :innovation_joint_contributors, :yes @@ -184,7 +184,7 @@ def innovation_step3 textarea :innovation_external_contributors, "Name any external organisations or individuals that contributed to your innovation and explain their contributions." do sub_section :innovation_background_header - classes "sub-question word-max-strict" + classes "sub-question word-max-strict text-words-max" sub_ref "C 1.7.1" required conditional :innovation_any_contributors, :yes @@ -215,7 +215,7 @@ def innovation_step3 textarea :innovation_contributors_why_organisations, "Explain why external organisations or individuals that contributed to your innovation are not all aware of this application." do sub_section :innovation_background_header - classes "sub-question word-max-strict" + classes "sub-question word-max-strict text-words-max" sub_ref "C 1.7.3" required conditional :innovation_any_contributors, :yes @@ -234,7 +234,7 @@ def innovation_step3 textarea :innovation_license_terms, "Briefly describe the licensing arrangement." do sub_section :innovation_background_header - classes "sub-question word-max-strict" + classes "sub-question word-max-strict text-words-max" sub_ref "C 1.8.1" required conditional :innovation_under_license, :yes @@ -278,7 +278,7 @@ def innovation_step3 textarea :innovation_context, "Describe the market conditions that led to the creation of your innovation and how you identified a gap in the market." do sub_section :innovation_timeline_header - classes "sub-question word-max-strict" + classes "sub-question word-max-strict text-words-max" sub_ref "C 2.3" required context %( @@ -292,7 +292,7 @@ def innovation_step3 textarea :innovation_desc_long, "Describe your innovation and why it is innovative." do sub_section :innovation_timeline_header - classes "sub-question word-max-strict" + classes "sub-question word-max-strict text-words-max" sub_ref "C 2.4" required context %( @@ -343,7 +343,7 @@ def innovation_step3 textarea :innovation_selection_details, "How did you select this innovation as the one to satisfy the gap in the market?" do sub_section :innovation_timeline_header - classes "sub-question word-max-strict" + classes "sub-question word-max-strict text-words-max" sub_ref "C 2.5" required context %( @@ -357,7 +357,7 @@ def innovation_step3 textarea :innovation_overcomes_issues, "Describe any challenges you encountered in developing your innovation and how you overcame them." do sub_section :innovation_timeline_header - classes "sub-question word-max-strict" + classes "sub-question word-max-strict text-words-max" sub_ref "C 2.6" required context %( @@ -371,7 +371,7 @@ def innovation_step3 textarea :innovation_strategies, "Explain the market opportunities and what strategies you used to penetrate the market." do sub_section :innovation_timeline_header - classes "sub-question word-max-strict" + classes "sub-question word-max-strict text-words-max" sub_ref "C 2.7" required context %( @@ -385,7 +385,7 @@ def innovation_step3 textarea :innovation_competitors, "Who offers products, services or business models that compete with yours?" do sub_section :innovation_timeline_header - classes "sub-question word-max-strict" + classes "sub-question word-max-strict text-words-max" sub_ref "C 2.8" required context %( @@ -399,7 +399,7 @@ def innovation_step3 textarea :innovation_protect_market_position_details, "How might you protect the market position you have created?" do sub_section :innovation_timeline_header - classes "sub-question word-max-strict" + classes "sub-question word-max-strict text-words-max" sub_ref "C 2.9" required context %( @@ -413,7 +413,7 @@ def innovation_step3 textarea :innovation_additional_comments, "Additional comments (optional)" do sub_section :innovation_timeline_header - classes "sub-question word-max-strict" + classes "sub-question word-max-strict text-words-max" sub_ref "C 2.10" context %(

@@ -451,7 +451,7 @@ def innovation_step3 textarea :innovation_befits_details_business, "How has the innovation added value to your business?" do sub_section :innovation_value_add_header - classes "sub-question word-max-strict" + classes "sub-question word-max-strict text-words-max" sub_ref "C 3.1" required context %( @@ -506,7 +506,7 @@ def innovation_step3 textarea :innovation_befits_details_customers, "Does the innovation benefit your customers, and if so, how?" do sub_section :innovation_value_add_header - classes "sub-question word-max-strict" + classes "sub-question word-max-strict text-words-max" sub_ref "C 3.2" required context %( @@ -552,7 +552,7 @@ def innovation_step3 textarea :beyond_your_immediate_customers, "Beyond your immediate customers, does the innovation benefit others, and if so, how and to whom?" do sub_section :innovation_value_add_header - classes "sub-question word-max-strict" + classes "sub-question word-max-strict text-words-max" sub_ref "C 3.3" required context %( diff --git a/forms/award_years/v2025/innovation/innovation_step4.rb b/forms/award_years/v2025/innovation/innovation_step4.rb index ff5f4178c..61da144c7 100644 --- a/forms/award_years/v2025/innovation/innovation_step4.rb +++ b/forms/award_years/v2025/innovation/innovation_step4.rb @@ -55,7 +55,7 @@ def innovation_step4 end textarea :adjustments_explanation, "Explain adjustments to figures." do - classes "sub-question" + classes "sub-question text-words-max" sub_ref "D 2.2" required rows 2 @@ -72,7 +72,7 @@ def innovation_step4 end textarea :financial_year_date_changed_explaination, "Explain why your year-end date changed." do - classes "sub-question" + classes "sub-question text-words-max" sub_ref "D 2.3" required rows 1 @@ -203,7 +203,7 @@ def innovation_step4 end textarea :drops_in_turnover, "Explain any losses, drops in the total turnover, export sales, total net assets or reductions in net profit." do - classes "sub-question" + classes "sub-question text-words-max" sub_ref "D 4.6" required rows 3 @@ -219,7 +219,7 @@ def innovation_step4 end textarea :drops_explain_how_your_business_is_financially_viable, "Explain how your business is financially viable in terms of cash flow, cash generated, and investment received." do - classes "sub-question" + classes "sub-question text-words-max" sub_ref "D 4.7" required context %( @@ -235,7 +235,7 @@ def innovation_step4 end textarea :investments_details, "Enter details of all your investments in the innovation. Include all investments made both during and before your entry period. Also, include the years in which they were made." do - classes "sub-question" + classes "sub-question text-words-max" sub_ref "D 4.8" required rows 3 @@ -248,7 +248,7 @@ def innovation_step4 end textarea :roi_details, "Please provide calculations on how you have recovered or will recover the investments outlined in question D4.8. How long did it take or will it take to recover the investments?" do - classes "sub-question" + classes "sub-question text-words-max" sub_ref "D 4.9" required rows 3 @@ -372,7 +372,7 @@ def innovation_step4 end textarea :drops_in_sales, "Explain any drop in sales or the number of units sold (if applicable)." do - classes "sub-question" + classes "sub-question text-words-max" sub_ref "D 6.5" section :innovation_financials rows 2 @@ -400,7 +400,7 @@ def innovation_step4 end textarea :avg_unit_price_desc, "Explain your unit selling prices or contract values, highlighting any changes over the above periods (if applicable)." do - classes "sub-question" + classes "sub-question text-words-max" sub_ref "D 6.7" section :innovation_financials rows 2 @@ -425,7 +425,7 @@ def innovation_step4 end textarea :costs_change_desc, "Explain your direct unit or contract costs, highlighting any changes over the above periods (if applicable)." do - classes "sub-question" + classes "sub-question text-words-max" sub_ref "D 6.9" section :innovation_financials rows 2 @@ -439,6 +439,7 @@ def innovation_step4 textarea :innovation_performance, "Describe how, when, and to what extent the innovation has improved the commercial performance of your business." do ref "D 7" + classes "text-words-max" required context %(

@@ -476,6 +477,7 @@ def innovation_step4 textarea :covid_impact_details, "Explain how your business has been responding to the economic uncertainty experienced nationally and globally in recent years." do ref "D 8" + classes "text-words-max" required context %(