my changes
This commit is contained in:
parent
28301e4312
commit
8dc1f1b048
263 changed files with 36882 additions and 4453 deletions
50
resources/views/publish/create-step1.blade.php
Normal file
50
resources/views/publish/create-step1.blade.php
Normal file
|
@ -0,0 +1,50 @@
|
|||
@extends('layouts.app')
|
||||
|
||||
@section('title', 'Publish')
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="title">
|
||||
<h2><i class="fa fa-upload"></i> Publish New Dataset - Step 1</h2>
|
||||
</div>
|
||||
|
||||
{{-- <h3 class="document-type">Dokumenttyp und Datei wählen</h3> --}}
|
||||
{{-- <form action="/dataset/store-step1" method="post" class="pure-form" enctype="multipart/form-data"> --}}
|
||||
{!! Form::model($dataset, ['method' => 'POST', 'route' => ['dataset.store1'], 'class' => 'pure-form']) !!}
|
||||
|
||||
{{ csrf_field() }}
|
||||
<fieldset class="left-labels">
|
||||
|
||||
<legend>Datensatztyp</legend>
|
||||
<div class="description hint">
|
||||
<p>Bitte wählen Sie einen Datensatztyp aus der Liste aus.</p></div><p></p><div class="form-item">
|
||||
<label for="documentType">Datensatztyp<span class="required" title="Dieses Feld muss ausgefüllt werden."> *</span></label>
|
||||
<div class="select" style="width:300px" title="Bitte wählen Sie einen Datensatztyp aus der Liste aus.">
|
||||
{!! Form::select('Type', Lang::get('doctypes'), null, ['id' => 'type', 'placeholder' => '-- select type --']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="left-labels">
|
||||
<legend>Einräumung eines einfachen Nutzungsrechts</legend>
|
||||
<div class="class="pure-u-1 pure-u-md-1-2 pure-div"">
|
||||
<small for="rights" class="pure-form-message-inline">Ich habe diese rechtlichen Hinweise gelesen und bin damit einverstanden.
|
||||
<span class="required" title="Dieses Feld muss ausgefüllt werden.">*</span>
|
||||
</small>
|
||||
<input name="rights" value="0" type="hidden">
|
||||
<input class="form-checkbox" name="rights" id="rights" value="1" type="checkbox">
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<br />
|
||||
<div class="pure-controls">
|
||||
<button type="submit" class="pure-button button-small">
|
||||
<i class="fa fa-arrow-right"></i>
|
||||
<span>Weiter zum nächsten Schritt</span>
|
||||
</button>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
|
||||
@include('errors._errors')
|
||||
|
||||
@stop
|
106
resources/views/publish/create-step2.blade.php
Normal file
106
resources/views/publish/create-step2.blade.php
Normal file
|
@ -0,0 +1,106 @@
|
|||
@extends('layouts.app')
|
||||
|
||||
@section('title', 'Publish')
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="title">
|
||||
<h2><i class="fa fa-upload"></i> Publish New Dataset - Step 2</h2>
|
||||
</div>
|
||||
|
||||
<h3 class="document-type">Attribute eingeben</h3>
|
||||
{{-- <div method="post" enctype="multipart/from-data" class="pure-form"> --}}
|
||||
{!! Form::model($dataset, ['method' => 'post', 'files' => true , 'route' => ['dataset.store2'], 'class' => 'pure-form']) !!}
|
||||
|
||||
<fieldset id="fieldset-general">
|
||||
<legend>General</legend>
|
||||
<div class="pure-g">
|
||||
|
||||
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
||||
{!! Form::label('Type', 'Type..') !!}
|
||||
<div class="select pure-u-23-24">
|
||||
{!! Form::select('Type', Lang::get('doctypes'), null, ['id' => 'type', 'placeholder' => '-- select type --']) !!}
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
||||
{!! Form::label('CreatingCorporation', 'Creating Corporation') !!}
|
||||
{!! Form::text('CreatingCorporation', null, ['class' => 'pure-u-23-24']) !!}
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
||||
{!! Form::label('EmbargoDate', 'Embargo Date') !!}
|
||||
{!! Form::date('EmbargoDate', null, ['placeholder' => date('y-m-d'), 'class' => 'pure-u-23-24']) !!}
|
||||
<small id="projectHelp" class="pure-form-message-inline">EmbargoDate is optional</small>
|
||||
</div>
|
||||
|
||||
<!-- checkboxes -->
|
||||
<label for="BelongsToBibliography" class="pure-checkbox">
|
||||
<input type="hidden" name="BelongsToBibliography" value="0">
|
||||
<input name="BelongsToBibliography" value="1" type="checkbox" class="form-check-input">
|
||||
Belongs To Bibliography?
|
||||
</label>
|
||||
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset id="fieldset-titles">
|
||||
<legend>Main Title & Abstract</legend>
|
||||
<div class="pure-g">
|
||||
|
||||
|
||||
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
||||
{!! Form::label('TitleMain', 'Main Title ') !!}
|
||||
{!! Form::text('TitleMain[Value]', null, ['class' => 'pure-u-23-24']) !!}
|
||||
</div>
|
||||
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
||||
{!! Form::label('language', 'Title Language..') !!}
|
||||
<div class="select pure-u-23-24">
|
||||
{!! Form::select('TitleMain[Language]', $languages, null, ['placeholder' => '--no language--']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
||||
{!! Form::label('TitleAbstract', 'Main Abstract ') !!}
|
||||
{!! Form::text('TitleAbstract[Value]', null, ['class' => 'pure-u-23-24']) !!}
|
||||
</div>
|
||||
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
||||
{!! Form::label('language', 'Abstract Language..') !!}
|
||||
<div class="select pure-u-23-24">
|
||||
{!! Form::select('TitleAbstract[Language]', $languages, null, ['placeholder' => '--no language--']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset id="fieldset-files">
|
||||
<legend>Files</legend>
|
||||
<div class="pure-g">
|
||||
<div class="fpure-u-1 pure-u-md-1-2 pure-div">
|
||||
{!! Form::label('dataset_file', 'Dataset File') !!}
|
||||
<input type="file" {{ (!empty($dataset['DatasetFile'])) ? "disabled" : "" }} class="pure-u-23-24" name="dataset_file">
|
||||
<small id="fileHelp" class="pure-form-message-inline">Please upload a valid image file. Size of image should not be more than 2MB.</small>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
|
||||
|
||||
<br />
|
||||
<div class="pure-controls">
|
||||
<button type="submit" class="pure-button button-small">
|
||||
<i class="fa fa-arrow-right"></i>
|
||||
<span>Review Dataset Details</span>
|
||||
</button>
|
||||
</div>
|
||||
@include('errors._errors')
|
||||
{!! Form::close() !!}
|
||||
|
||||
|
||||
@if(isset($dataset['DatasetFile']))
|
||||
<form action="" method="post">
|
||||
{{ csrf_field() }}
|
||||
<button type="submit" class="btn btn-danger">Remove Image</button>
|
||||
</form>
|
||||
@endif
|
||||
|
||||
@stop
|
67
resources/views/publish/create-step3.blade.php
Normal file
67
resources/views/publish/create-step3.blade.php
Normal file
|
@ -0,0 +1,67 @@
|
|||
@extends('layouts.app')
|
||||
|
||||
@section('title', 'Publish')
|
||||
|
||||
@section('content')
|
||||
<h1>Add New Dataset - Step 3</h1>
|
||||
<hr>
|
||||
<h3>Review Dataset Details</h3>
|
||||
<form action={{ route('dataset.store') }}} method="post" class="pure-form" >
|
||||
{{ csrf_field() }}
|
||||
<table class="table">
|
||||
<tr>
|
||||
<td>Dataset Type:</td>
|
||||
<td><strong>{{ $dataset['Type'] }}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Creating Corporation:</td>
|
||||
<td><strong>{{ $dataset['CreatingCorporation'] or '' }}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Embargo Date:</td>
|
||||
<td><strong>{{ $dataset['EmbargoDate'] or '' }}</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Main Title:</td>
|
||||
@if(isset($dataset['TitleMain']))
|
||||
<td><strong>{{ $dataset['TitleMain']['Value'] }} </strong></td>
|
||||
@endif
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Main Abstract:</td>
|
||||
@if(isset($dataset['TitleAbstract']))
|
||||
<td><strong>{{ $dataset['TitleAbstract']['Value'] }} </strong></td>
|
||||
@endif
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Belongs To Bibliography:</td>
|
||||
<td><strong>{{ isset($dataset['BelongsToBibliography']) ? 'Yes' : 'No' }}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Product Image:</td>
|
||||
<td><strong><img alt="Product Image" src="/storage/files/{{$dataset['DatasetFile']}}"/></strong></td>
|
||||
</tr>
|
||||
|
||||
{{-- <tr>
|
||||
<td>Product Image:</td>
|
||||
<td><strong><img alt="Product Image" src="/storage/productimg/{{$product->productImg}}"/></strong></td>
|
||||
</tr> --}}
|
||||
</table>
|
||||
<div class="pure-controls">
|
||||
<a type="button" href="{{ route('dataset.create1') }}" class="pure-button button-small is-warning">Back to Step 1</a>
|
||||
<a type="button" href={{ route('dataset.create2') }} class="pure-button button-small is-warning">Back to Step 2</a>
|
||||
<button type="submit" class="pure-button button-small">
|
||||
<i class="fa fa-save"></i>
|
||||
<span>Create Product</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
@include('errors._errors')
|
||||
|
||||
@stop
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue