app/views/admin/volunteers/_form.html.arb
# frozen_string_literal: true
active_admin_form_for [:admin, activity, resource] do |f|
f.semantic_errors(*f.object.errors.attribute_names)
inputs 'Выберите участника и волонтёрскую роль', style: 'max-width: 500px;' do
input :role
input :comment, required: false
render partial: '/admin/athlete_fields', locals: { resource: resource, form: f }
end
actions
end