mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 05:32:39 +01:00
27 lines
737 B
PHP
27 lines
737 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 submitBulkForm(action, id) {
|
||
|
if (action == 'delete') {
|
||
|
if (!confirm('{!! trans("texts.are_you_sure") !!}')) {
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
$('#bulk_public_id').val(id);
|
||
|
$('#bulk_action').val(action);
|
||
|
|
||
|
$('form.bulk-form').submit();
|
||
|
}
|
||
|
function archiveEntity(id) {
|
||
|
submitBulkForm('archive', id);
|
||
|
}
|
||
|
function restoreEntity(id) {
|
||
|
submitBulkForm('restore', id);
|
||
|
}
|
||
|
</script>
|