Rails 4自定义ActiveAdmin批处理操作集合表单标签

Jos*_*rks 6 forms ruby-on-rails labels batch-processing activeadmin

我正在使用Rails 4和ActiveAdmin,这是一个批处理动作集合表单,用于捕获用户执行批处理操作时的输入(在本例中为批处理邮件程序).有没有办法为输入自定义标签?

比如说:

    batch_action :email, priority: 1 , form: {main_subject: :text,
                                              message: :textarea
                                             } do |ids, inputs|
  batch_action_collection.find(ids).each do |user|
   ContactBatchMailer.contact_batch_email(main_subject, message,...


    Instead of having "main_subject", I would like to display a better formatted text, like "Main Subject", or even better, something more descriptive than the variable name by itself. 
Run Code Online (Sandbox Code Playgroud)

我在文档https://github.com/activeadmin/activeadmin/blob/master/docs/9-batch-actions.md#batch-action-forms中进行了挖掘,但我无法做到.任何建议将不胜感激.

Pie*_*s C 1

该表单由 modal_dialog.js.coffee 呈现,应该可以覆盖和自定义,例如,请参阅来自 @mmustala 的拒绝拉取请求