fixing the forms again

This commit is contained in:
2023-01-21 22:43:39 +02:00
parent 6852883273
commit accb668267
6 changed files with 23 additions and 7 deletions

View File

@ -0,0 +1,8 @@
.flex.flex-col.m-20
.flex.items-center.justify-center.flex-1
- @errors.each do |name , message|
.m-5.rounded.border-l-4.border-green-500.bg-red-50.p-4
%strong.font-medium.text-red-700= name.capitalize
.mt-2.text-sm.text-red-700= message
= render_section @section

View File

@ -6,7 +6,7 @@
= markdown(section)
.flex.items-center.justify-start.m-10.md:m-20
.mx-auto.w-full.max-w-4xl{class: "max-w-[50%]"}
= form_tag( merged.form_sendit_path , {class: "mt-10" }) do
= form_tag( main_app.post_form_path , {class: "mt-10" }) do
- challenge = rand(8)
= hidden_field_tag :section_id , section.id
= hidden_field_tag :bot_fudder , "#{challenge*2}"