- {{ Form::open([
- 'method' => 'POST',
- 'route' => ['hardware/bulkedit'],
- 'class' => 'form-inline',
- 'id' => 'bulkForm']) }}
+
@if (Request::get('status')!='Deleted')
-
-
-
-
-
+ {{ Form::open([
+ 'method' => 'POST',
+ 'route' => ['hardware/bulkedit'],
+ 'class' => 'form-inline',
+ 'id' => 'bulkForm']) }}
+
+
+
+
+
+
+
+
+ {{ Form::close() }}
+
@endif
- {{ Form::close() }}
+
diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php
index 3d90ff4d89..1799241501 100644
--- a/resources/views/partials/bootstrap-table.blade.php
+++ b/resources/views/partials/bootstrap-table.blade.php
@@ -81,6 +81,18 @@
}
});
+
+ $('.snipe-table').on('check.bs.table .btSelectItem', function (row, $element) {
+ $('#bulkEdit').before('');
+ });
+
+
+ $('.snipe-table').on('uncheck.bs.table .btSelectItem', function (row, $element) {
+ $( "#checkbox_" + $element.id).remove();
+ });
+
+
+
});
@@ -209,7 +221,7 @@
}
if ((row.available_actions) && (row.available_actions.update === true)) {
- actions += 'Update ';
+ actions += '{{ trans('general.update') }} ';
}
if ((row.available_actions) && (row.available_actions.delete === true)) {
@@ -218,13 +230,17 @@
+ ' data-toggle="modal" '
+ ' data-content="{{ trans('general.sure_to_delete') }} ' + row.name + '?" '
+ ' data-title="{{ trans('general.delete') }}" onClick="return false;">'
- + 'Delete ';
+ + '{{ trans('general.delete') }} ';
} else {
actions += ' ';
}
+
if ((row.available_actions) && (row.available_actions.restore === true)) {
- actions += ' ';
+ actions += ' ';
}
actions +='';