2023-01-11 19:52:58 +01:00
|
|
|
.grid.grid-cols-3
|
|
|
|
%div
|
|
|
|
%div
|
|
|
|
%h1 Editing story
|
|
|
|
= form_for @story do |f|
|
|
|
|
- if @story.errors.any?
|
|
|
|
#error_explanation
|
|
|
|
%h2= "#{pluralize(@story.errors.count, "error")} prohibited this story from being saved:"
|
|
|
|
%ul
|
|
|
|
- @story.errors.full_messages.each do |message|
|
|
|
|
%li= message
|
2023-01-11 17:48:06 +01:00
|
|
|
|
2023-01-11 19:52:58 +01:00
|
|
|
= f.input :picture , as: :file
|
|
|
|
= f.input :header
|
|
|
|
= f.input :text
|
|
|
|
= f.input :happened , class: "flex"
|
|
|
|
= f.submit 'Save'
|
|
|
|
= link_to 'Show', @story
|
|
|
|
= link_to 'Back', stories_path
|
|
|
|
%div
|