mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
api/savereports controller
This commit is contained in:
parent
45dbc02868
commit
e5792fd415
12
app/Http/Controllers/Api/SavedReportsController.php
Normal file
12
app/Http/Controllers/Api/SavedReportsController.php
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Api;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class SavedReportsController extends Controller
|
||||
{
|
||||
//displays a list of all saved reports
|
||||
//displays the saved report?
|
||||
}
|
|
@ -10,6 +10,7 @@ class SavedReportsController extends Controller
|
|||
public function store(Request $request)
|
||||
{
|
||||
|
||||
|
||||
dd($request->all());
|
||||
|
||||
}
|
||||
|
|
|
@ -375,7 +375,7 @@
|
|||
</form>
|
||||
</div>
|
||||
<div style=padding-bottom:5px>
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" tabindex="-1" style="border:1px solid black">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" tabindex="-1" >
|
||||
{{ trans('admin/reports/general.select_template') }}
|
||||
<strong class="caret"></strong>
|
||||
</a>
|
||||
|
@ -388,20 +388,21 @@
|
|||
</ul>
|
||||
</div>
|
||||
|
||||
{{-- {{ $fieldname = $report->name }}--}}
|
||||
{{-- <select class="js-data-ajax" data-endpoint="locations" data-placeholder="{{ trans('admin/reports/general.select_template') }}" name="{{ $fieldname }}" style="width: 100%" id="{{ $fieldname }}_location_select" aria-label="{{ $fieldname }}" {!! ((isset($item)) && (Helper::checkIfRequired($item, $fieldname))) ? ' data-validation="required" required' : '' !!}{{ (isset($multiple) && ($multiple=='true')) ? " multiple='multiple'" : '' }}>--}}
|
||||
{{-- @if ($report->name!='')--}}
|
||||
{{-- <option value="{{ $fieldname }}" selected="selected" role="option" aria-selected="true" role="option">--}}
|
||||
{{-- @foreach($saved_reports as $report)--}}
|
||||
{{-- <li>--}}
|
||||
{{-- {{ $report->name }}--}}
|
||||
{{-- </li>--}}
|
||||
{{-- @endforeach--}}
|
||||
{{-- </option>--}}
|
||||
{{-- @else--}}
|
||||
{{-- <option value="" role="option">{{ trans('admin/reports/general.select_template') }}</option>--}}
|
||||
{{-- @endif--}}
|
||||
{{-- </select>--}}
|
||||
|
||||
{{ $fieldname = $report->name }}
|
||||
<select class="js-data-ajax" data-endpoint="locations" data-placeholder="{{ trans('admin/reports/general.select_template') }}" name="{{ $fieldname }}" style="width: 100%" id="{{ $fieldname }}_location_select" aria-label="{{ $fieldname }}" {!! ((isset($item)) && (Helper::checkIfRequired($item, $fieldname))) ? ' data-validation="required" required' : '' !!}{{ (isset($multiple) && ($multiple=='true')) ? " multiple='multiple'" : '' }}>
|
||||
@if ($report->name!='')
|
||||
<option value="{{ $fieldname }}" selected="selected" role="option" aria-selected="true" role="option">
|
||||
@foreach($saved_reports as $report)
|
||||
<li>
|
||||
{{ $report->name }}
|
||||
</li>
|
||||
@endforeach
|
||||
</option>
|
||||
@else
|
||||
<option value="" role="option">{{ trans('admin/reports/general.select_template') }}</option>
|
||||
@endif
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue