A free open source IT asset/license management system
Added history tab to components
snipe92b2da9b1b8c
diff --git a/resources/views/components/view.blade.php b/resources/views/components/view.blade.phpindex f090b95665..db059641a2 100644--- a/resources/views/components/view.blade.php+++ b/resources/views/components/view.blade.php@@ -67,6 +67,16 @@</a></li>+ <li>+ <a href="#history" data-toggle="tab">+ <span class="hidden-lg hidden-md">+ <i class="fas fa-history fa-2x" aria-hidden="true"></i>+ </span>+ <span class="hidden-xs hidden-sm">+ {{ trans('general.history') }}+ </span>+ </a>+ </li>@can('components.files', $component)<li>@@ -137,6 +147,35 @@</div></div> <!-- close tab-pane div -->+ <div class="tab-pane" id="history">+ <div class="table-responsive">++ <table+ data-columns="{{ \App\Presenters\HistoryPresenter::dataTableLayout() }}"+ class="table table-striped snipe-table"+ id="componentHistory"+ data-pagination="true"+ data-id-table="componentHistory"+ data-search="true"+ data-side-pagination="server"+ data-show-columns="true"+ data-show-fullscreen="true"+ data-show-refresh="true"+ data-sort-order="desc"+ data-sort-name="created_at"+ data-show-export="true"+ data-export-options='{+ "fileName": "export-component-{{ $component->id }}-history",+ "ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]+ }'++ data-url="{{ route('api.activity.index', ['item_id' => $component->id, 'item_type' => 'component']) }}"+ data-cookie-id-table="componentHistory"+ data-cookie="true">+ </table>+ </div>+ </div><!-- /.tab-pane -->+@can('components.files', $component)<div class="tab-pane" id="files">