starting with events, tied to profiles (not accounts)
This commit is contained in:
14
app/views/events/_form.html.haml
Normal file
14
app/views/events/_form.html.haml
Normal file
@ -0,0 +1,14 @@
|
||||
= simple_form_for @event do |f|
|
||||
= f.error_notification
|
||||
|
||||
= f.input :name
|
||||
= f.input :text
|
||||
.grid.grid-cols-2.gap-10
|
||||
= f.input :start_date
|
||||
= f.input :end_date
|
||||
= f.input :profile_id , as: :hidden
|
||||
= f.input :picture , as: :file
|
||||
%button.mt-6.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
|
||||
= f.submit 'Save'
|
||||
%button.ml-20.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
|
||||
= link_to 'Back', @story
|
Reference in New Issue
Block a user