Rails 4 Customize ActiveAdmin batch action collection form labels -
i using on rails 4 , activeadmin, batch action collection form capture input user perform batch action ( in case batch mailer). there way customize labels inputs?
say example:
batch_action :email, priority: 1 , form: {main_subject: :text, message: :textarea } |ids, inputs| batch_action_collection.find(ids).each |user| contactbatchmailer.contact_batch_email(main_subject, message,... instead of having "main_subject", display better formatted text, "main subject", or better, more descriptive variable name itself.
i dug in documentation https://github.com/activeadmin/activeadmin/blob/master/docs/9-batch-actions.md#batch-action-forms not able to. suggestions appreciated.
the form rendered modal_dialog.js.coffee, should possible override , customize, example see declined pull request @mmustala
Comments
Post a Comment