diff --git a/app/views/admin/badges/index.html.erb b/app/views/admin/badges/index.html.erb
index 4306bad0a..863929422 100644
--- a/app/views/admin/badges/index.html.erb
+++ b/app/views/admin/badges/index.html.erb
@@ -1,28 +1,28 @@
-
+
+
<%= link_to "Create Badge", new_admin_badge_path, class: "btn btn-primary" %>
<%= link_to "Award Badge", admin_badge_achievements_award_badges_path, style: "margin-left: 20px;", class: "btn btn-primary" %>
-
-
-
- | Title |
- Slug |
- Badge Image |
-
-
-
- <% @badges.each do |badge| %>
+
+
- | <%= link_to badge.title, edit_admin_badge_path(badge.id) %> |
-
+ | Title |
+ Slug |
+ Badge Image |
+
+
+
+ <% @badges.each do |badge| %>
+
+ | <%= link_to badge.title, edit_admin_badge_path(badge.id) %> |
<%= badge.slug %> |
|
-
-
- <% end %>
-
-
+
+ <% end %>
+
+
+
diff --git a/app/views/admin/badges/new.html.erb b/app/views/admin/badges/new.html.erb
index c929802f1..3c3dec85c 100644
--- a/app/views/admin/badges/new.html.erb
+++ b/app/views/admin/badges/new.html.erb
@@ -1,4 +1,4 @@
-
+
Create a Badge:
<%= form_for [:admin, @badge], method: :post do |form| %>
@@ -27,4 +27,4 @@
<%= submit_tag "Create Badge", class: "btn btn-primary float-right" %>
<% end %>
-
+
diff --git a/app/views/admin/broadcasts/_form.html.erb b/app/views/admin/broadcasts/_form.html.erb
index 98888bd3d..5a4113bcb 100644
--- a/app/views/admin/broadcasts/_form.html.erb
+++ b/app/views/admin/broadcasts/_form.html.erb
@@ -1,4 +1,4 @@
-
Title - this for our reference only:
+<%= label_tag :title, "Title:" %>
<%= text_field_tag :title, @broadcast.title %>
@@ -6,12 +6,12 @@
<%= text_area_tag :processed_html, @broadcast.processed_html, size: "100x10", class: "form-control" %>
- <%= label_tag :type, "Type:" %>
- <%= select_tag "type_of", options_for_select(%w[Welcome Announcement], selected: @broadcast.type_of) %>
+ <%= label_tag :type_of, "Type:" %>
+ <%= select_tag :type_of, options_for_select(%w[Welcome Announcement], selected: @broadcast.type_of) %>
<%= 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 %>
+ <%= select_tag :banner_style, options_for_select(%w[default brand success warning error], selected: @broadcast.banner_style), include_blank: true %>
+
-
Note: You must ensure that your Broadcast is active in order for it to be sent to users!
-
-
-
-
- | Title |
- Status |
-
-
-
- <% @broadcasts.each do |broadcast| %>
+
+
+ Note: You must ensure that your Broadcast is active in order for it to be sent to users!
+
+
+
- | <%= link_to broadcast.title, admin_broadcast_path(broadcast.id) %> |
-
-
+ | Title |
+ Status |
+ |
+
+
+ <% @broadcasts.each do |broadcast| %>
+
+ | <%= link_to broadcast.title, admin_broadcast_path(broadcast.id) %> |
+
">
<%= broadcast.active? ? "Active" : "Inactive" %>
-
- |
-
- <% end %>
-
-
+
+
+ <% end %>
+
+
+
<%= csrf_meta_tags %>
diff --git a/app/views/admin/broadcasts/new.html.erb b/app/views/admin/broadcasts/new.html.erb
index b1073e97e..860a51ef2 100644
--- a/app/views/admin/broadcasts/new.html.erb
+++ b/app/views/admin/broadcasts/new.html.erb
@@ -1,4 +1,4 @@
-
+
Make a new broadcast:
<%= form_for([:admin, @broadcast], method: :post) do %>
@@ -6,4 +6,4 @@
<%= submit_tag "Create Broadcast", class: "btn btn-primary float-right" %>
<% end %>
-
+
diff --git a/app/views/admin/broadcasts/show.html.erb b/app/views/admin/broadcasts/show.html.erb
index 4ee1f9fda..e39c03403 100644
--- a/app/views/admin/broadcasts/show.html.erb
+++ b/app/views/admin/broadcasts/show.html.erb
@@ -1,4 +1,4 @@
-
+
<%= csrf_meta_tags %>
diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb
index d25af16d1..d1a0bab7e 100644
--- a/app/views/layouts/admin.html.erb
+++ b/app/views/layouts/admin.html.erb
@@ -34,15 +34,17 @@
- <% flash.each do |type, message| %>
-
">
-
- <%= message %>
-
- <% end %>
-
<%= controller_name.titleize %>
+
<%= yield %>