listing files in backend
This commit is contained in:
parent
4ac1c34b6a
commit
ccff83fa66
9 changed files with 153 additions and 93 deletions
|
@ -111,6 +111,32 @@
|
|||
</fieldset>
|
||||
|
||||
|
||||
<fieldset id="fieldset-abstracts">
|
||||
<legend>Files</legend>
|
||||
<table id="items" class="pure-table pure-table-horizontal">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Path Name</th>
|
||||
<th>Label</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($document->files as $key => $file)
|
||||
<tr>
|
||||
<td>
|
||||
@if($file->exists() === true)
|
||||
<a href="{{ route('settings.file.download', ['id' => $file->id]) }}"> {{ $file->path_name }} </a>
|
||||
@else
|
||||
<span class="alert">missing file: {{ $file->path_name }}</span>
|
||||
@endif
|
||||
</td>
|
||||
<td> {{ $file->label }} </td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<br />
|
||||
<div class="pure-controls">
|
||||
<button type="submit" class="pure-button button-small">
|
||||
|
|
|
@ -17,13 +17,13 @@
|
|||
{!! Form::text('search', null, array('class'=>'pure-u-1 pure-u-md-1-2', 'placeholder'=>'filter for the title...')) !!}
|
||||
|
||||
<div class="select pure-u-1 pure-u-md-1-2">
|
||||
{!! Form::select('state', Config::get('enums.server_states'), 'published', ['class' => 'pure-u-1']) !!}
|
||||
{!! Form::select('state', Config::get('enums.server_states'), 'published', ['class' => 'pure-u-1', 'onchange' => "this.form.submit()"]) !!}
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1 pure-u-md-1-2">
|
||||
<button type="submit">
|
||||
{{-- <button type="submit">
|
||||
<i class="fa fa-search"></i>
|
||||
</button>
|
||||
</button> --}}
|
||||
</div>
|
||||
</p>
|
||||
<input type="hidden" name="searchtype" id="searchtype" value="simple" />
|
||||
|
@ -81,14 +81,15 @@
|
|||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
{!! Form::close() !!}
|
||||
|
||||
<div class="pure-u-1">
|
||||
{{ $documents
|
||||
->appends(Input::except('page'))
|
||||
->links('vendor.pagination.default') }}
|
||||
</div>
|
||||
|
||||
{!! Form::close() !!}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue