- messages also in edit forms of submitter and editor

- help texts on click event in create form
This commit is contained in:
Arno Kaimbacher 2020-01-28 17:59:52 +01:00
parent 619a37e246
commit e0dcffdf00
19 changed files with 850 additions and 765 deletions

View File

@ -108,6 +108,10 @@ class EditorController extends Controller
$languages = DB::table('languages') $languages = DB::table('languages')
->where('active', true) ->where('active', true)
->pluck('part1', 'part1'); ->pluck('part1', 'part1');
$messages = DB::table('messages')
->pluck('help_text', 'metadata_element');
$projects = Project::pluck('label', 'id'); $projects = Project::pluck('label', 'id');
$datum = date('Y-m-d'); $datum = date('Y-m-d');
@ -144,6 +148,7 @@ class EditorController extends Controller
'titleTypes', 'titleTypes',
'descriptionTypes', 'descriptionTypes',
'languages', 'languages',
'messages',
'projects', 'projects',
'licenses', 'licenses',
'checkeds', 'checkeds',

View File

@ -70,6 +70,9 @@ class SubmitController extends Controller
->where('active', true) ->where('active', true)
->pluck('part1', 'part1'); ->pluck('part1', 'part1');
$messages = DB::table('messages')
->pluck('help_text', 'metadata_element');
$projects = Project::pluck('label', 'id'); $projects = Project::pluck('label', 'id');
$datum = date('Y-m-d'); $datum = date('Y-m-d');
@ -105,6 +108,7 @@ class SubmitController extends Controller
'titleTypes', 'titleTypes',
'descriptionTypes', 'descriptionTypes',
'languages', 'languages',
'messages',
'projects', 'projects',
'licenses', 'licenses',
'checkeds', 'checkeds',

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1021,3 +1021,7 @@ textarea.large, input.large {
color: #4dc0b5; color: #4dc0b5;
} }
i {
cursor: pointer;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -113,6 +113,7 @@ export default class EditDataset extends Vue {
this.titleTypes = window.Laravel.titleTypes; this.titleTypes = window.Laravel.titleTypes;
this.descriptionTypes = window.Laravel.descriptionTypes; this.descriptionTypes = window.Laravel.descriptionTypes;
this.languages = window.Laravel.languages; this.languages = window.Laravel.languages;
this.messages = window.Laravel.messages;
this.projects = window.Laravel.projects; this.projects = window.Laravel.projects;
this.licenses = window.Laravel.licenses; this.licenses = window.Laravel.licenses;
this.checkeds = window.Laravel.checkeds; this.checkeds = window.Laravel.checkeds;

View File

@ -104,6 +104,9 @@
<script lang="ts"> <script lang="ts">
import draggable from "vuedraggable"; import draggable from "vuedraggable";
import { Component, Inject, Vue, Prop, Watch } from "vue-property-decorator"; import { Component, Inject, Vue, Prop, Watch } from "vue-property-decorator";
import Tooltip from 'vue-directive-tooltip';
import 'vue-directive-tooltip/dist/vueDirectiveTooltip.css';
Vue.use(Tooltip);
@Component({ @Component({
components: { draggable } components: { draggable }

View File

@ -151,7 +151,6 @@ const app = new Vue({
mounted() { mounted() {
//this.step = 2; //this.step = 2;
this.reset(); this.reset();
console.log(this.messages);
}, },
beforeMount() { beforeMount() {
this.messages = window.Laravel.messages; this.messages = window.Laravel.messages;

View File

@ -4,14 +4,15 @@
@section('styles') @section('styles')
<style> <style>
.vue-tooltip.tooltip-custom { .vue-tooltip.tooltip-custom {
background-color: #00a9d8; background-color: #00a9d8;
z-index: 9999; z-index: 9999;
} }
.vue-tooltip.tooltip-custom .tooltip-content {
.vue-tooltip.tooltip-custom .tooltip-content {
z-index: 9999; z-index: 9999;
} }
</style> </style>
@stop @stop
@section('content') @section('content')
@ -41,12 +42,14 @@
<label for="language"> <label for="language">
<span> <span>
Language.. Language..
<i v-tooltip="{ content: messages.dataset_language, class: 'tooltip-custom tooltip-other-custom' }" <i @click.prevent
v-tooltip.click.manual="{ content: messages.dataset_language, class: 'tooltip-custom tooltip-other-custom' }"
class="far fa-lg fa-question-circle"></i> class="far fa-lg fa-question-circle"></i>
</span> </span>
</label> </label>
<div class="select pure-u-23-24"> <div class="select pure-u-23-24">
{!! Form::select('language', $languages, null, ['placeholder' => '[language]', 'v-model' => 'dataset.language', "v-validate" {!! Form::select('language', $languages, null, ['placeholder' => '[language]', 'v-model' =>
'dataset.language', "v-validate"
=> "'required'", 'data-vv-scope' => 'step-0']) !!} => "'required'", 'data-vv-scope' => 'step-0']) !!}
</div> </div>
<small id="languageHelp" class="pure-form-message-inline">select dataset main language</small> <small id="languageHelp" class="pure-form-message-inline">select dataset main language</small>
@ -73,7 +76,7 @@
<div v-if="step === 1 && isInitial" data-vv-scope="step-1"> <div v-if="step === 1 && isInitial" data-vv-scope="step-1">
<h1>Step One: Mandatory Elements</h1> <h1>Step One: Mandatory Elements</h1>
<div class="form-group"> <fieldset class="fieldset-general">
<legend>General</legend> <legend>General</legend>
<div class="description hint"> <div class="description hint">
<p>Bitte wählen Sie einen Datensatztyp aus der Liste aus.</p> <p>Bitte wählen Sie einen Datensatztyp aus der Liste aus.</p>
@ -87,18 +90,22 @@
</div> </div>
</div> --}} </div> --}}
<div class="pure-u-1 pure-u-md-1-2 pure-div"> <div class="pure-u-1 pure-u-md-1-2 pure-div">
<label for="documentType">Dataset Type<span class="required" title="Dieses Feld muss ausgefüllt werden."> <label for="documentType">Dataset Type<span class="required"
* <i v-tooltip="{ content: messages.dataset_type, class: 'tooltip-custom tooltip-other-custom' }" class="far fa-lg fa-question-circle"></i> title="Dieses Feld muss ausgefüllt werden.">
* <i @click.prevent
v-tooltip.click="{ content: messages.dataset_type, class: 'tooltip-custom tooltip-other-custom' }"
class="far fa-lg fa-question-circle"></i>
</span> </span>
</label> </label>
<div class="select pure-u-23-24" title="Bitte wählen Sie einen Datensatztyp aus der Liste aus."> <div class="select pure-u-23-24" title="Bitte wählen Sie einen Datensatztyp aus der Liste aus.">
{!! Form::select('Type', Lang::get('doctypes'), null, ['id' => 'type', 'placeholder' => '-- select type --', 'v-model' => {!! Form::select('Type', Lang::get('doctypes'), null, ['id' => 'type', 'placeholder' => '--
select type --', 'v-model' =>
'dataset.type', "v-validate" => "'required'", 'data-vv-scope' => 'step-1']) !!} 'dataset.type', "v-validate" => "'required'", 'data-vv-scope' => 'step-1']) !!}
</div> </div>
</div> </div>
</div> </fieldset>
<fieldset id="fieldset-titles"> <fieldset id="fieldset-titles">
<legend> <legend>
@ -110,12 +117,14 @@
<label for="TitleMain"> <label for="TitleMain">
<span> <span>
Main Title Main Title
<i v-tooltip="{ content: messages.main_title, class: 'tooltip-custom tooltip-other-custom' }" <i @click.prevent
v-tooltip.click="{ content: messages.main_title, class: 'tooltip-custom tooltip-other-custom' }"
class="far fa-lg fa-question-circle"></i> class="far fa-lg fa-question-circle"></i>
</span> </span>
</label> </label>
{!! Form::text('TitleMain[Value]', null, ['class' => 'pure-u-23-24', 'v-model' {!! Form::text('TitleMain[Value]', null, ['class' => 'pure-u-23-24', 'v-model'
=> 'dataset.title_main.value', "v-validate" => "'required|min:4|max:255'", "data-vv-as" => "Main Title", 'data-vv-scope' => 'step-1']) !!} => 'dataset.title_main.value', "v-validate" => "'required|min:4|max:255'", "data-vv-as" => "Main
Title", 'data-vv-scope' => 'step-1']) !!}
</div> </div>
<div class="pure-u-1 pure-u-md-1-2 pure-div"> <div class="pure-u-1 pure-u-md-1-2 pure-div">
{!! Form::label('TitleLanguage', 'Title Language..') !!} {!! Form::label('TitleLanguage', 'Title Language..') !!}
@ -123,14 +132,15 @@
{!! Form::select('TitleMain[Language]', $languages, null, ['placeholder' => '--no language--', 'v-model' => 'dataset.title_main.language', {!! Form::select('TitleMain[Language]', $languages, null, ['placeholder' => '--no language--', 'v-model' => 'dataset.title_main.language',
"v-validate" => "'required'", "data-vv-as" => "Title Language", 'data-vv-scope' => 'step-1']) !!} "v-validate" => "'required'", "data-vv-as" => "Title Language", 'data-vv-scope' => 'step-1']) !!}
</div> --}} </div> --}}
{!! Form::text('TitleMain[Language]', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.title_main.language', 'readonly']) !!} {!! Form::text('TitleMain[Language]', null, ['class' => 'pure-u-23-24', 'v-model' =>
'dataset.title_main.language', 'readonly']) !!}
</div> </div>
</div> </div>
<div class="pure-u-1 pure-u-md-1-2 pure-div"> <div class="pure-u-1 pure-u-md-1-2 pure-div">
<label> <label>
<span> <span>
Add additional title(s) <i Add additional title(s) <i @click.prevent
v-tooltip="{ content: messages.additional_titles, class: 'tooltip-custom tooltip-other-custom' }" v-tooltip.click="{ content: messages.additional_titles, class: 'tooltip-custom tooltip-other-custom' }"
class="far fa-lg fa-question-circle"></i> class="far fa-lg fa-question-circle"></i>
</span> </span>
</label> </label>
@ -148,20 +158,25 @@
<tbody> <tbody>
<tr v-for="(item, index) in dataset.titles"> <tr v-for="(item, index) in dataset.titles">
<td> <td>
<input name="Title" class="form-control" placeholder="[TITLE]" v-model="item.value" data-vv-as="Additional Title" v-validate="'required|min:4|max:255'" data-vv-scope="step-1" /> <input name="Title" class="form-control" placeholder="[TITLE]" v-model="item.value"
data-vv-as="Additional Title" v-validate="'required|min:4|max:255'"
data-vv-scope="step-1" />
</td> </td>
<td> <td>
{!! Form::select('Title[Type]', $titleTypes, null, {!! Form::select('Title[Type]', $titleTypes, null,
['placeholder' => '[titleType]', 'v-model' => 'item.type', "v-validate" => "'required'", 'data-vv-scope' => 'step-1']) !!} ['placeholder' => '[titleType]', 'v-model' => 'item.type', "v-validate" => "'required'",
'data-vv-scope' => 'step-1']) !!}
</td> </td>
<td> <td>
{!! Form::select('Title[Language]', $languages, null, {!! Form::select('Title[Language]', $languages, null,
['placeholder' => '[language]', 'v-model' => 'item.language', "data-vv-as" => "Additional Title Language", ['placeholder' => '[language]', 'v-model' => 'item.language', "data-vv-as" =>
"Additional Title Language",
"v-validate" => "{required: true, translatedLanguage: [dataset.language, item.type]}", "v-validate" => "{required: true, translatedLanguage: [dataset.language, item.type]}",
'data-vv-scope' => 'step-1']) !!} 'data-vv-scope' => 'step-1']) !!}
</td> </td>
<td> <td>
<button class="pure-button button-small is-warning" @click.prevent="removeTitle(index)"> <i class="fa fa-trash"></i> </button> <button class="pure-button button-small is-warning" @click.prevent="removeTitle(index)">
<i class="fa fa-trash"></i> </button>
</td> </td>
</tr> </tr>
</tbody> </tbody>
@ -175,7 +190,8 @@
<label for="TitleAbstract"> <label for="TitleAbstract">
<span> <span>
Main Abstract Main Abstract
<i v-tooltip="{ content: messages.main_abstract, class: 'tooltip-custom tooltip-other-custom' }" <i @click.prevent
v-tooltip.click="{ content: messages.main_abstract, class: 'tooltip-custom tooltip-other-custom' }"
class="far fa-lg fa-question-circle"></i> class="far fa-lg fa-question-circle"></i>
</span> </span>
</label> </label>
@ -189,13 +205,14 @@
{!! Form::select('TitleAbstract[Language]', $languages, null, ['placeholder' => '--no language--', 'v-model' => 'dataset.abstract_main.language', {!! Form::select('TitleAbstract[Language]', $languages, null, ['placeholder' => '--no language--', 'v-model' => 'dataset.abstract_main.language',
"v-validate" => "'required'", "data-vv-as" => "Abstract Language", 'data-vv-scope' => 'step-1']) !!} "v-validate" => "'required'", "data-vv-as" => "Abstract Language", 'data-vv-scope' => 'step-1']) !!}
</div> --}} </div> --}}
{!! Form::text('TitleAbstract[Language]', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.abstract_main.language', 'readonly']) !!} {!! Form::text('TitleAbstract[Language]', null, ['class' => 'pure-u-23-24', 'v-model' =>
'dataset.abstract_main.language', 'readonly']) !!}
</div> </div>
<div class="pure-u-1 pure-u-md-1-2 pure-div"> <div class="pure-u-1 pure-u-md-1-2 pure-div">
<label> <label>
<span> <span>
Add additional descriptions(s) <i Add additional descriptions(s) <i @click.prevent
v-tooltip="{ content: messages.additional_descriptions, class: 'tooltip-custom tooltip-other-custom' }" v-tooltip.click="{ content: messages.additional_descriptions, class: 'tooltip-custom tooltip-other-custom' }"
class="far fa-lg fa-question-circle"></i> class="far fa-lg fa-question-circle"></i>
</span> </span>
</label> </label>
@ -214,11 +231,14 @@
<tbody> <tbody>
<tr v-for="(item, index) in dataset.abstracts"> <tr v-for="(item, index) in dataset.abstracts">
<td> <td>
<textarea rows="3" cols="40" name="Description[Value]" class="form-control" placeholder="[DESCRIPTION]" v-model="item.value" data-vv-as="Additional Description" v-validate="'required|min:4|max:2500'" data-vv-scope="step-1"></textarea> <textarea rows="3" cols="40" name="Description[Value]" class="form-control"
placeholder="[DESCRIPTION]" v-model="item.value" data-vv-as="Additional Description"
v-validate="'required|min:4|max:2500'" data-vv-scope="step-1"></textarea>
</td> </td>
<td> <td>
{!! Form::select('Description[Type]', $descriptionTypes, null, {!! Form::select('Description[Type]', $descriptionTypes, null,
['placeholder' => '[descriptionType]', 'v-model' => 'item.type', "v-validate" => "'required'", 'data-vv-scope' => 'step-1']) !!} ['placeholder' => '[descriptionType]', 'v-model' => 'item.type', "v-validate" =>
"'required'", 'data-vv-scope' => 'step-1']) !!}
</td> </td>
<td> <td>
{!! Form::select('Description[Language]', $languages, null, {!! Form::select('Description[Language]', $languages, null,
@ -229,7 +249,8 @@
'data-vv-scope' => 'step-1']) !!} 'data-vv-scope' => 'step-1']) !!}
</td> </td>
<td> <td>
<button class="pure-button button-small is-warning" @click.prevent="removeDescription(index)"> <i class="fa fa-trash"></i> </button> <button class="pure-button button-small is-warning"
@click.prevent="removeDescription(index)"> <i class="fa fa-trash"></i> </button>
</td> </td>
</tr> </tr>
</tbody> </tbody>
@ -240,11 +261,14 @@
<fieldset id="fieldset-creator"> <fieldset id="fieldset-creator">
<legend> <legend>
Creator Creator
<i v-tooltip="{ content: messages.creator, class: 'tooltip-custom tooltip-other-custom' }" class="far fa-lg fa-question-circle"></i> <i @click.prevent
v-tooltip.click="{ content: messages.creator, class: 'tooltip-custom tooltip-other-custom' }"
class="far fa-lg fa-question-circle"></i>
</legend> </legend>
<div class="pure-g"> <div class="pure-g">
<div class="pure-u-1 pure-u-md-1-2 pure-div"> <div class="pure-u-1 pure-u-md-1-2 pure-div">
<my-autocomplete title="searching active person table" v-on:person="onAddAuthor"></my-autocomplete> <my-autocomplete title="searching active person table" v-on:person="onAddAuthor">
</my-autocomplete>
{{-- {{--
<my-autocomplete :items="[ 'Apple', 'Banana', 'Orange', 'Mango', 'Pear', 'Peach', 'Grape', 'Tangerine', 'Pineapple']"></my-autocomplete> --}} <my-autocomplete :items="[ 'Apple', 'Banana', 'Orange', 'Mango', 'Pear', 'Peach', 'Grape', 'Tangerine', 'Pineapple']"></my-autocomplete> --}}
</div> </div>
@ -258,19 +282,23 @@
<br /> <br />
</div> </div>
</div> --}} </div> --}}
</div> </div>
<div class="pure-u-1 pure-u-md-1-2 pure-div"> <div class="pure-u-1 pure-u-md-1-2 pure-div">
{!! Form::label('additionalCreators', 'Add additional creator(s) if creator is not in database') !!} {!! Form::label('additionalCreators', 'Add additional creator(s) if creator is not in database') !!}
<button class="pure-button button-small" @click.prevent="addNewAuthor()">+</button> <button class="pure-button button-small" @click.prevent="addNewAuthor()">+</button>
</div> </div>
<input name="persons" v-model="dataset.persons" type="hidden" class="form-check-input" v-validate="'required'" data-vv-as="Creator" data-vv-scope="step-1"> <input name="persons" v-model="dataset.persons" type="hidden" class="form-check-input" v-validate="'required'"
<person-table name="persons" v-bind:messages="messages" v-bind:heading="'creator table'" v-bind:personlist="dataset.persons"></person-table> data-vv-as="Creator" data-vv-scope="step-1">
</fieldset> <person-table name="persons" v-bind:messages="messages" v-bind:heading="'creator table'"
v-bind:personlist="dataset.persons"></person-table>
</fieldset>
<fieldset id="fieldset-contributors"> <fieldset id="fieldset-contributors">
<legend> <legend>
Contributor Contributor
<i v-tooltip="{ content: messages.contributor, class: 'tooltip-custom tooltip-other-custom' }" class="far fa-lg fa-question-circle"></i> <i @click.prevent
v-tooltip.click="{ content: messages.contributor, class: 'tooltip-custom tooltip-other-custom' }"
class="far fa-lg fa-question-circle"></i>
</legend> </legend>
<div class="pure-g"> <div class="pure-g">
<div class="pure-u-1 pure-u-md-1-2 pure-div"> <div class="pure-u-1 pure-u-md-1-2 pure-div">
@ -292,37 +320,43 @@
<button class="pure-button button-small" @click.prevent="addNewContributor()">+</button> <button class="pure-button button-small" @click.prevent="addNewContributor()">+</button>
</div> </div>
{{-- <h3>contributor table</h3> --}} {{-- <h3>contributor table</h3> --}}
<person-table name="contributors" v-bind:messages="messages" v-bind:heading="'contributor table'" v-bind:personlist="dataset.contributors"></person-table> <person-table name="contributors" v-bind:messages="messages" v-bind:heading="'contributor table'"
</fieldset> v-bind:personlist="dataset.contributors"></person-table>
</fieldset>
<fieldset id="fieldset-publisher"> <fieldset id="fieldset-publisher">
<legend>Creating Corporation</legend> <legend>Creating Corporation</legend>
<div class="pure-u-1 pure-u-md-1-2 pure-div"> <div class="pure-u-1 pure-u-md-1-2 pure-div">
<label for="CreatingCorporation"> <label for="CreatingCorporation">
<span> <span>
Corporation Name Corporation Name
<i v-tooltip="{ content: messages.corporate_name, class: 'tooltip-custom tooltip-other-custom' }" <i @click.prevent
v-tooltip.click="{ content: messages.corporate_name, class: 'tooltip-custom tooltip-other-custom' }"
class="far fa-lg fa-question-circle"></i> class="far fa-lg fa-question-circle"></i>
</span> </span>
</label> </label>
{!! Form::text('CreatingCorporation', null, ['readonly', 'class' => {!! Form::text('CreatingCorporation', null, ['readonly', 'class' =>
'pure-u-23-24', 'v-model' => 'dataset.creating_corporation', "v-validate" => "'required'", 'data-vv-scope' => 'step-1']) !!} 'pure-u-23-24', 'v-model' => 'dataset.creating_corporation', "v-validate" => "'required'", 'data-vv-scope' =>
'step-1']) !!}
</div> </div>
</fieldset> </fieldset>
<div :class="{'form-group':true, 'has-error':errors.has('step-1.rights')}"> <div :class="{'form-group':true, 'has-error':errors.has('step-1.rights')}">
<label for="rights"> <label for="rights">
<input class="form-checkbox" name="rights" id="rights" type="checkbox" v-model="dataset.rights" v-validate="'required'" data-vv-scope="step-1"> <input class="form-checkbox" name="rights" id="rights" type="checkbox" v-model="dataset.rights"
v-validate="'required'" data-vv-scope="step-1">
terms and conditions terms and conditions
</label> </label>
<i class="fas fa-info-circle" @click="showModal" style="font-size:24px"></i> <i class="fas fa-info-circle" @click="showModal" style="font-size:24px"></i>
<Modal v-if="isModalVisible" @close="closeModal" > <Modal v-if="isModalVisible" @close="closeModal">
<template slot="header"> <template slot="header">
{!! trans('validation.attributes.backend.create-dataset.terms_and_conditions').'*' !!} {!! trans('validation.attributes.backend.create-dataset.terms_and_conditions').'*' !!}
</template> </template>
<template slot="body"> <template slot="body">
Die im GBA-RDR veröffentlichten Informationen und Metadaten unterliegen grundsätzlich den Open-Access-Bedingungen, wenn nicht anders angegeben. Die publizierten Datensets unterliegen einem definierten Zugriffs- sowie Nutzungsrecht welche in den Metadaten eindeutig beschrieben sind. Die im GBA-RDR veröffentlichten Informationen und Metadaten unterliegen grundsätzlich den
Open-Access-Bedingungen, wenn nicht anders angegeben. Die publizierten Datensets unterliegen einem
definierten Zugriffs- sowie Nutzungsrecht welche in den Metadaten eindeutig beschrieben sind.
</template> </template>
</Modal> </Modal>
@ -332,10 +366,10 @@
<span class="help-block">You must agree to continue</span> <span class="help-block">You must agree to continue</span>
</div> </div>
<br /> <br />
<div class="pure-controls"> <div class="pure-controls">
<button @click.prevent="prev()" class="pure-button button-small"> <button @click.prevent="prev()" class="pure-button button-small">
<i class="fa fa-arrow-left"></i> <i class="fa fa-arrow-left"></i>
<span>Back</span> <span>Back</span>
@ -344,16 +378,16 @@
<i class="fa fa-arrow-right"></i> <i class="fa fa-arrow-right"></i>
<span>Continue</span> <span>Continue</span>
</button> </button>
</div> </div>
<div v-if="errors.items.length > 0"> <div v-if="errors.items.length > 0">
<b>Please correct the following error(s):</b> <b>Please correct the following error(s):</b>
<ul class="alert validation-summary-errors"> <ul class="alert validation-summary-errors">
<li style="margin-left:5px;" v-for="error in errors.items">@{{ error.msg }}</li> <li style="margin-left:5px;" v-for="error in errors.items">@{{ error.msg }}</li>
</ul> </ul>
</div> </div>
</div> </div>
<div v-if="step === 2 && isInitial" data-vv-scope="step-2"> <div v-if="step === 2 && isInitial" data-vv-scope="step-2">
<h1>Step Two: Recommended Elements</h1> <h1>Step Two: Recommended Elements</h1>
<fieldset id="fieldset-project"> <fieldset id="fieldset-project">
@ -364,12 +398,14 @@
<label for="project_id"> <label for="project_id">
<span> <span>
Project.. Project..
<i v-tooltip="{ content: messages.project, class: 'tooltip-custom tooltip-other-custom' }" <i @click.prevent
v-tooltip.click="{ content: messages.project, class: 'tooltip-custom tooltip-other-custom' }"
class="far fa-lg fa-question-circle"></i> class="far fa-lg fa-question-circle"></i>
</span> </span>
</label> </label>
<div class="select pure-u-23-24"> <div class="select pure-u-23-24">
{!! Form::select('project_id', $projects, null, ['id' => 'project_id', 'placeholder' => '--no project--', 'v-model' => 'dataset.project_id', 'data-vv-scope' => 'step-2']) {!! Form::select('project_id', $projects, null, ['id' => 'project_id', 'placeholder' => '--no
project--', 'v-model' => 'dataset.project_id', 'data-vv-scope' => 'step-2'])
!!} !!}
</div> </div>
<small id="projectHelp" class="pure-form-message-inline">project is optional</small> <small id="projectHelp" class="pure-form-message-inline">project is optional</small>
@ -384,7 +420,8 @@
<label for="EmbargoDate"> <label for="EmbargoDate">
<span> <span>
Embargo Date.. Embargo Date..
<i v-tooltip="{ content: messages.embargo_date, class: 'tooltip-custom tooltip-other-custom' }" <i @click.prevent
v-tooltip.click="{ content: messages.embargo_date, class: 'tooltip-custom tooltip-other-custom' }"
class="far fa-lg fa-question-circle"></i> class="far fa-lg fa-question-circle"></i>
</span> </span>
</label> </label>
@ -397,7 +434,9 @@
<fieldset id="fieldset-geolocation"> <fieldset id="fieldset-geolocation">
<legend> <legend>
Geo Location Geo Location
<i v-tooltip="{ content: messages.geolocation, class: 'tooltip-custom tooltip-other-custom' }" class="far fa-lg fa-question-circle"></i> <i @click.prevent
v-tooltip.click="{ content: messages.geolocation, class: 'tooltip-custom tooltip-other-custom' }"
class="far fa-lg fa-question-circle"></i>
</legend> </legend>
<div class="pure-g"> <div class="pure-g">
<div class="pure-u-1 pure-u-md-1 pure-u-lg-1 pure-div"> <div class="pure-u-1 pure-u-md-1 pure-u-lg-1 pure-div">
@ -431,7 +470,9 @@
<fieldset id="fieldset-coverage"> <fieldset id="fieldset-coverage">
<legend> <legend>
Coverage Coverage
<i v-tooltip="{ content: messages.coverage, class: 'tooltip-custom tooltip-other-custom' }" class="far fa-lg fa-question-circle"></i> <i @click.prevent
v-tooltip.click="{ content: messages.coverage, class: 'tooltip-custom tooltip-other-custom' }"
class="far fa-lg fa-question-circle"></i>
</legend> </legend>
<div class="pure-g"> <div class="pure-g">
@ -453,17 +494,22 @@
<div v-show="elevation === 'absolut'" class="pure-u-1 pure-u-md-1"> <div v-show="elevation === 'absolut'" class="pure-u-1 pure-u-md-1">
{!! Form::label('elevation_absolut', 'elevation absolut: ') !!} {!! Form::label('elevation_absolut', 'elevation absolut: ') !!}
{!! Form::text('elevation_absolut', null, {!! Form::text('elevation_absolut', null,
['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.elevation_absolut', 'data-vv-scope' => 'step-2', "v-validate" => "this.isElevationAbsolut ? 'required|integer' : '' " ]) !!} ['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.elevation_absolut', 'data-vv-scope' =>
'step-2', "v-validate" => "this.isElevationAbsolut ? 'required|integer' : '' " ]) !!}
</div> </div>
<div v-show="elevation === 'range'" class="pure-u-1 pure-u-md-1"> <div v-show="elevation === 'range'" class="pure-u-1 pure-u-md-1">
{!! Form::label('elevation_min', 'elevation min: ') !!} {!! Form::label('elevation_min', 'elevation min: ') !!}
{!! Form::text('elevation_min', null, {!! Form::text('elevation_min', null,
['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.elevation_min', 'data-vv-scope' => 'step-2', "v-validate" => "this.isElevationRange ? 'required|integer' : '' "]) !!} ['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.elevation_min', 'data-vv-scope' =>
'step-2',
"v-validate" => "this.isElevationRange ? 'required|integer' : '' "]) !!}
</div> </div>
<div v-show="elevation === 'range'" class="pure-u-1 pure-u-md-1"> <div v-show="elevation === 'range'" class="pure-u-1 pure-u-md-1">
{!! Form::label('elevation_max', 'elevation max: ') !!} {!! Form::label('elevation_max', 'elevation max: ') !!}
{!! Form::text('elevation_max', null, {!! Form::text('elevation_max', null,
['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.elevation_max', 'data-vv-scope' => 'step-2', "v-validate" => "this.isElevationRange ? 'required|integer' : '' "]) !!} ['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.elevation_max', 'data-vv-scope' =>
'step-2',
"v-validate" => "this.isElevationRange ? 'required|integer' : '' "]) !!}
</div> </div>
</div> </div>
@ -484,18 +530,25 @@
</div> </div>
<div v-show="depth === 'absolut'" class="pure-u-1 pure-u-md-1"> <div v-show="depth === 'absolut'" class="pure-u-1 pure-u-md-1">
{!! Form::label('depth_absolut', 'depth absolut: ') !!} {!! Form::text('depth_absolut', null, ['class' => 'pure-u-23-24', {!! Form::label('depth_absolut', 'depth absolut: ') !!} {!! Form::text('depth_absolut', null,
'v-model' => 'dataset.coverage.depth_absolut', 'data-vv-scope' => 'step-2', "v-validate" => "this.isDepthAbsolut ['class'
=> 'pure-u-23-24',
'v-model' => 'dataset.coverage.depth_absolut', 'data-vv-scope' => 'step-2', "v-validate" =>
"this.isDepthAbsolut
? 'required|integer' : '' " ]) !!} ? 'required|integer' : '' " ]) !!}
</div> </div>
<div v-show="depth === 'range'" class="pure-u-1 pure-u-md-1"> <div v-show="depth === 'range'" class="pure-u-1 pure-u-md-1">
{!! Form::label('depth_min', 'depth min: ') !!} {!! Form::text('depth_min', null, ['class' => 'pure-u-23-24', 'v-model' => {!! Form::label('depth_min', 'depth min: ') !!} {!! Form::text('depth_min', null, ['class' =>
'dataset.coverage.depth_min', 'data-vv-scope' => 'step-2', "v-validate" => "this.isDepthRange ? 'required|integer' 'pure-u-23-24', 'v-model' =>
'dataset.coverage.depth_min', 'data-vv-scope' => 'step-2', "v-validate" => "this.isDepthRange ?
'required|integer'
: '' "]) !!} : '' "]) !!}
</div> </div>
<div v-show="depth === 'range'" class="pure-u-1 pure-u-md-1"> <div v-show="depth === 'range'" class="pure-u-1 pure-u-md-1">
{!! Form::label('depth_max', 'depth max: ') !!} {!! Form::text('depth_max', null, ['class' => 'pure-u-23-24', 'v-model' => {!! Form::label('depth_max', 'depth max: ') !!} {!! Form::text('depth_max', null, ['class' =>
'dataset.coverage.depth_max', 'data-vv-scope' => 'step-2', "v-validate" => "this.isDepthRange ? 'required|integer' 'pure-u-23-24', 'v-model' =>
'dataset.coverage.depth_max', 'data-vv-scope' => 'step-2', "v-validate" => "this.isDepthRange ?
'required|integer'
: '' "]) !!} : '' "]) !!}
</div> </div>
</div> </div>
@ -521,7 +574,10 @@
{{-- {!! Form::datetime('time_absolut', null, ['class' => 'pure-u-23-24', 'placeholder' => 'dd.MM.yyyy HH:mm', {{-- {!! Form::datetime('time_absolut', null, ['class' => 'pure-u-23-24', 'placeholder' => 'dd.MM.yyyy HH:mm',
'v-model' => 'dataset.coverage.time_absolut', 'data-vv-scope' => 'step-2', 'format' => 'yyyy-MM-dd HH:mm', 'v-model' => 'dataset.coverage.time_absolut', 'data-vv-scope' => 'step-2', 'format' => 'yyyy-MM-dd HH:mm',
"v-validate" => "this.isTimeAbsolut ? 'required|date_format:dd.MM.yyyy HH:mm:ss' : '' " ]) !!} --}} "v-validate" => "this.isTimeAbsolut ? 'required|date_format:dd.MM.yyyy HH:mm:ss' : '' " ]) !!} --}}
<datetime name="time_absolut" v-validate="this.isTimeAbsolut ? 'required|date_format:yyyy-MM-dd HH:mm:ss' : '' " data-vv-scope="step-2" format="YYYY-MM-DD h:i:s" v-model='dataset.coverage.time_absolut' ></datetime> <datetime name="time_absolut"
v-validate="this.isTimeAbsolut ? 'required|date_format:yyyy-MM-dd HH:mm:ss' : '' "
data-vv-scope="step-2" format="YYYY-MM-DD h:i:s" v-model='dataset.coverage.time_absolut'>
</datetime>
{{-- <datetime name="time_absolut" format="MM-DD-YYYY H:i:s" width="300px" v-model="dataset.coverage.time_absolut"></datetime> --}} {{-- <datetime name="time_absolut" format="MM-DD-YYYY H:i:s" width="300px" v-model="dataset.coverage.time_absolut"></datetime> --}}
</div> </div>
<div v-show="time === 'range'" class="pure-u-1 pure-u-md-1"> <div v-show="time === 'range'" class="pure-u-1 pure-u-md-1">
@ -529,14 +585,18 @@
{{-- {!! Form::datetimelocal('time_min', null, ['class' => 'pure-u-23-24', 'placeholder' => 'dd.MM.yyyy HH:mm:ss', {{-- {!! Form::datetimelocal('time_min', null, ['class' => 'pure-u-23-24', 'placeholder' => 'dd.MM.yyyy HH:mm:ss',
'v-model' => 'dataset.coverage.time_min', 'data-vv-scope' => 'step-2', 'step' => 1, 'v-model' => 'dataset.coverage.time_min', 'data-vv-scope' => 'step-2', 'step' => 1,
"v-validate" => "this.isTimeRange ? 'required|date_format:dd.MM.yyyy HH:mm:ss' : '' "]) !!} --}} "v-validate" => "this.isTimeRange ? 'required|date_format:dd.MM.yyyy HH:mm:ss' : '' "]) !!} --}}
<datetime name="time_min" v-validate="this.isTimeRange ? 'required|date_format:dd-MM-yyyy HH:mm:ss' : '' " data-vv-scope="step-2" format="YYYY-MM-DD h:i:s" v-model='dataset.coverage.time_min' ></datetime> <datetime name="time_min"
v-validate="this.isTimeRange ? 'required|date_format:dd-MM-yyyy HH:mm:ss' : '' "
data-vv-scope="step-2" format="YYYY-MM-DD h:i:s" v-model='dataset.coverage.time_min'></datetime>
</div> </div>
<div v-show="time === 'range'" class="pure-u-1 pure-u-md-1"> <div v-show="time === 'range'" class="pure-u-1 pure-u-md-1">
{!! Form::label('timemax', 'time max: ') !!} {!! Form::label('timemax', 'time max: ') !!}
{{-- {!! Form::datetimelocal('time_max', null, ['class' => 'pure-u-23-24', 'placeholder' => 'dd.MM.yyyy HH:mm:ss', {{-- {!! Form::datetimelocal('time_max', null, ['class' => 'pure-u-23-24', 'placeholder' => 'dd.MM.yyyy HH:mm:ss',
'v-model' => 'dataset.coverage.time_max', 'data-vv-scope' => 'step-2', 'step' => 1, 'v-model' => 'dataset.coverage.time_max', 'data-vv-scope' => 'step-2', 'step' => 1,
"v-validate" => "this.isTimeRange ? 'required|date_format:dd.MM.yyyy HH:mm:ss' : '' "]) !!} --}} "v-validate" => "this.isTimeRange ? 'required|date_format:dd.MM.yyyy HH:mm:ss' : '' "]) !!} --}}
<datetime name="time_max" v-validate="this.isTimeRange ? 'required|date_format:dd-MM-yyyy HH:mm:ss' : '' " data-vv-scope="step-2" format="YYYY-MM-DD h:i:s" v-model='dataset.coverage.time_max' ></datetime> <datetime name="time_max"
v-validate="this.isTimeRange ? 'required|date_format:dd-MM-yyyy HH:mm:ss' : '' "
data-vv-scope="step-2" format="YYYY-MM-DD h:i:s" v-model='dataset.coverage.time_max'></datetime>
</div> </div>
</div> </div>
@ -546,7 +606,8 @@
<fieldset id="fieldset-references"> <fieldset id="fieldset-references">
<legend> <legend>
Dataset References Dataset References
<i v-tooltip="{ content: messages.dataset_references, class: 'tooltip-custom tooltip-other-custom' }" class="far fa-lg fa-question-circle"></i> <i @click.prevent v-tooltip.click="{ content: messages.dataset_references, class: 'tooltip-custom tooltip-other-custom' }"
class="far fa-lg fa-question-circle"></i>
</legend> </legend>
<button class="pure-button button-small" @click.prevent="addReference()">Add Reference</button> <button class="pure-button button-small" @click.prevent="addReference()">Add Reference</button>
<table class="table table-hover" v-if="dataset.references.length"> <table class="table table-hover" v-if="dataset.references.length">
@ -555,26 +616,23 @@
<th style="width: 20px;"> <th style="width: 20px;">
<span> <span>
Value of the identifier <i Value of the identifier <i
v-tooltip="{ content: messages.reference_value, class: 'tooltip-custom tooltip-other-custom' }" @click.prevent v-tooltip.click="{ content: messages.reference_value, class: 'tooltip-custom tooltip-other-custom' }"
class="far fa-lg fa-question-circle" class="far fa-lg fa-question-circle"></i>
></i>
</span> </span>
</th> </th>
<th> <th>
<span> <span>
Type <i Type <i
v-tooltip="{ content: messages.reference_type, class: 'tooltip-custom tooltip-other-custom' }" @click.prevent v-tooltip.click="{ content: messages.reference_type, class: 'tooltip-custom tooltip-other-custom' }"
class="far fa-lg fa-question-circle" class="far fa-lg fa-question-circle"></i>
></i>
</span> </span>
</th> </th>
<th>Relation</th> <th>Relation</th>
<th> <th>
<span> <span>
Label <i Label <i
v-tooltip="{ content: messages.reference_label, class: 'tooltip-custom tooltip-other-custom' }" @click.prevent v-tooltip.click="{ content: messages.reference_label, class: 'tooltip-custom tooltip-other-custom' }"
class="far fa-lg fa-question-circle" class="far fa-lg fa-question-circle"></i>
></i>
</span> </span>
</th> </th>
<th style="width: 130px;"></th> <th style="width: 130px;"></th>
@ -583,21 +641,26 @@
<tbody> <tbody>
<tr v-for="(item, index) in dataset.references"> <tr v-for="(item, index) in dataset.references">
<td> <td>
<input name="Reference Value" class="form-control" placeholder="[RELATED IDENTIFIER]" v-model="item.value" v-validate="'required'" data-vv-scope="step-2" /> <input name="Reference Value" class="form-control" placeholder="[RELATED IDENTIFIER]"
v-model="item.value" v-validate="'required'" data-vv-scope="step-2" />
</td> </td>
<td> <td>
{!! Form::select('Reference[Type]', $relatedIdentifierTypes, null, {!! Form::select('Reference[Type]', $relatedIdentifierTypes, null,
['placeholder' => '[relatedIdentifierType]', 'v-model' => 'item.type', "v-validate" => "'required'", 'data-vv-scope' => 'step-2']) !!} ['placeholder' => '[relatedIdentifierType]', 'v-model' => 'item.type', "v-validate" =>
"'required'", 'data-vv-scope' => 'step-2']) !!}
</td> </td>
<td> <td>
{!! Form::select('Reference[Relation]', $relationTypes, null, {!! Form::select('Reference[Relation]', $relationTypes, null,
['placeholder' => '[relationType]', 'v-model' => 'item.relation', 'data-vv-scope' => 'step-2']) !!} ['placeholder' => '[relationType]', 'v-model' => 'item.relation', 'data-vv-scope' => 'step-2'])
!!}
</td> </td>
<td> <td>
<input name="Reference Label" class="form-control" v-model="item.label" v-validate="'required'" data-vv-scope="step-2" /> <input name="Reference Label" class="form-control" v-model="item.label" v-validate="'required'"
data-vv-scope="step-2" />
</td> </td>
<td> <td>
<button class="pure-button button-small is-warning" @click.prevent="removeReference(index)"> <i class="fa fa-trash"></i> </button> <button class="pure-button button-small is-warning" @click.prevent="removeReference(index)"> <i
class="fa fa-trash"></i> </button>
</td> </td>
</tr> </tr>
</tbody> </tbody>
@ -608,9 +671,11 @@
<fieldset id="fieldset-keywords"> <fieldset id="fieldset-keywords">
<legend> <legend>
Dataset Keywords Dataset Keywords
<i v-tooltip="{ content: messages.dataset_keywords, class: 'tooltip-custom tooltip-other-custom' }" class="far fa-lg fa-question-circle"></i> <i @click.prevent v-tooltip.click="{ content: messages.dataset_keywords, class: 'tooltip-custom tooltip-other-custom' }"
class="far fa-lg fa-question-circle"></i>
</legend> </legend>
<input type="hidden" v-validate:keywords_length="'min_value:3'" data-vv-scope="step-2" data-vv-as="keyword list" name="keywords_list"> <input type="hidden" v-validate:keywords_length="'min_value:3'" data-vv-scope="step-2" data-vv-as="keyword list"
name="keywords_list">
<button class="pure-button button-small" @click.prevent="addKeyword()">Add Keyword</button> <button class="pure-button button-small" @click.prevent="addKeyword()">Add Keyword</button>
<table class="table table-hover" v-if="dataset.subjects.length"> <table class="table table-hover" v-if="dataset.subjects.length">
<thead> <thead>
@ -618,16 +683,15 @@
<th style="width: 20px;"> <th style="width: 20px;">
<span> <span>
Keyword Value <i Keyword Value <i
v-tooltip="{ content: messages.keyword_value, class: 'tooltip-custom tooltip-other-custom' }" @click.prevent v-tooltip.click="{ content: messages.keyword_value, class: 'tooltip-custom tooltip-other-custom' }"
class="far fa-lg fa-question-circle"></i> class="far fa-lg fa-question-circle"></i>
</span> </span>
</th> </th>
<th> <th>
<span> <span>
Keyword Type <i Keyword Type <i
v-tooltip="{ content: messages.keyword_type, class: 'tooltip-custom tooltip-other-custom' }" @click.prevent v-tooltip.click="{ content: messages.keyword_type, class: 'tooltip-custom tooltip-other-custom' }"
class="far fa-lg fa-question-circle" class="far fa-lg fa-question-circle"></i>
></i>
</span> </span>
</th> </th>
<th>Language</th> <th>Language</th>
@ -637,21 +701,24 @@
<tbody> <tbody>
<tr v-for="(item, index) in dataset.subjects"> <tr v-for="(item, index) in dataset.subjects">
<td> <td>
<input name="Keyword Value" class="form-control" placeholder="[KEYWORD VALUE]" v-model="item.value" v-validate="{required: true, unique: [dataset.subjects, index, 'value']}" <input name="Keyword Value" class="form-control" placeholder="[KEYWORD VALUE]"
v-model="item.value"
v-validate="{required: true, unique: [dataset.subjects, index, 'value']}"
data-vv-scope="step-2" /> data-vv-scope="step-2" />
</td> </td>
<td> <td>
{{-- {!! Form::select('Keyword[Type]', $keywordTypes, null, ['placeholder' => '[keyword type]', 'v-model' => {{-- {!! Form::select('Keyword[Type]', $keywordTypes, null, ['placeholder' => '[keyword type]', 'v-model' =>
'item.type', "v-validate" => "'required'", 'data-vv-scope' => 'step-2']) !!} --}} 'item.type', "v-validate" => "'required'", 'data-vv-scope' => 'step-2']) !!} --}}
<input name="Keyword Type" readonly class="form-control" placeholder="[KEYWORD TYPE]" v-model="item.type" v-validate="'required'" <input name="Keyword Type" readonly class="form-control" placeholder="[KEYWORD TYPE]"
data-vv-scope="step-2" /> v-model="item.type" v-validate="'required'" data-vv-scope="step-2" />
</td> </td>
<td> <td>
<input name="Keyword Language" readonly class="form-control" placeholder="[KEYWORD LANGUAGE]" v-model="item.language" v-validate="'required'" <input name="Keyword Language" readonly class="form-control" placeholder="[KEYWORD LANGUAGE]"
data-vv-scope="step-2" /> v-model="item.language" v-validate="'required'" data-vv-scope="step-2" />
</td> </td>
<td> <td>
<button class="pure-button button-small is-warning" @click.prevent="removeKeyword(index)"> <i class="fa fa-trash"></i> </button> <button class="pure-button button-small is-warning" @click.prevent="removeKeyword(index)"> <i
class="fa fa-trash"></i> </button>
</td> </td>
</tr> </tr>
</tbody> </tbody>
@ -677,26 +744,28 @@
<li style="margin-left:5px;" v-for="error in errors.items">@{{ error.msg }}</li> <li style="margin-left:5px;" v-for="error in errors.items">@{{ error.msg }}</li>
</ul> </ul>
</div> </div>
</div> </div>
<div v-if="step === 3 && isInitial" data-vv-scope="step-3"> <div v-if="step === 3 && isInitial" data-vv-scope="step-3">
<h1>Step 3: Other Elements</h1> <h1>Step 3: Other Elements</h1>
<fieldset id="fieldset-licenses"> <fieldset id="fieldset-licenses">
<legend> <legend>
Rights List Rights List
<i v-tooltip="{ content: messages.rights_list, class: 'tooltip-custom tooltip-other-custom' }" class="far fa-lg fa-question-circle"></i> <i @click.prevent v-tooltip.click="{ content: messages.rights_list, class: 'tooltip-custom tooltip-other-custom' }"
class="far fa-lg fa-question-circle"></i>
</legend> </legend>
<div class="pure-control-group checkboxlist"> <div class="pure-control-group checkboxlist">
@foreach ($licenses as $indexKey => $license) @foreach ($licenses as $indexKey => $license)
<label for={{ "license". $license->id }} class="pure-checkbox"> <label for={{ "license". $license->id }} class="pure-checkbox">
@if ($loop->first) @if ($loop->first)
<input name="licenses" value={{ $license->id }} v-model="dataset.checkedLicenses" type="radio" class="form-check-input" v-validate="'required'" <input name="licenses" value={{ $license->id }} v-model="dataset.checkedLicenses" type="radio"
data-vv-as="Licence" data-vv-scope="step-3"> class="form-check-input" v-validate="'required'" data-vv-as="Licence" data-vv-scope="step-3">
<a href="{{ $license->link_licence }}" target="_blank">{{ $license->name_long }}</a> <a href="{{ $license->link_licence }}" target="_blank">{{ $license->name_long }}</a>
@else @else
<input name="licenses" value={{ $license->id }} v-model="dataset.checkedLicenses" type="radio" class="form-check-input" data-vv-scope="step-3"> <input name="licenses" value={{ $license->id }} v-model="dataset.checkedLicenses" type="radio"
class="form-check-input" data-vv-scope="step-3">
<a href="{{ $license->link_licence }}" target="_blank">{{ $license->name_long }}</a> <a href="{{ $license->link_licence }}" target="_blank">{{ $license->name_long }}</a>
@endif @endif
</label> </label>
@ -724,18 +793,20 @@
<li style="margin-left:5px;" v-for="error in errors.items">@{{ error.msg }}</li> <li style="margin-left:5px;" v-for="error in errors.items">@{{ error.msg }}</li>
</ul> </ul>
</div> </div>
</div> </div>
<div v-if="step === 4 && (isInitial || isSaving)" data-vv-scope="step-4"> <div v-if="step === 4 && (isInitial || isSaving)" data-vv-scope="step-4">
<h1> <h1>
File Upload File Upload
<i v-tooltip="{ content: messages.file_upload, class: 'tooltip-custom tooltip-other-custom' }" class="far fa-lg fa-question-circle"></i> <i @click.prevent v-tooltip.click="{ content: messages.file_upload, class: 'tooltip-custom tooltip-other-custom' }"
class="far fa-lg fa-question-circle"></i>
</h1> </h1>
<div class="dropbox"> <div class="dropbox">
<input type="hidden" v-validate:files_length="'min_value:1'" data-vv-scope="step-4" data-vv-as="files list" name="files_list"> <input type="hidden" v-validate:files_length="'min_value:1'" data-vv-scope="step-4" data-vv-as="files list"
<input type="file" multiple name="files" v-bind:disabled="isSaving" @change="filesChange($event.target.name, $event.target.files)" name="files_list">
class="input-file" data-vv-scope="step-4"> <input type="file" multiple name="files" v-bind:disabled="isSaving"
@change="filesChange($event.target.name, $event.target.files)" class="input-file" data-vv-scope="step-4">
<p v-if="isInitial"> <p v-if="isInitial">
Drag your file(s) here to begin<br> or click to browse Drag your file(s) here to begin<br> or click to browse
</p> </p>
@ -753,9 +824,8 @@
<th> <th>
<span> <span>
Label <i Label <i
v-tooltip="{ content: messages.file_label, class: 'tooltip-custom tooltip-other-custom' }" @click.prevent v-tooltip.click="{ content: messages.file_label, class: 'tooltip-custom tooltip-other-custom' }"
class="far fa-lg fa-question-circle" class="far fa-lg fa-question-circle"></i>
></i>
</span> </span>
</th> </th>
<th style="width: 130px;"></th> <th style="width: 130px;"></th>
@ -773,7 +843,8 @@
<input class="form-control" v-model="item.label" /> <input class="form-control" v-model="item.label" />
</td> </td>
<td> <td>
<button class="pure-button button-small is-warning" @click.prevent="removeFile(index)"> <i class="fa fa-trash"></i> </button> <button class="pure-button button-small is-warning" @click.prevent="removeFile(index)"> <i
class="fa fa-trash"></i> </button>
</td> </td>
</tr> </tr>
</tbody> </tbody>
@ -797,16 +868,17 @@
<span>Release Dataset</span> <span>Release Dataset</span>
</button> --}} </button> --}}
</div> </div>
<!--SUCCESS--> <!--SUCCESS-->
<div v-if="isSuccess"> <div v-if="isSuccess">
<h2>Uploaded @{{ dataset.files.length }} file(s) successfully.</h2> <h2>Uploaded @{{ dataset.files.length }} file(s) successfully.</h2>
{{-- <p> {{-- <p>
<a href="javascript:void(0)" @click="reset()" class="pure-button button-small">Upload new Dataset</a> <a href="javascript:void(0)" @click="reset()" class="pure-button button-small">Upload new Dataset</a>
</p> --}} </p> --}}
<p> <p>
{{-- <a href="javascript:void(0)" @click="editNewDataset()" class="pure-button button-small">@{{ redirectLink }}</a> --}} {{-- <a href="javascript:void(0)" @click="editNewDataset()" class="pure-button button-small">@{{ redirectLink }}</a>
--}}
<a href="javascript:void(0)" @click="editNewDataset()" class="pure-button button-small"> <a href="javascript:void(0)" @click="editNewDataset()" class="pure-button button-small">
<i class="fa fa-edit"></i> <i class="fa fa-edit"></i>
<span>Edit</span> <span>Edit</span>
@ -815,7 +887,8 @@
<i class="fa fa-share"></i> <i class="fa fa-share"></i>
<span>Release</span> <span>Release</span>
</a> </a>
<i v-tooltip="{ content: messages.upload_successfull_release, class: 'tooltip-custom tooltip-other-custom' }" class="far fa-lg fa-question-circle"></i> <i @click.prevent v-tooltip.click="{ content: messages.upload_successfull_release, class: 'tooltip-custom tooltip-other-custom' }"
class="far fa-lg fa-question-circle"></i>
<a href="javascript:void(0)" @click="deleteNewDataset()" class="pure-button button-small"> <a href="javascript:void(0)" @click="deleteNewDataset()" class="pure-button button-small">
<i class="fa fa-trash"></i> <i class="fa fa-trash"></i>
<span>Delete</span> <span>Delete</span>
@ -827,10 +900,10 @@
<img :src="item.url" class="img-responsive img-thumbnail" :alt="item.originalName"> <img :src="item.url" class="img-responsive img-thumbnail" :alt="item.originalName">
</li> --}} </li> --}}
</ul> </ul>
</div> </div>
<!--ERROR--> <!--ERROR-->
<div v-if="isFailed"> <div v-if="isFailed">
<h2>Uploaded failed.</h2> <h2>Uploaded failed.</h2>
<p> <p>
<a href="javascript:void(0)" @click="retry()">Retry: Edit inputs</a> <a href="javascript:void(0)" @click="retry()">Retry: Edit inputs</a>
@ -841,11 +914,11 @@
<li style="margin-left:5px;" v-for="error in serrors">@{{ error }}</li> <li style="margin-left:5px;" v-for="error in serrors">@{{ error }}</li>
</ul> </ul>
</div> </div>
</div> </div>
</main> </main>
{{-- <br/><br/>Debug:@{{ dataset }} --}} {{-- <br/><br/>Debug:@{{ dataset }} --}}
</div> </div>
@ -875,6 +948,6 @@
'messages' => $messages, 'messages' => $messages,
]); ?> ]); ?>
</script> </script>
<script type="text/javascript" src="{{ asset('backend/publish/datasetPublish.js') }}"></script> <script type="text/javascript" src="{{ asset('backend/publish/datasetPublish.js') }}"></script>
@stop @stop

View File

@ -77,8 +77,8 @@
</div> </div>
<input name="authors" v-model="form.authors" type="hidden" class="form-check-input" v-validate="'required'" <input name="authors" v-model="form.authors" type="hidden" class="form-check-input" v-validate="'required'"
data-vv-as="Author"> data-vv-as="Author">
<person-table name="authors" v-bind:heading="'authors'" v-bind:personlist="form.authors"></person-table> <person-table name="authors" v-bind:messages="messages" v-bind:heading="'authors'" v-bind:personlist="form.authors"></person-table>
<person-table name="contributors" v-bind:heading="'contributors'" v-bind:personlist="form.contributors"> <person-table name="contributors" v-bind:messages="messages" v-bind:heading="'contributors'" v-bind:personlist="form.contributors">
</person-table> </person-table>
</fieldset> </fieldset>
@ -456,8 +456,6 @@
{{-- <span>old checkeds: @{{ checkeds }}</span> --}} {{-- <span>old checkeds: @{{ checkeds }}</span> --}}
</div> </div>
</fieldset> </fieldset>
<fieldset id="fieldset-references"> <fieldset id="fieldset-references">

View File

@ -55,6 +55,7 @@
'titleTypes' => $titleTypes, 'titleTypes' => $titleTypes,
'descriptionTypes' => $descriptionTypes, 'descriptionTypes' => $descriptionTypes,
'languages' => $languages, 'languages' => $languages,
'messages' => $messages,
'projects' => $projects, 'projects' => $projects,
'licenses' => $licenses, 'licenses' => $licenses,
'checkeds' => $checkeds, 'checkeds' => $checkeds,

View File

@ -74,10 +74,9 @@
{{-- {!! Form::label('additionalCreators', 'Add additional creator(s) if creator is not in database') !!} {{-- {!! Form::label('additionalCreators', 'Add additional creator(s) if creator is not in database') !!}
<button class="pure-button button-small" @click.prevent="addNewAuthor()">+</button> --}} <button class="pure-button button-small" @click.prevent="addNewAuthor()">+</button> --}}
</div> </div>
<input name="authors" v-model="form.authors" type="hidden" class="form-check-input" v-validate="'required'" <input name="authors" v-model="form.authors" type="hidden" class="form-check-input" v-validate="'required'" data-vv-as="Author">
data-vv-as="Author"> <person-table name="authors" v-bind:messages="messages" v-bind:heading="'authors'" v-bind:personlist="form.authors"></person-table>
<person-table name="authors" v-bind:heading="'authors'" v-bind:personlist="form.authors"></person-table> <person-table name="contributors" v-bind:messages="messages" v-bind:heading="'contributors'" v-bind:personlist="form.contributors">
<person-table name="contributors" v-bind:heading="'contributors'" v-bind:personlist="form.contributors">
</person-table> </person-table>
</fieldset> </fieldset>
@ -453,10 +452,7 @@
</label> </label>
</template> </template>
{{-- <span>old checkeds: @{{ checkeds }}</span> --}} {{-- <span>old checkeds: @{{ checkeds }}</span> --}}
</div> </div>
</fieldset> </fieldset>
<fieldset id="fieldset-references"> <fieldset id="fieldset-references">

View File

@ -66,6 +66,7 @@
'titleTypes' => $titleTypes, 'titleTypes' => $titleTypes,
'descriptionTypes' => $descriptionTypes, 'descriptionTypes' => $descriptionTypes,
'languages' => $languages, 'languages' => $languages,
'messages' => $messages,
'projects' => $projects, 'projects' => $projects,
'licenses' => $licenses, 'licenses' => $licenses,
'checkeds' => $checkeds, 'checkeds' => $checkeds,