add publish module
This commit is contained in:
parent
100f6db9a6
commit
ffbbc04206
93 changed files with 8150 additions and 10228 deletions
|
@ -118,6 +118,3 @@
|
|||
<span>{!! $submitButtonText !!}</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
||||
@include('errors._errors')
|
||||
|
|
|
@ -1,96 +1,95 @@
|
|||
@extends('layouts.app')
|
||||
@extends('layouts.settings.layout')
|
||||
|
||||
@section('content')
|
||||
|
||||
|
||||
<div class="title">
|
||||
<h2><i class="fa fa-archive"></i> Datasets</h2>
|
||||
</div>
|
||||
@section('content')
|
||||
<div class="header">
|
||||
<h3 class="header-title">
|
||||
<i class="fa fa fa-database"></i> Datasets
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="pure-g">
|
||||
|
||||
<div class="sidebar-simplesearch pure-u-1">
|
||||
{!! Form::open(array('route' => 'settings.document','method' => 'GET', 'class'=>'pure-form')) !!}
|
||||
<p>
|
||||
{!! 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']) !!}
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1 pure-u-md-1-2">
|
||||
<button type="submit">
|
||||
<i class="fa fa-search"></i>
|
||||
</button>
|
||||
</div>
|
||||
</p>
|
||||
<input type="hidden" name="searchtype" id="searchtype" value="simple" />
|
||||
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1">
|
||||
<div class="panel-heading">Page {{ $documents->currentPage() }} of {{ $documents->lastPage() }}</div>
|
||||
<table class="pure-table pure-table-horizontal">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>id</th>
|
||||
<th>Document Type</th>
|
||||
<th>Project</th>
|
||||
<th>Titles</th>
|
||||
<th>Options</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($documents as $document)
|
||||
|
||||
<tr>
|
||||
|
||||
<td>{{ $document->id }}</td>
|
||||
<td>{{ $document->type }}</td>
|
||||
@if($document->hasProject())
|
||||
<td>{{ $document->project->name }}</td>
|
||||
@else
|
||||
<td>--</td>
|
||||
@endif
|
||||
|
||||
<td>
|
||||
@foreach ($document->titles as $title)
|
||||
<p>title: {{ $title->value }}</p>
|
||||
@endforeach
|
||||
|
||||
</td>
|
||||
|
||||
{{-- <td>
|
||||
@foreach ($document->collections as $collection)
|
||||
<p>in collection: {{ $collection->name }}</p>
|
||||
@endforeach --}}
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<a class="view" href="{{ route('settings.document.show', $document->id) }}"><span> </span></a>
|
||||
<a class="edit" href="{{ route('settings.document.edit', $document->id) }}"><span> </span></a>
|
||||
<!--<a class="delete" href="{{ route('settings.book.delete', $document->id) }}"><span> </span></a>-->
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="pure-g box-content">
|
||||
|
||||
|
||||
<div class="pure-u-1">
|
||||
{{ $documents
|
||||
->appends(Input::except('page'))
|
||||
->links('vendor.pagination.default') }}
|
||||
</div>
|
||||
|
||||
{!! Form::close() !!}
|
||||
<div class="sidebar-simplesearch pure-u-1">
|
||||
{!! Form::open(array('route' => 'settings.document','method' => 'GET', 'class'=>'pure-form')) !!}
|
||||
<p>
|
||||
{!! 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']) !!}
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1 pure-u-md-1-2">
|
||||
<button type="submit">
|
||||
<i class="fa fa-search"></i>
|
||||
</button>
|
||||
</div>
|
||||
</p>
|
||||
<input type="hidden" name="searchtype" id="searchtype" value="simple" />
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1">
|
||||
<div class="panel-heading">Page {{ $documents->currentPage() }} of {{ $documents->lastPage() }}</div>
|
||||
<table class="pure-table pure-table-horizontal">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>id</th>
|
||||
<th>Document Type</th>
|
||||
<th>Project</th>
|
||||
<th>Titles</th>
|
||||
<th>Options</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($documents as $document)
|
||||
|
||||
<tr>
|
||||
|
||||
<td>{{ $document->id }}</td>
|
||||
<td>{{ $document->type }}</td>
|
||||
@if($document->hasProject())
|
||||
<td>{{ $document->project->name }}</td>
|
||||
@else
|
||||
<td>--</td>
|
||||
@endif
|
||||
|
||||
<td>
|
||||
@foreach ($document->titles as $title)
|
||||
<p>title: {{ $title->value }}</p>
|
||||
@endforeach
|
||||
|
||||
</td>
|
||||
|
||||
{{-- <td>
|
||||
@foreach ($document->collections as $collection)
|
||||
<p>in collection: {{ $collection->name }}</p>
|
||||
@endforeach --}}
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<a class="view" href="{{ route('settings.document.show', $document->id) }}"><span> </span></a>
|
||||
<a class="edit" href="{{ route('settings.document.edit', $document->id) }}"><span> </span></a>
|
||||
<!--<a class="delete" href="{{ route('settings.book.delete', $document->id) }}"><span> </span></a>-->
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="pure-u-1">
|
||||
{{ $documents
|
||||
->appends(Input::except('page'))
|
||||
->links('vendor.pagination.default') }}
|
||||
</div>
|
||||
|
||||
{!! Form::close() !!}
|
||||
|
||||
</div>
|
||||
|
||||
@stop
|
|
@ -1,30 +1,27 @@
|
|||
@extends('layouts.app')
|
||||
|
||||
@extends('layouts.settings.layout')
|
||||
|
||||
@section('content')
|
||||
<div class="pure-g">
|
||||
<div class="header">
|
||||
<h3 class="header-title">
|
||||
<span>Edit Your Dataset</span>
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div class="pure-g box-content">
|
||||
|
||||
<div class="pure-u-1 pure-u-md-3-3">
|
||||
<div class="content">
|
||||
<h1 class="title">Edit Your Dataset</h1>
|
||||
<div>
|
||||
<a href="{{ route('settings.document') }}" class="pure-button button-small">
|
||||
<i class="fa fa-chevron-left"></i>
|
||||
<span>BACK</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
|
||||
{!! Form::model($document, ['method' => 'PATCH', 'route' => ['settings.document.update', $document->id], 'class' => 'pure-form', 'enctype' => 'multipart/form-data' ]) !!}
|
||||
|
||||
@include('settings/document/_form', ['submitButtonText' => 'Edit Dataset', 'bookLabel' => 'Edit Dataset.'])
|
||||
|
||||
{!! Form::close() !!}
|
||||
|
||||
</div>
|
||||
<div class="pure-u-1 pure-u-md-3-3">
|
||||
<div>
|
||||
<a href="{{ route('settings.document') }}" class="pure-button button-small">
|
||||
<i class="fa fa-chevron-left"></i>
|
||||
<span>BACK</span>
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
{!! Form::model($document, ['method' => 'PATCH', 'route' => ['settings.document.update', $document->id], 'class' => 'pure-form', 'enctype' => 'multipart/form-data' ]) !!}
|
||||
@include('settings/document/_form', ['submitButtonText' => 'Edit Dataset', 'bookLabel' => 'Edit Dataset.'])
|
||||
@include('errors._errors')
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -1,11 +1,16 @@
|
|||
@extends('layouts.app')
|
||||
@extends('layouts.settings.layout')
|
||||
|
||||
@section('content')
|
||||
<div class="header">
|
||||
<h3 class="header-title">
|
||||
<i class="fa fa-archive"></i> Detail
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div id="titlemain-wrapper">
|
||||
<div class="pure-g box-content">
|
||||
<div id="titlemain-wrapper" class="pure-u-1 pure-u-md-1-2">
|
||||
<div class="frontdoor_pagination">
|
||||
<a href="{{ route('settings.document') }}" class="pure-button">
|
||||
<a href="{{ route('settings.document') }}" class="pure-button button-small">
|
||||
<i class="fa fa-arrow-left"></i> BACK
|
||||
</a>
|
||||
</div>
|
||||
|
@ -14,7 +19,7 @@
|
|||
@endforeach
|
||||
</div>
|
||||
|
||||
<div id="result-data">
|
||||
<div id="result-data" class="pure-u-1 pure-u-md-1-2">
|
||||
<div id="abstract">
|
||||
<ul>
|
||||
@foreach ($document->abstracts as $abstract)
|
||||
|
@ -25,7 +30,5 @@
|
|||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
@stop
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue