section move to other page

This commit is contained in:
2023-01-20 15:40:41 +02:00
parent 8d650a82cc
commit d6dd0fd589
9 changed files with 30 additions and 31 deletions

View File

@ -16,6 +16,11 @@
.basis-full.mb-3
Updated by:
= @section.updated_by
= simple_form_for( @section , method: :patch , class: "mx-auto mb-2 max-w space-y-4") do |f|
= f.input :page_id , label: "move to page" , include_blank: false ,
collection: Merged::Page.all.collect{|p| [p.name , p.id]} ,
class: "w-full rounded-lg border-gray-200 p-4 pr-12 text-sm shadow-sm"
=submit_button( "Move")
.basis-80.image
= link_to(merged.images_path(section_id: @section.id)) do

View File

@ -5,4 +5,4 @@
-else
.relative.z-0.mt-3
%input.peer.block.w-full.appearance-none.border-0.border-b.border-gray-500.bg-transparent.px-0.text-sm.text-gray-900.focus:border-blue-600.focus:outline-none.focus:ring-0{:class => "py-2.5", :name => card.header, :placeholder => " " , "value" => params[card.header], :type => "text"}
%label.absolute.top-3.-z-10.-translate-y-6.scale-75.transform.text-sm.text-gray-500.duration-300.peer-placeholder-shown:translate-y-0.peer-placeholder-shown:scale-100.peer-focus:left-0.peer-focus:-translate-y-6.peer-focus:scale-75.peer-focus:text-blue-600.peer-focus:dark:text-blue-500{:class => "origin-[0]"}= field_name(card)
%label.absolute.top-3.-z-10.-translate-y-6.scale-75.transform.text-sm.text-gray-500.duration-300.peer-placeholder-shown:translate-y-0.peer-placeholder-shown:scale-100.peer-focus:left-0.peer-focus:-translate-y-6.peer-focus:scale-75.peer-focus:text-blue-600.peer-focus:dark:text-blue-500{:class => "origin-[0]"}= card_field_name(card)