wip plugin

This commit is contained in:
viehlieb 2023-02-17 13:16:03 +01:00
parent 78da4feafe
commit f9229034de
13 changed files with 100 additions and 0 deletions

View file

@ -0,0 +1,12 @@
= form_with url: send_result_to_supplier_path(@order) do |f|
.modal-header
= close_button :modal
.h3="Choose file formats that will be attached to your Email"
.modal-body
= f.check_box 'file_formats[pdf]'
= f.label 'file_formats[pdf]', "PDF"
.modal-footer
= link_to t('ui.close'), '#', class: 'btn', data: {dismiss: 'modal'}
= f.submit class: 'btn btn-primary'

View file

@ -0,0 +1,3 @@
$('#modalContainer').html('#{j(render("send_to_supplier_modal"))}');
$('#modalContainer').modal();
$('#modalContainer').submit(function() {$('#modalContainer').modal('hide');});