pages add and destroy

This commit is contained in:
2022-12-05 10:56:20 +02:00
parent d30ce30370
commit f5d53b6d1c
4 changed files with 36 additions and 15 deletions

View File

@ -28,6 +28,10 @@
%strong.rounded.bg-amber-100.px-3.text-xs.font-medium.text-amber-700{:class => "py-1.5"}
= link_to 'Edit', edit_page_path(merged_page.name)
%section
%a.inline-block.rounded.border.border-indigo-600.bg-indigo-600.px-12.py-3.text-sm.font-medium.text-white.hover:bg-transparent.hover:text-indigo-600.focus:outline-none.focus:ring.active:text-indigo-500{:href => new_page_path}
New Page
.grid.grid-cols-3.gap-2.m-8
.relative.block.border.border-gray-100
= form_tag( pages_url , {method: :post } ) do
%label.block
%h4.text-lg.font-bold Name
= text_field_tag( :name , params[:name], class: "block w-full rounded-lg border-gray-200 p-4 pr-12 text-sm shadow-sm")
=submit_button( "New Page")