section image select and basic image show
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
- content_for( :merged_menu ) do
|
||||
.text-xl.font-bold.text-gray-900
|
||||
All Images
|
||||
= text_for_index
|
||||
|
||||
= render "layouts/merged_header"
|
||||
- if Rails.env.development?
|
||||
|
7
app/views/merged/images/show.haml
Normal file
7
app/views/merged/images/show.haml
Normal file
@ -0,0 +1,7 @@
|
||||
- content_for( :merged_menu ) do
|
||||
.text-xl.font-bold.text-gray-900
|
||||
Image #{@image.name}
|
||||
|
||||
= render "layouts/merged_header"
|
||||
|
||||
= image_tag(@image.asset_name)
|
@ -19,7 +19,7 @@
|
||||
%p No image
|
||||
-else
|
||||
= image_for( @section , "my-3")
|
||||
= yellow_button("Change Image", section_select_image_url(@section.id))
|
||||
= yellow_button("Change Image", images_url(section_id: @section.id))
|
||||
= red_button( "Remove image", section_set_image_path( @section.id , image: ""))
|
||||
|
||||
.basis-80.grow
|
||||
|
Reference in New Issue
Block a user