1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-15 15:42:51 +01:00
invoiceninja/resources/views/partials/bulk_form.blade.php
2017-10-22 12:51:47 +03:00

29 lines
835 B
PHP

<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">
function submitForm_{{ $entityType }}(action, id) {
if (action == 'delete') {
if (!confirm('{!! trans("texts.are_you_sure") !!}')) {
return;
}
}
@if (in_array($entityType, [ENTITY_ACCOUNT_GATEWAY]))
if (action == 'archive') {
if (!confirm('{!! trans("texts.are_you_sure") !!}')) {
return;
}
}
@endif
$('#bulk_public_id').val(id);
$('#bulk_action').val(action);
$('form.bulk-form').submit();
}
</script>