Skip to content

Commit

Permalink
Add missing class 'text-words-max' to textarea questions
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniBitZesty committed Jul 11, 2024
1 parent 1174682 commit f113f7a
Show file tree
Hide file tree
Showing 18 changed files with 149 additions and 124 deletions.
2 changes: 1 addition & 1 deletion forms/award_years/v2025/innovation/innovation_step1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %(
<p class="govuk-body">For example, what steps did you take following a major Health and Safety incident.</p>
Expand Down
4 changes: 2 additions & 2 deletions forms/award_years/v2025/innovation/innovation_step2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 "<p>If you can't fit all of your awards below, then choose those you're most proud of.</p>"
Expand Down
36 changes: 18 additions & 18 deletions forms/award_years/v2025/innovation/innovation_step3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %(
Expand Down Expand Up @@ -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 %(
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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 %(
Expand All @@ -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 %(
Expand Down Expand Up @@ -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 %(
Expand All @@ -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 %(
Expand All @@ -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 %(
Expand All @@ -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 %(
Expand All @@ -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 %(
Expand All @@ -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 %(
<p>
Expand Down Expand Up @@ -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 %(
Expand Down Expand Up @@ -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 %(
Expand Down Expand Up @@ -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 %(
Expand Down
26 changes: 14 additions & 12 deletions forms/award_years/v2025/innovation/innovation_step4.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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 %(
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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 %(
<p>
Expand Down Expand Up @@ -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 %(
<ul>
Expand Down Expand Up @@ -506,7 +508,7 @@ def innovation_step4
end

textarea :innovation_grant_funding_sources, "Provide details of dates, sources, types and, if relevant, amounts of the government support you received in relation to your innovation (at any time)." do
classes "sub-question word-max-strict"
classes "sub-question word-max-strict text-words-max"
sub_ref "D 9.1"
required
context %(
Expand All @@ -518,7 +520,7 @@ def innovation_step4
end

textarea :innovation_grant_funding_sources_in_application_period, "Provide details of dates, sources, types and, if relevant, amounts of the government support you received during the last five years." do
classes "sub-question word-max-strict"
classes "sub-question word-max-strict text-words-max"
sub_ref "D 9.2"
required
context %(
Expand Down Expand Up @@ -551,7 +553,7 @@ def innovation_step4
end

textarea :product_estimates_use, "Explain your use of estimates and how much of these are actual receipts or firm orders." do
classes "sub-question"
classes "sub-question text-words-max"
sub_ref "D 10.2"
required
rows 2
Expand Down
5 changes: 5 additions & 0 deletions forms/award_years/v2025/innovation/innovation_step5.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ def innovation_step5

textarea :impact_on_society, "The impact of your business operations on society." do
ref "E 1"
classes "text-words-max"
required
context %(
<p>
Expand Down Expand Up @@ -37,6 +38,7 @@ def innovation_step5

textarea :impact_on_environment, "The environmental impact of your business operations." do
ref "E 2"
classes "text-words-max"
required
context %(
<p>
Expand Down Expand Up @@ -76,6 +78,7 @@ def innovation_step5

textarea :employees_relations, "Relations with your workforce." do
ref "E 3"
classes "text-words-max"
required
context %(
<p>
Expand Down Expand Up @@ -111,6 +114,7 @@ def innovation_step5

textarea :partners_relations, "Relations with customers and suppliers." do
ref "E 4"
classes "text-words-max"
required
context %(
<p>
Expand Down Expand Up @@ -140,6 +144,7 @@ def innovation_step5

textarea :governance, "Additional environmental, social, and corporate governance (ESG) examples. (optional)" do
ref "E 5"
classes "text-words-max"
context %(
<p>
Feel free to provide any additional information about your ESG practices. If you have already covered your ESG practices in full in this section or section C of the form, just state so.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def trade_step2
end

textarea :invoicing_unit_relations, "Explain your relationship with the invoicing unit, and the arrangements made." do
classes "sub-question word-max-strict"
classes "sub-question word-max-strict text-words-max"
sub_ref "B 2.1"
required
conditional :principal_business, :no
Expand Down Expand Up @@ -250,7 +250,7 @@ def trade_step2
end

textarea :pareent_group_why_excluding_members, "Please explain why you are excluding any members of your group from this application." do
classes "sub-question word-max-strict"
classes "sub-question word-max-strict text-words-max"
sub_ref "B 10.2"
rows 5
words_max 100
Expand Down Expand Up @@ -411,7 +411,7 @@ def trade_step2
end

textarea :other_awards_desc, "List the awards you have won in the past." do
classes "sub-question word-max-strict"
classes "sub-question word-max-strict text-words-max"
sub_ref "B 17.1"
required
form_hint "If you can't fit all of your awards below, then choose those you're most proud of."
Expand Down
Loading

0 comments on commit f113f7a

Please sign in to comment.