- <%= render "components/govspeak-editor", {
+ <%= render "components/govspeak_editor", {
label: {
heading_size: "l",
text: "Body (required)",
diff --git a/app/views/admin/call_for_evidence_responses/_form.html.erb b/app/views/admin/call_for_evidence_responses/_form.html.erb
index 4ed301e1592..fa3b4a0e228 100644
--- a/app/views/admin/call_for_evidence_responses/_form.html.erb
+++ b/app/views/admin/call_for_evidence_responses/_form.html.erb
@@ -34,7 +34,7 @@
} %>
<% end %>
- <%= render "components/govspeak-editor", {
+ <%= render "components/govspeak_editor", {
label: {
heading_size: "l",
text: "Summary (required)",
diff --git a/app/views/admin/consultation_responses/_form.html.erb b/app/views/admin/consultation_responses/_form.html.erb
index f54ee260356..c375247d799 100644
--- a/app/views/admin/consultation_responses/_form.html.erb
+++ b/app/views/admin/consultation_responses/_form.html.erb
@@ -35,7 +35,7 @@
} %>
<% end %>
- <%= render "components/govspeak-editor", {
+ <%= render "components/govspeak_editor", {
label: {
heading_size: "l",
text: "Summary (required)",
diff --git a/app/views/admin/corporate_information_pages/_standard_fields.html.erb b/app/views/admin/corporate_information_pages/_standard_fields.html.erb
index ca9c12c1d2d..7dc4567818c 100644
--- a/app/views/admin/corporate_information_pages/_standard_fields.html.erb
+++ b/app/views/admin/corporate_information_pages/_standard_fields.html.erb
@@ -3,7 +3,7 @@
<%= form.hidden_field :lock_version %>
<% unless form.object.persisted? %>
- <%= render "components/select-with-search", {
+ <%= render "components/select_with_search", {
id: "edition_corporate_information_page_type_id",
name: "edition[corporate_information_page_type_id]",
label: "Type",
@@ -34,7 +34,7 @@
maxlength: 160,
} %>
- <%= render "components/govspeak-editor", {
+ <%= render "components/govspeak_editor", {
label: {
text: "Body (required)",
heading_size: "l",
diff --git a/app/views/admin/document_collection_email_subscriptions/_taxonomy_choice.html.erb b/app/views/admin/document_collection_email_subscriptions/_taxonomy_choice.html.erb
index 54b616a9631..71fa1bf7de5 100644
--- a/app/views/admin/document_collection_email_subscriptions/_taxonomy_choice.html.erb
+++ b/app/views/admin/document_collection_email_subscriptions/_taxonomy_choice.html.erb
@@ -1,6 +1,6 @@
Choose the topic
- <%= render "components/select-with-search", {
+ <%= render "components/select_with_search", {
label: "Choose a topic from the topic taxonomy. You can only choose one.",
error_message: flash["selected_taxon_content_id"],
error_id: flash["selected_taxon_content_id"],
diff --git a/app/views/admin/document_collection_groups/_form.html.erb b/app/views/admin/document_collection_groups/_form.html.erb
index 6751ee48eb2..e83e31283b2 100644
--- a/app/views/admin/document_collection_groups/_form.html.erb
+++ b/app/views/admin/document_collection_groups/_form.html.erb
@@ -11,7 +11,7 @@
hint: "Name of the group that holds all associated documents",
} %>
- <%= render "components/govspeak-editor", {
+ <%= render "components/govspeak_editor", {
label: {
heading_size: "l",
text: "Description",
diff --git a/app/views/admin/edition_images/crop.html.erb b/app/views/admin/edition_images/crop.html.erb
index 6f2a66a0c77..7c32efce4de 100644
--- a/app/views/admin/edition_images/crop.html.erb
+++ b/app/views/admin/edition_images/crop.html.erb
@@ -11,7 +11,7 @@
Use your cursor or the arrow keys and “+” and “-” to select a part of the image. The part you select will be resized for GOV.UK. The shape is fixed.
- <%= render "components/image-cropper", {
+ <%= render "components/image_cropper", {
name: "image[image_data][file]",
src: @data_url,
filename: @new_image.filename,
diff --git a/app/views/admin/edition_unpublishing/edit.html.erb b/app/views/admin/edition_unpublishing/edit.html.erb
index a5d93cb20cb..b2acff79906 100644
--- a/app/views/admin/edition_unpublishing/edit.html.erb
+++ b/app/views/admin/edition_unpublishing/edit.html.erb
@@ -15,7 +15,7 @@
<%= @unpublishing.unpublishing_reason.as_sentence.capitalize %>
<%= form_for @unpublishing, url: admin_edition_unpublishing_path(@unpublishing.edition) do |f| %>
- <%= render "components/govspeak-editor", {
+ <%= render "components/govspeak_editor", {
label: {
heading_size: "l",
text: "Public explanation",
diff --git a/app/views/admin/edition_workflow/confirm_unpublish.html.erb b/app/views/admin/edition_workflow/confirm_unpublish.html.erb
index b6e91745981..70a87021389 100644
--- a/app/views/admin/edition_workflow/confirm_unpublish.html.erb
+++ b/app/views/admin/edition_workflow/confirm_unpublish.html.erb
@@ -23,7 +23,7 @@
},
}
- withdrawal_public_explanation_field = render("components/govspeak-editor", {
+ withdrawal_public_explanation_field = render("components/govspeak_editor", {
label: {
text: "Public explanation",
bold: true,
@@ -150,7 +150,7 @@
],
} %>
- <%= render "components/govspeak-editor", {
+ <%= render "components/govspeak_editor", {
label: {
text: "Public explanation",
bold: true,
diff --git a/app/views/admin/edition_world_tags/edit.html.erb b/app/views/admin/edition_world_tags/edit.html.erb
index 010004e34a7..965bf94025e 100644
--- a/app/views/admin/edition_world_tags/edit.html.erb
+++ b/app/views/admin/edition_world_tags/edit.html.erb
@@ -25,7 +25,7 @@
) do |form| %>
<%= form.hidden_field :previous_version %>
- <%= render partial: "/components/miller-columns", locals: {
+ <%= render partial: "/components/miller_columns", locals: {
id: "taxonomy_tag_form[taxons]",
searchable: true,
items: @world_taxonomy.all_world_taxons_transformed(@tag_form.selected_taxons),
diff --git a/app/views/admin/editions/_filter_options.html.erb b/app/views/admin/editions/_filter_options.html.erb
index b6309fe086c..20a7b0c64f8 100644
--- a/app/views/admin/editions/_filter_options.html.erb
+++ b/app/views/admin/editions/_filter_options.html.erb
@@ -24,7 +24,7 @@
<% end %>
<% if filter_by.include?(:author) %>
- <%= render "components/select-with-search", {
+ <%= render "components/select_with_search", {
label: "Author",
id: "author_filter",
name: "author",
@@ -40,7 +40,7 @@
<% end %>
<% if filter_by.include?(:organisation) %>
- <%= render "components/select-with-search", {
+ <%= render "components/select_with_search", {
label: "Organisation",
id: "organisation_filter",
name: "organisation",
@@ -50,7 +50,7 @@
<% end %>
<% if filter_by.include?(:world_location) %>
- <%= render "components/select-with-search", {
+ <%= render "components/select_with_search", {
label: "World location",
id: "world_location_filter",
name: "world_location",
@@ -66,7 +66,7 @@
<% end %>
<% if filter_by.include?(:type) %>
- <%= render "components/select-with-search", {
+ <%= render "components/select_with_search", {
label: "Document type",
id: "type_filter",
name: "type",
@@ -76,7 +76,7 @@
<% end %>
<% if filter_by.include?(:state) %>
- <%= render "components/select-with-search", {
+ <%= render "components/select_with_search", {
label: "State",
id: "state_filter",
name: "state",
diff --git a/app/views/admin/editions/_locale_fields.html.erb b/app/views/admin/editions/_locale_fields.html.erb
index 575f78b40a8..7fc7aa4dbf0 100644
--- a/app/views/admin/editions/_locale_fields.html.erb
+++ b/app/views/admin/editions/_locale_fields.html.erb
@@ -12,7 +12,7 @@
label: "Create a foreign language only #{edition.model_name.human.downcase}",
value: "1",
checked: form.object.primary_locale != "en",
- conditional: (render "components/select-with-search", {
+ conditional: (render "components/select_with_search", {
id: "edition_primary_locale",
name: "edition[primary_locale]",
label: "Document language",
diff --git a/app/views/admin/editions/_operational_field_fields.html.erb b/app/views/admin/editions/_operational_field_fields.html.erb
index 67843e2f161..6e2cf7c925d 100644
--- a/app/views/admin/editions/_operational_field_fields.html.erb
+++ b/app/views/admin/editions/_operational_field_fields.html.erb
@@ -1,4 +1,4 @@
-<%= render "components/select-with-search", {
+<%= render "components/select_with_search", {
id: "edition_operational_field_id",
label: "Field of operation (required)",
name: "edition[operational_field_id]",
diff --git a/app/views/admin/editions/_organisation_fields.html.erb b/app/views/admin/editions/_organisation_fields.html.erb
index f69bd3b97a3..89e82d8f58e 100644
--- a/app/views/admin/editions/_organisation_fields.html.erb
+++ b/app/views/admin/editions/_organisation_fields.html.erb
@@ -10,7 +10,7 @@
<% 0.upto(3) do |index| %>
<% lead_organisation_id = lead_organisation_id_at_index(edition, index) %>
<% cache_if lead_organisation_id.nil?, "#{taggable_organisations_cache_digest}-lead" do %>
- <%= render "components/select-with-search", {
+ <%= render "components/select_with_search", {
id: "edition_lead_organisation_ids_#{index + 1}",
name: "edition[lead_organisation_ids][]",
label: "Lead organisation #{index + 1}",
diff --git a/app/views/admin/editions/_standard_fields.html.erb b/app/views/admin/editions/_standard_fields.html.erb
index b8c07815075..e96259b60a5 100644
--- a/app/views/admin/editions/_standard_fields.html.erb
+++ b/app/views/admin/editions/_standard_fields.html.erb
@@ -64,7 +64,7 @@
- <%= render "components/govspeak-editor", {
+ <%= render "components/govspeak_editor", {
label: {
text: "Body" + "#{' (required)' if form.object.body_required?}",
heading_size: "m",
diff --git a/app/views/admin/historical_accounts/_form.html.erb b/app/views/admin/historical_accounts/_form.html.erb
index 22fe684ebb3..2a0886cca28 100644
--- a/app/views/admin/historical_accounts/_form.html.erb
+++ b/app/views/admin/historical_accounts/_form.html.erb
@@ -58,7 +58,7 @@
error_items: errors_for_input(historical_account.errors, :died),
} %>
- <%= render "components/govspeak-editor", {
+ <%= render "components/govspeak_editor", {
label: {
heading_size: "l",
text: "Body (required)",
diff --git a/app/views/admin/news_articles/_news_article_type_fields.html.erb b/app/views/admin/news_articles/_news_article_type_fields.html.erb
index f9d646dae52..e9aaf73fce0 100644
--- a/app/views/admin/news_articles/_news_article_type_fields.html.erb
+++ b/app/views/admin/news_articles/_news_article_type_fields.html.erb
@@ -1,5 +1,5 @@
- <%= render "components/select-with-search", {
+ <%= render "components/select_with_search", {
name: "edition[news_article_type_id]",
id: "edition_news_article_type_id",
label: "News article type (required)",
diff --git a/app/views/admin/operational_fields/_form.html.erb b/app/views/admin/operational_fields/_form.html.erb
index aee1dc1abec..a2e2507e532 100644
--- a/app/views/admin/operational_fields/_form.html.erb
+++ b/app/views/admin/operational_fields/_form.html.erb
@@ -11,7 +11,7 @@
error_items: errors_for(operational_field.errors, :name),
} %>
- <%= render "components/govspeak-editor", {
+ <%= render "components/govspeak_editor", {
label: {
text: "Description",
heading_size: "l",
diff --git a/app/views/admin/organisations/_closed_fields.html.erb b/app/views/admin/organisations/_closed_fields.html.erb
index d6b8bdf1718..6b70dd52b1d 100644
--- a/app/views/admin/organisations/_closed_fields.html.erb
+++ b/app/views/admin/organisations/_closed_fields.html.erb
@@ -1,4 +1,4 @@
-<%= render "components/select-with-search", {
+<%= render "components/select_with_search", {
label: "Reason for closure (required)",
name: "organisation[govuk_closed_status]",
id: "organisation_govuk_closed_status",
diff --git a/app/views/admin/organisations/_form.html.erb b/app/views/admin/organisations/_form.html.erb
index c8d54a2ae92..89d731efd13 100644
--- a/app/views/admin/organisations/_form.html.erb
+++ b/app/views/admin/organisations/_form.html.erb
@@ -37,7 +37,7 @@
error_items: errors_for(organisation.errors, :logo_formatted_name),
} %>
- <%= render "components/select-with-search", {
+ <%= render "components/select_with_search", {
label: "Logo crest (required)",
name: "organisation[organisation_logo_type_id]",
id: "organisation_organisation_logo_type_id",
@@ -54,7 +54,7 @@
} %>
">
- <%= render "components/single-image-upload", {
+ <%= render "components/single_image_upload", {
title: "Custom logo (required)",
name: "organisation",
id: "organisation",
@@ -70,7 +70,7 @@
} %>
- <%= render "components/select-with-search", {
+ <%= render "components/select_with_search", {
label: "Brand colour",
name: "organisation[organisation_brand_colour_id]",
id: "organisation_organisation_brand_colour_id",
@@ -87,7 +87,7 @@
} %>
<%= form.fields_for :default_news_image do |_image_fields| %>
- <%= render "components/single-image-upload", {
+ <%= render "components/single_image_upload", {
title: "Default news image",
name: "organisation[default_news_image_attributes]",
id: "organisation_default_news_image",
@@ -114,7 +114,7 @@
error_items: errors_for(organisation.errors, :url),
} %>
- <%= render "components/select-with-search", {
+ <%= render "components/select_with_search", {
label: "Organisation type (required)",
name: "organisation[organisation_type_key]",
id: "organisation_organisation_type_key",
@@ -265,7 +265,7 @@
<%= hidden_field_tag "organisation[topical_event_organisations_attributes][][ordering]", topical_event_organisation.ordering %>
<%= hidden_field_tag "organisation[topical_event_organisations_attributes][][id]", topical_event_organisation.id %>
- <%= render "components/select-with-search", {
+ <%= render "components/select_with_search", {
label: "Topical Event #{topical_event_organisation.ordering + 1}",
name: "organisation[topical_event_organisations_attributes][][topical_event_id]",
id: "organisation_topical_event_ids_#{topical_event_organisation.ordering}",
diff --git a/app/views/admin/people/_form.html.erb b/app/views/admin/people/_form.html.erb
index 9c597a96758..c99bfc239e4 100644
--- a/app/views/admin/people/_form.html.erb
+++ b/app/views/admin/people/_form.html.erb
@@ -58,7 +58,7 @@
} %>
<%= form.fields_for :image do |_image_fields| %>
- <%= render "components/single-image-upload", {
+ <%= render "components/single_image_upload", {
title: "Image",
name: "person[image_attributes]",
id: "person_image",
@@ -74,7 +74,7 @@
} %>
<% end %>
- <%= render "components/govspeak-editor", {
+ <%= render "components/govspeak_editor", {
label: {
text: "Biography",
heading_size: "l",
diff --git a/app/views/admin/policy_groups/_form.html.erb b/app/views/admin/policy_groups/_form.html.erb
index 07b5fb8fb41..9fab904266c 100644
--- a/app/views/admin/policy_groups/_form.html.erb
+++ b/app/views/admin/policy_groups/_form.html.erb
@@ -33,7 +33,7 @@
rows: 4,
} %>
- <%= render "components/govspeak-editor", {
+ <%= render "components/govspeak_editor", {
label: {
heading_size: "l",
text: "Description",
diff --git a/app/views/admin/promotional_feature_items/_form_fields.html.erb b/app/views/admin/promotional_feature_items/_form_fields.html.erb
index b4ca2c6fd26..2b294932fec 100644
--- a/app/views/admin/promotional_feature_items/_form_fields.html.erb
+++ b/app/views/admin/promotional_feature_items/_form_fields.html.erb
@@ -44,7 +44,7 @@
value: "image",
text: "Image",
checked: promotional_feature_item.image.present? || params.dig("promotional_feature", "promotional_feature_items_attributes", "0", "image_or_youtube_video_url") == "image",
- conditional: render("components/single-image-upload", {
+ conditional: render("components/single_image_upload", {
name: name,
id: id,
page_errors: form.object.errors.any?,
diff --git a/app/views/admin/publications/_publication_type_fields.html.erb b/app/views/admin/publications/_publication_type_fields.html.erb
index e21e38eb316..f8da8ed1684 100644
--- a/app/views/admin/publications/_publication_type_fields.html.erb
+++ b/app/views/admin/publications/_publication_type_fields.html.erb
@@ -1,5 +1,5 @@