Skip to content

Commit

Permalink
Updates grid container on admin announcement pages
Browse files Browse the repository at this point in the history
  • Loading branch information
matyikriszta committed Aug 3, 2022
1 parent 58009c6 commit 8d0d8b3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/views/admin/announcements/edit.html.haml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.container-fluid.pt-3
.container.py-4.py-lg-5
.row.mb-4
.col
%h1 Edit announcement

.row
.col.col-lg-8
.col.col-md-10.col-lg-8
= simple_form_for [:admin, @announcement] do |f|
= f.association :groups, label_method: :to_s
= f.input :message, input_html: { rows: 3 }
Expand Down
5 changes: 3 additions & 2 deletions app/views/admin/announcements/index.html.haml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
.container-fluid
.container.py-4.py-lg-5
.row.mb-4
.col
%h1 Announcements

.row.border-bottom.border-primary
.col
%p.mb-2 Created by
Expand Down Expand Up @@ -30,4 +31,4 @@
- if announcement.expires_at.present?
%p= l(announcement.expires_at, format: :date)
.col
= link_to 'Edit', edit_admin_announcement_path(announcement), class: 'border-0'
= link_to 'Edit', edit_admin_announcement_path(announcement)
4 changes: 2 additions & 2 deletions app/views/admin/announcements/new.html.haml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.container-fluid.pt-3
.container.py-4.py-lg-5
.row.mb-4
.col
%h1 New announcement

.row
.col.col-lg-8
.col.col-md-10.col-lg-8
= simple_form_for [:admin, @announcement] do |f|
= f.association :groups, label_method: :to_s
= f.input :message, input_html: { rows: 3 }
Expand Down

0 comments on commit 8d0d8b3

Please sign in to comment.