hubfeenix.fi/app/views/teachers/_form.html.haml
2023-01-15 14:52:40 +02:00

14 lines
398 B
Plaintext

= simple_form_for @teacher do |f|
= f.error_notification
= f.input :name
= f.input :bio
= f.input :picture , as: :file , label: (@teacher.picture.blank? ? "Add picture" : "Change picture (optional)")
.flex.justify-between.mt-4
%button.bg-cyan-200{class: button_classes}
= f.submit 'Save'
%button.bg-cyan-200{class: button_classes}
= link_to 'Cancel', teachers_path