add new button for mod notes

This commit is contained in:
byte[] 2019-12-17 12:33:16 -05:00
parent 0fa10103f8
commit 8a37696915
3 changed files with 3 additions and 0 deletions

View file

@ -31,6 +31,7 @@ article.block.communication
= if assigns[:mod_notes] do = if assigns[:mod_notes] do
h4 Mod Notes h4 Mod Notes
= render PhilomenaWeb.Admin.ModNoteView, "_table.html", mod_notes: @mod_notes, conn: @conn = render PhilomenaWeb.Admin.ModNoteView, "_table.html", mod_notes: @mod_notes, conn: @conn
= link "Add New Note", to: Routes.admin_mod_note_path(@conn, :new, notable_id: @report.id, notable_type: "Report")
p p
= if @report.user do = if @report.user do

View file

@ -53,3 +53,4 @@ h2
= if assigns[:mod_notes] do = if assigns[:mod_notes] do
h4 Mod Notes h4 Mod Notes
= render PhilomenaWeb.Admin.ModNoteView, "_table.html", mod_notes: @mod_notes, conn: @conn = render PhilomenaWeb.Admin.ModNoteView, "_table.html", mod_notes: @mod_notes, conn: @conn
= link "Add New Note", to: Routes.admin_mod_note_path(@conn, :new, notable_id: @dnp_entry.id, notable_type: "DnpEntry")

View file

@ -4,6 +4,7 @@ h2
h4 Mod Notes h4 Mod Notes
= render PhilomenaWeb.Admin.ModNoteView, "_table.html", mod_notes: @mod_notes, conn: @conn = render PhilomenaWeb.Admin.ModNoteView, "_table.html", mod_notes: @mod_notes, conn: @conn
= link "Add New Note", to: Routes.admin_mod_note_path(@conn, :new, notable_id: @user.id, notable_type: "User")
h4 Name History h4 Name History
table.table table.table