bit of form cleanup
This commit is contained in:
@ -10,11 +10,12 @@
|
||||
- @story.errors.full_messages.each do |message|
|
||||
%li= message
|
||||
|
||||
= f.input :picture , as: :file
|
||||
= f.input :picture , as: :file , label: (@story.picture.blank? ? "Add picture" : "Change picture")
|
||||
= f.input :header
|
||||
= f.input :text
|
||||
= f.input :happened , class: "flex"
|
||||
= f.submit 'Save'
|
||||
= link_to 'Show', @story
|
||||
= link_to 'Back', stories_path
|
||||
= f.input :text , input_html: {rows: rows(@story.text)}
|
||||
.mt-4= f.input :happened , class: "flex"
|
||||
%button.mt-6.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
|
||||
= f.submit 'Save'
|
||||
%button.ml-20.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
|
||||
= link_to 'Back', @story
|
||||
%div
|
||||
|
Reference in New Issue
Block a user