From 5f395611ea0a2a180da6c4f89ffda29b86c1fe1f Mon Sep 17 00:00:00 2001 From: cavis Date: Wed, 2 Aug 2023 09:29:44 -0600 Subject: [PATCH] Standardize on labels/help-text for media forms --- app/views/episodes/_form_media.html.erb | 4 +++- app/views/podcast_planner/_form_draft.html.erb | 1 - .../_form_draft_settings.html.erb | 5 ++--- config/locales/en.yml | 18 ++++++------------ 4 files changed, 11 insertions(+), 17 deletions(-) diff --git a/app/views/episodes/_form_media.html.erb b/app/views/episodes/_form_media.html.erb index 34b04618e..072ddb688 100644 --- a/app/views/episodes/_form_media.html.erb +++ b/app/views/episodes/_form_media.html.erb @@ -10,9 +10,11 @@
-
+
<%= form.select :medium, episode_medium_options, {}, data: {action: "dynamic-form#change"} %> <%= form.label :medium %> + <%= field_help_text t(".help") %> + <% if episode.new_record? %> <% else %> diff --git a/app/views/podcast_planner/_form_draft.html.erb b/app/views/podcast_planner/_form_draft.html.erb index b1cf51268..b83711548 100644 --- a/app/views/podcast_planner/_form_draft.html.erb +++ b/app/views/podcast_planner/_form_draft.html.erb @@ -5,7 +5,6 @@
<%= t(".title.settings") %>
- <%= help_text t(".help.settings") %>
diff --git a/app/views/podcast_planner/_form_draft_settings.html.erb b/app/views/podcast_planner/_form_draft_settings.html.erb index 7121a8f7c..3642b38df 100644 --- a/app/views/podcast_planner/_form_draft_settings.html.erb +++ b/app/views/podcast_planner/_form_draft_settings.html.erb @@ -1,7 +1,7 @@
<%= form.select :medium, episode_medium_options, {}, data: {action: "planner#setMedium"} %> - <%= form.label :medium, t(".label.medium") %> + <%= form.label :medium, t("helpers.label.episode.medium") %> <%= field_help_text t(".help.medium") %>
@@ -9,7 +9,7 @@
<%= form.number_field :ad_breaks, min: 0, max: Episode::MAX_SEGMENT_COUNT - 1, data: {planner_target: "adBreaks", action: "planner#setAdBreaks"} %> - <%= form.label :ad_breaks, t(".label.ad_breaks") %> + <%= form.label :ad_breaks, t("helpers.label.episode.ad_breaks") %> <%= field_help_text t(".help.ad_breaks") %>
@@ -18,6 +18,5 @@
<%= form.select :publish_time, time_options %> <%= form.label :publish_time, t(".label.publish_time") %> - <%= field_help_text t(".help.publish_time") %>
diff --git a/config/locales/en.yml b/config/locales/en.yml index ced4d5932..6405a8bb5 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -67,7 +67,7 @@ en: field_copy_tooltip: Copied! label: episode: - ad_breaks: How many ad breaks are there in this episode? + ad_breaks: Ad Breaks author_email: Author Email author_name: Author Name categories: Categories @@ -92,7 +92,7 @@ en: full: Full trailer: Trailer bonus: Bonus - medium: How do you want to upload your files? + medium: File Format mediums: audio: Audio - upload multiple audio files uncut: Audio - upload a single file and then segment @@ -210,6 +210,7 @@ en: title: Write a short, Tweetable title. Think newspaper headline. form_media: title: Media Files + help: Enter the file format for this episode. form_status: <<: *form_status create: Create Draft @@ -250,7 +251,7 @@ en: processing: hint: Processing segment_count: - help: Enter the number of ad breaks in this episode. + help: Enter the number of ad breaks (midrolls) in this episode. This helps us to better predict ad inventory for your podcast. missing_drafts: message: The more drafts you add, the better we can support your podcast. Please add all of your known upcoming episodes to the Production Calendar. okay: Okay @@ -514,8 +515,6 @@ en: selected_weeks: Weeks of Month start_date: Start Date form_draft: - help: - settings: Enter the number of ad-breaks in your episode (if applicable), and the time of day you plan to release your episodes. label: create: Create draft: Draft @@ -529,13 +528,8 @@ en: settings: Draft Settings form_draft_settings: help: - ad_breaks: Do we need this? - medium: Do we need this? - publish_time: Do we need this? - label: - ad_breaks: Ad Breaks - medium: File Format - publish_time: Publish Time + ad_breaks: Enter the number of ad breaks (midrolls) these episodes will have. Accurately entering the number of ad breaks help us to better predict ad inventory for your podcast. + medium: Enter the file format you plan to upload for these episodes. helper: period_options: every_one: Every week