2023-01-16 13:49:45 +01:00
|
|
|
= simple_form_for @event do |f|
|
|
|
|
= f.error_notification
|
|
|
|
|
|
|
|
= f.input :name
|
2023-06-12 14:47:54 +02:00
|
|
|
= f.input :info , label: "Link to event"
|
2023-01-22 19:50:57 +01:00
|
|
|
= render "merged/form/editor" , object: @event , field: :text, form: f
|
2023-01-16 13:49:45 +01:00
|
|
|
.grid.grid-cols-2.gap-10
|
|
|
|
= f.input :start_date
|
|
|
|
= f.input :end_date
|
|
|
|
= f.input :profile_id , as: :hidden
|
2023-01-22 19:40:28 +01:00
|
|
|
.flex.h-16.mt-2
|
|
|
|
= image_tag(@event.picture_url , class: "align-middle mr-2") if @event.picture?
|
|
|
|
= f.input :picture , as: :file , input_html: {wrapper_class: "w-full"},
|
|
|
|
label: (@event.picture.blank? ? "Add picture" : "Change picture")
|
|
|
|
= f.hidden_field :picture_cache
|
|
|
|
|
2023-06-12 14:47:54 +02:00
|
|
|
|
2023-01-16 17:59:07 +01:00
|
|
|
.flex.justify-between
|
|
|
|
%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'
|
|
|
|
= link_to member_path(current_member) do
|
|
|
|
.mt-6.ml-20.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
|
|
|
|
Back
|