From d8e3b9e4ff1fc359832d56ad96c54952adf09327 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Thu, 5 Dec 2019 00:06:07 -0500 Subject: [PATCH] add error tags to gallery form --- lib/philomena_web/templates/gallery/_form.html.slime | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/philomena_web/templates/gallery/_form.html.slime b/lib/philomena_web/templates/gallery/_form.html.slime index 814e5d9b..f68fa49a 100644 --- a/lib/philomena_web/templates/gallery/_form.html.slime +++ b/lib/philomena_web/templates/gallery/_form.html.slime @@ -6,19 +6,24 @@ .field = label f, :title, "Choose a title displayed in gallery preview" = text_input f, :title, class: "input input--wide", placeholder: "Title", required: true + = error_tag f, :title .field = label f, :spoiler_warning, "If you are going to have NSFW images in the gallery, leave a warning for users who may not want to see it" = text_input f, :spoiler_warning, class: "input input--wide", placeholder: "Spoiler warning" + = error_tag f, :spoiler_warning .field = label :description, "Describe the gallery in a few words" = textarea f, :description, class: "input input--wide", placeholder: "Description" + = error_tag f, :description .field = label f, :thumbnail_id, "Set an existing image as the gallery cover" br = number_input f, :thumbnail_id, class: "input", placeholder: "Image ID (e.g. 100)", min: 0 + = error_tag f, :thumbnail_id .field = label f, :order_position_asc, "Reverse gallery order (images will be inserted at the end of the gallery)" = checkbox f, :order_position_asc, class: "checkbox" + = error_tag f, :order_position_asc .field = submit "Save Gallery", class: "button"