better frontend with dataset files
This commit is contained in:
parent
d788410cb5
commit
3b005f4555
13 changed files with 399 additions and 89 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
@section('content')
|
||||
|
||||
<h1 class="title">Documents</h1>
|
||||
<h1 class="title">Datasets</h1>
|
||||
|
||||
<br><br>
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
|||
|
||||
<thead>
|
||||
<th>id</th>
|
||||
<th>document type</th>
|
||||
<th>dataset type</th>
|
||||
<!-- <th>Category</th>
|
||||
<th>Shelf</th> -->
|
||||
|
||||
|
@ -18,11 +18,13 @@
|
|||
|
||||
<tbody>
|
||||
|
||||
@foreach($documents as $document)
|
||||
@foreach($documents as $dataset)
|
||||
|
||||
<tr>
|
||||
<td>{{ $document->id }}</td>
|
||||
<td>{{ $document->type }}</td>
|
||||
<td>
|
||||
<a href="{{ route('frontend.dataset.show', ['id' => $dataset->id]) }}"> {{ $dataset->id }} </a>
|
||||
</td>
|
||||
<td>{{ $dataset->type }}</td>
|
||||
<!-- <td>
|
||||
if($book->stock > 0)
|
||||
Available
|
||||
|
|
|
@ -1,33 +1,70 @@
|
|||
@extends('layouts.app')
|
||||
|
||||
@extends('layouts.app')
|
||||
@section('content')
|
||||
|
||||
<div>
|
||||
<div id="titlemain-wrapper">
|
||||
<div class="frontdoor_pagination">
|
||||
{{-- <a id="pagination-link-hitlist" href="{{ route('settings.document') }}">BACK</a> --}}
|
||||
<a href="{{ route('frontend.datasets') }}" class="pure-button">
|
||||
<span class="glyphicon glyphicon-chevron-left" ></span> BACK
|
||||
</a>
|
||||
|
||||
</div>
|
||||
@foreach ($document->titles as $title)
|
||||
<h2 class="titlemain"> {{ $title->value }}</h2>
|
||||
@endforeach
|
||||
</div>
|
||||
<section class="post">
|
||||
<header class="post-header">
|
||||
|
||||
</header>
|
||||
<div class="blog-meta">
|
||||
created: <?= $dataset->created_at->toDayDateTimeString() ?>
|
||||
</div>
|
||||
<div class="post-description">
|
||||
{{-- @foreach ($dataset->authors as $author)
|
||||
<em>Author: {{ $author->full_name }}</em>
|
||||
<br />
|
||||
@endforeach --}}
|
||||
@foreach ($dataset->titles as $title)
|
||||
<em>Main Title: {{ $title->value }}</em>
|
||||
<br />
|
||||
@endforeach
|
||||
@foreach ($dataset->abstracts as $abstract)
|
||||
<em>Abstract: {{ $abstract->value }}</em>
|
||||
<br />
|
||||
@endforeach
|
||||
@foreach ($authors as $author)
|
||||
<em>Author: {{ $author->full_name }}</em>
|
||||
<br />
|
||||
@endforeach
|
||||
@foreach ($contributors as $contributor)
|
||||
<em>Contributor: {{ $contributors->full_name }}</em>
|
||||
<br />
|
||||
@endforeach
|
||||
@foreach ($submitters as $submitter)
|
||||
<em>Contributor: {{ $submitter->full_name }}</em>
|
||||
<br />
|
||||
@endforeach
|
||||
|
||||
<div id="result-data">
|
||||
<div id="abstract">
|
||||
<ul>
|
||||
@foreach ($document->abstracts as $abstract)
|
||||
<li class="abstract preserve-spaces"> {{ $abstract->value }}</p>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
<table id="items" class="pure-table pure-table-horizontal">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Path Name</th>
|
||||
<th>Label</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($dataset->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>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@stop
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue