residency/app/views/stories/new.html.haml
2023-01-11 20:52:58 +02:00

21 lines
530 B
Plaintext

.grid.grid-cols-3
%div
%div
%h1 New 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
= f.input :picture , as: :file
= f.input :header
= f.input :text
= f.input :happened , class: "flex"
= f.submit 'Save'
= link_to 'Back', stories_path
%div