SumOfUs/Champaign

View on GitHub
app/views/plugins/shared/_apply_form_template.slim

Summary

Maintainability
Test Coverage
h4
  = t('plugins.petition.choose_form_template')
  = render partial: 'tooltip', locals: { tooltip_text: t('tooltips.petition.use_form'), space_left: true }
p = t('plugins.petition.form_template_explanation')
= form_tag plugins_form_create_path(plugin_id: plugin.id, plugin_type: plugin.name), method: :post, remote: true, class: 'petition', id: 'change-form-template'  do
  .form-group
    = select_tag :master_id, options_from_collection_for_select(Form.masters.all, 'id', 'name'), {prompt: "-- #{t('plugins.petition.form_template_placeholder')} --", class: 'form-control form-select'}

  .form-group
    = submit_tag t('plugins.petition.apply_template'), class: 'btn btn-default xhr-feedback'