Sha256: 95a30cec20fbb640dea0454f5448099d6175b9807327df451ac24719b56feff4
Contents?: true
Size: 1011 Bytes
Versions: 10
Compression:
Stored size: 1011 Bytes
Contents
<% User.destroy_all %> <% User.create(name: 'foo', email: 'foo@bar.commm') %> <h1 class="page-title"> <%= t('csv_import_magic.views.importers.new.title', model_translated: t('activemodel.models.company.other')) %> <br/> <small><%= t('csv_import_magic.views.importers.new.description', model_translated: t('activemodel.models.company.other').downcase) %></small> </h1> <%= simple_form_for(Importer.new, url: csv_import_magic.importers_path) do |f| %> <%= f.input :importable_type, as: :hidden, input_html: { value: 'User' } %> <%= f.input :importable_id, as: :hidden, input_html: { value: User.first.id } %> <%= f.input :source, as: :hidden, input_html: { value: 'company' } %> <div class="form-row"> <%= f.input :attachment, as: :file, hint: t('csv_import_magic.views.importers.new.hint').html_safe, required: true %> </div> <div class='form-row actions'> <%= f.submit t('csv_import_magic.views.importers.new.buttons.import'), class: 'button button--primary' %> </div> <% end %>
Version data entries
10 entries across 10 versions & 1 rubygems