fixing the forms again
This commit is contained in:
8
app/views/merged/form/form.haml
Normal file
8
app/views/merged/form/form.haml
Normal 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
|
@ -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}"
|
||||
|
Reference in New Issue
Block a user