1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 00:41:34 +02:00
invoiceninja/resources/views/partials/bulk_form.blade.php

22 lines
588 B
PHP
Raw Normal View History

2015-11-05 23:37:04 +01:00
<div style="display:none">
{!! Former::open($entityType . 's/bulk')->addClass('bulk-form') !!}
{!! Former::text('bulk_action') !!}
{!! Former::text('bulk_public_id') !!}
{!! Former::close() !!}
</div>
<script type="text/javascript">
2016-12-11 21:14:18 +01:00
function submitForm_{{ $entityType }}(action, id) {
2015-11-05 23:37:04 +01:00
if (action == 'delete') {
if (!confirm('{!! trans("texts.are_you_sure") !!}')) {
return;
}
}
$('#bulk_public_id').val(id);
$('#bulk_action').val(action);
2016-12-11 21:14:18 +01:00
2015-11-05 23:37:04 +01:00
$('form.bulk-form').submit();
}
2016-12-11 21:14:18 +01:00
</script>