From 3705e662b70ec82e8a6ca55ba852f4fc8d592084 Mon Sep 17 00:00:00 2001 From: Rajat Talesra Date: Tue, 20 Dec 2022 20:36:18 +0530 Subject: [PATCH] Remove bootstrap from admin/broadcasts and use Crayons (#18855) * Remove bootstrap from admin broadcast * Removed bootstrap from broadcast * Added EOF * Replaced a tag with link_to --- app/views/admin/broadcasts/_form.html.erb | 40 ++++++++++++----------- app/views/admin/broadcasts/edit.html.erb | 2 +- app/views/admin/broadcasts/index.html.erb | 28 ++++++++-------- app/views/admin/broadcasts/new.html.erb | 2 +- app/views/admin/broadcasts/show.html.erb | 2 +- 5 files changed, 38 insertions(+), 36 deletions(-) diff --git a/app/views/admin/broadcasts/_form.html.erb b/app/views/admin/broadcasts/_form.html.erb index c7cc8c784eaa7..f5b1673ef17d1 100644 --- a/app/views/admin/broadcasts/_form.html.erb +++ b/app/views/admin/broadcasts/_form.html.erb @@ -1,24 +1,26 @@ -
- <%= label_tag :title, "Title:" %> - <%= text_field_tag :title, @broadcast.title, class: "form-control" %> -
+
+
+ <%= label_tag :title, "Title", class: "crayons-field__label" %> + <%= text_field_tag :title, @broadcast.title, class: "crayons-textfield" %> +
-
- <%= label_tag :processed_html, "HTML" %> - <%= text_area_tag :processed_html, @broadcast.processed_html, size: "100x10", class: "form-control" %> -
+
+ <%= label_tag :processed_html, "HTML", class: "crayons-field__label" %> + <%= text_area_tag :processed_html, @broadcast.processed_html, size: "100x10", class: "crayons-textfield" %> +
-
- <%= label_tag :type_of, "Type:" %> - <%= select_tag :type_of, options_for_select(%w[Welcome Announcement], selected: @broadcast.type_of) %> -
+
+ <%= label_tag :type_of, "Type", class: "crayons-field__label" %> + <%= select_tag :type_of, options_for_select(%w[Welcome Announcement], selected: @broadcast.type_of), class: "crayons-select"%> +
-
- <%= label_tag :banner_style, "Banner Style:" %> - <%= select_tag :banner_style, options_for_select(%w[default brand success warning error], selected: @broadcast.banner_style), include_blank: true %> -
+
+ <%= label_tag :banner_style, "Banner Style", class: "crayons-field__label" %> + <%= select_tag :banner_style, options_for_select(%w[default brand success warning error], selected: @broadcast.banner_style), include_blank: true, class: "crayons-select"%> +
-
- <%= label_tag :active, "Active:" %> - <%= select_tag :active, options_for_select([false, true], selected: @broadcast.active) %> +
+ <%= label_tag :active, "Active", class: "crayons-field__label" %> + <%= select_tag :active, options_for_select([false, true], selected: @broadcast.active), class: "crayons-select"%> +
diff --git a/app/views/admin/broadcasts/edit.html.erb b/app/views/admin/broadcasts/edit.html.erb index 9cf1c325839be..5c38bd157e72f 100644 --- a/app/views/admin/broadcasts/edit.html.erb +++ b/app/views/admin/broadcasts/edit.html.erb @@ -2,6 +2,6 @@
<%= form_for([:admin, @broadcast], method: :patch) do %> <%= render "form" %> - <%= submit_tag "Update broadcast", class: "btn btn-primary" %> + <%= submit_tag "Update broadcast", class: "crayons-btn mt-4" %> <% end %>
diff --git a/app/views/admin/broadcasts/index.html.erb b/app/views/admin/broadcasts/index.html.erb index 7d95972be3f4a..d9221d45d6b00 100644 --- a/app/views/admin/broadcasts/index.html.erb +++ b/app/views/admin/broadcasts/index.html.erb @@ -1,20 +1,20 @@ -