From b26a012046726f2aa7034d21a3dd2332b690b2c9 Mon Sep 17 00:00:00 2001 From: Brandon Hundt Date: Tue, 25 Jul 2023 15:31:14 -0500 Subject: [PATCH] fix(sticky): move around html to support modals --- app/views/episodes/_form.html.erb | 5 +- app/views/episodes/_form_status.html.erb | 126 +++++++++--------- app/views/feeds/_form.html.erb | 7 +- app/views/feeds/_form_status.html.erb | 60 +++++---- app/views/podcast_engagement/_form.html.erb | 6 +- .../podcast_engagement/_form_status.html.erb | 24 ++-- app/views/podcasts/_form.html.erb | 6 +- app/views/podcasts/_form_status.html.erb | 64 ++++----- 8 files changed, 149 insertions(+), 149 deletions(-) diff --git a/app/views/episodes/_form.html.erb b/app/views/episodes/_form.html.erb index f0fe4b447..22e92d424 100644 --- a/app/views/episodes/_form.html.erb +++ b/app/views/episodes/_form.html.erb @@ -15,10 +15,7 @@
-
- <%= render "form_status", episode: episode, form: form %> - <%= render "form_distribution", episode: episode, form: form %> -
+ <%= render "form_status", episode: episode, form: form %>
<% end %> diff --git a/app/views/episodes/_form_status.html.erb b/app/views/episodes/_form_status.html.erb index fd77e2689..36481d432 100644 --- a/app/views/episodes/_form_status.html.erb +++ b/app/views/episodes/_form_status.html.erb @@ -1,81 +1,85 @@ -
-
-
<%= t(".title_#{episode.publishing_status_was}") %>
-
+
+
+
+
<%= t(".title_#{episode.publishing_status_was}") %>
+
-
-
-
- <% invalid_class = episode.errors[:base].present? ? "is-invalid" : "" %> +
+
+
+ <% invalid_class = episode.errors[:base].present? ? "is-invalid" : "" %> - <% if episode.publishing_status_was == 'published' %> - <%= form.hidden_field :publishing_status, value: "published" %> -
-

- <%= t("helpers.label.episode.publishing_statuses.published") %> -

-
- <% else %> - <%= form.select :publishing_status, episode_publishing_status_options, {}, class: "form-select #{invalid_class}" %> - <% end %> + <% if episode.publishing_status_was == 'published' %> + <%= form.hidden_field :publishing_status, value: "published" %> +
+

+ <%= t("helpers.label.episode.publishing_statuses.published") %> +

+
+ <% else %> + <%= form.select :publishing_status, episode_publishing_status_options, {}, class: "form-select #{invalid_class}" %> + <% end %> - <%= form.label :publishing_status, class: invalid_class %> + <%= form.label :publishing_status, class: invalid_class %> - <% if episode.errors[:base].present? %> -
<%= episode.errors[:base].to_sentence.capitalize %>
- <% end %> + <% if episode.errors[:base].present? %> +
<%= episode.errors[:base].to_sentence.capitalize %>
+ <% end %> +
-
-
-
- <%= form.time_field :released_at, value: episode.published_or_released_date %> - <%= form.label :released_at %> +
+
+ <%= form.time_field :released_at, value: episode.published_or_released_date %> + <%= form.label :released_at %> +
-
-
- -
-
- <%= render "form_status", podcast: podcast, feed: feed, form: form %> -
-
+ <%= render "form_status", podcast: podcast, feed: feed, form: form %>
<% end %> diff --git a/app/views/feeds/_form_status.html.erb b/app/views/feeds/_form_status.html.erb index 9bd235c02..bfb1e4c1f 100644 --- a/app/views/feeds/_form_status.html.erb +++ b/app/views/feeds/_form_status.html.erb @@ -1,36 +1,40 @@ -
-
-
<%= t(".title") %>
-
-
-
-
- <%= render "form_status", podcast: podcast, form: form %> -
-
+ <%= render "form_status", podcast: podcast, form: form %>
diff --git a/app/views/podcast_engagement/_form_status.html.erb b/app/views/podcast_engagement/_form_status.html.erb index 1103c2244..5b32949ca 100644 --- a/app/views/podcast_engagement/_form_status.html.erb +++ b/app/views/podcast_engagement/_form_status.html.erb @@ -1,14 +1,18 @@ -
-
-
<%= t(".title") %>
-
- \ No newline at end of file diff --git a/app/views/podcasts/_form.html.erb b/app/views/podcasts/_form.html.erb index 6ce7ace4e..a076cccd8 100644 --- a/app/views/podcasts/_form.html.erb +++ b/app/views/podcasts/_form.html.erb @@ -11,11 +11,7 @@
-
-
- <%= render "form_status", podcast: podcast, form: form %> -
-
+ <%= render "form_status", podcast: podcast, form: form %>
<% end %> diff --git a/app/views/podcasts/_form_status.html.erb b/app/views/podcasts/_form_status.html.erb index 5d8e89bba..b86b91325 100644 --- a/app/views/podcasts/_form_status.html.erb +++ b/app/views/podcasts/_form_status.html.erb @@ -1,39 +1,43 @@ -
-
-
<%= t(".title") %>
-
-