2019-12-20 10:44:40 +00:00
|
|
|
<fieldset id="fieldset-State">
|
2020-01-07 17:49:53 +00:00
|
|
|
<legend>State & notes</legend>
|
|
|
|
<div class="pure-g">
|
2020-01-23 16:52:26 +00:00
|
|
|
@if($dataset->reject_editor_note)
|
2020-01-07 17:49:53 +00:00
|
|
|
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
2020-01-23 16:52:26 +00:00
|
|
|
{!! Form::label('reject_editor_note', 'editor reject note..') !!}
|
2020-01-07 17:49:53 +00:00
|
|
|
{{-- {!! Form::select('server_state', Config::get('enums.server_states'), null, ['id' => 'server_state', 'placeholder' => '-- select server state --']) !!} --}}
|
|
|
|
{!! Form::textarea('reject_editor_note', null, ['class'=>'pure-u-23-24','readonly', 'v-model' =>
|
|
|
|
'form.reject_editor_note']) !!}
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
|
|
|
{!! Form::label('server_state', 'Status..') !!}
|
|
|
|
{{-- {!! Form::select('server_state', Config::get('enums.server_states'), null, ['id' => 'server_state', 'placeholder' => '-- select server state --']) !!} --}}
|
|
|
|
{!! Form::text('server_state', null, ['class'=>'pure-u-23-24','readonly', 'v-model' => 'form.server_state'])
|
|
|
|
!!}
|
2019-12-20 10:44:40 +00:00
|
|
|
</div>
|
2020-01-07 17:49:53 +00:00
|
|
|
</div>
|
2019-12-20 10:44:40 +00:00
|
|
|
</fieldset>
|
|
|
|
|
2019-08-27 09:15:23 +00:00
|
|
|
<fieldset id="fieldset-General">
|
2019-12-20 10:44:40 +00:00
|
|
|
<legend>General</legend>
|
|
|
|
<div class="pure-g">
|
2019-08-27 09:15:23 +00:00
|
|
|
|
2019-12-20 10:44:40 +00:00
|
|
|
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
|
|
|
{!! Form::label('Language', 'Language..') !!}
|
|
|
|
<div class="select pure-u-23-24">
|
|
|
|
{!! Form::select('language', $languages, null, ['placeholder' => '[language]', 'v-model' =>
|
|
|
|
'form.language', "data-vv-as" => "Language", "v-validate" => "'required'"]) !!}
|
|
|
|
</div>
|
|
|
|
<small id="languageHelp" class="pure-form-message-inline">select dataset main language</small>
|
|
|
|
</div>
|
2019-08-27 09:15:23 +00:00
|
|
|
|
2019-12-20 10:44:40 +00:00
|
|
|
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
|
|
|
{!! Form::label('type', 'Type..') !!}
|
|
|
|
<div class="select pure-u-23-24">
|
2020-01-23 16:52:26 +00:00
|
|
|
{!! Form::select('type', Lang::get('doctypes'), null, ['id' => 'type', 'placeholder' => '-- select type --',
|
2019-12-20 10:44:40 +00:00
|
|
|
'v-model' => 'form.type', "v-validate" => "'required'"]) !!}
|
|
|
|
</div>
|
2019-08-27 09:15:23 +00:00
|
|
|
</div>
|
|
|
|
|
2019-12-20 10:44:40 +00:00
|
|
|
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
|
|
|
{!! Form::label('project_id', 'Project..') !!}
|
|
|
|
<div class="select pure-u-23-24">
|
|
|
|
{{-- {!! Form::select('project_id', $projects, null, ['id' => 'project_id', 'placeholder' => '--no
|
|
|
|
project--', 'v-model' => 'form.project_id']) !!} --}}
|
|
|
|
<select name="project_id" v-model="form.project_id">
|
|
|
|
<option :value="null" selected hidden disabled>--no project--</option>
|
|
|
|
<option v-for="(item, key) in projects" :value="key">@{{item}}</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<small id="projectHelp" class="pure-form-message-inline">project is optional</small>
|
2020-01-07 17:49:53 +00:00
|
|
|
</div>
|
2019-08-27 09:15:23 +00:00
|
|
|
|
2019-12-20 10:44:40 +00:00
|
|
|
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
|
|
|
{!! Form::label('creating_corporation', 'Creating Corporation') !!}
|
2020-01-23 16:52:26 +00:00
|
|
|
{!! Form::text('creating_corporation', null, ['readonly', 'class' =>
|
2019-12-20 10:44:40 +00:00
|
|
|
'pure-u-23-24', 'v-model' => 'form.creating_corporation', "v-validate" => "'required'"]) !!}
|
2020-01-07 17:49:53 +00:00
|
|
|
<span class="md-error" v-if="errors.has('form.creating_corporation')">creating corporation is
|
|
|
|
required.</span>
|
2019-12-20 10:44:40 +00:00
|
|
|
</div>
|
2019-08-27 09:15:23 +00:00
|
|
|
|
|
|
|
</div>
|
2019-12-20 10:44:40 +00:00
|
|
|
</fieldset>
|
|
|
|
|
2020-01-09 17:42:09 +00:00
|
|
|
<fieldset id="fieldset-creator">
|
|
|
|
<legend>Creator(s)</legend>
|
|
|
|
<div class="pure-g">
|
|
|
|
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
2020-01-16 17:28:28 +00:00
|
|
|
<my-autocomplete title="searching active person table" v-on:person="onAddAuthor"></my-autocomplete>
|
2020-01-09 17:42:09 +00:00
|
|
|
</div>
|
|
|
|
</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') !!}
|
|
|
|
<button class="pure-button button-small" @click.prevent="addNewAuthor()">+</button> --}}
|
|
|
|
</div>
|
2020-01-28 16:59:52 +00:00
|
|
|
<input name="authors" v-model="form.authors" type="hidden" class="form-check-input" v-validate="'required'" data-vv-as="Author">
|
2020-10-22 14:36:43 +00:00
|
|
|
<person-table name="authors" v-bind:messages="messages" v-bind:nametypes="nameTypes" v-bind:show-heading="false" v-bind:heading="'authors'" v-bind:personlist="form.authors"></person-table>
|
|
|
|
<person-table name="contributors" v-bind:messages="messages" v-bind:nametypes="nameTypes" v-bind:contributortypes="contributorTypes" v-bind:heading="'contributors'" v-bind:personlist="form.contributors">
|
2020-01-16 17:28:28 +00:00
|
|
|
</person-table>
|
2020-01-09 17:42:09 +00:00
|
|
|
</fieldset>
|
|
|
|
|
2020-01-08 14:14:33 +00:00
|
|
|
<fieldset id="fieldset-titles">
|
|
|
|
<legend>Title</legend>
|
|
|
|
<div>
|
|
|
|
|
|
|
|
{{-- @foreach($dataset->titles as $key => $title)
|
|
|
|
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
|
|
|
{{ Form::label('title', 'Title ' .($key+1).':') }}
|
|
|
|
{{ Form::text('titles['.$title->id.'][value]', $title->value, ['class' => 'pure-u-23-24']) }}
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
|
|
|
{{ Form::label('language', 'Language..') }}
|
|
|
|
{{ Form::text('titles['.$title->id.'][language]', $title->language, ['placeholder' => '--no language--', 'class' => 'pure-u-23-24', 'readonly']) }}
|
|
|
|
</div>
|
|
|
|
@endforeach --}}
|
|
|
|
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
|
|
|
<label name="TitleMain">Add additional title(s) </label>
|
|
|
|
<button class="pure-button button-small" @click.prevent="addTitle()"><i class="fas fa-plus-circle"></i></button>
|
|
|
|
</div>
|
|
|
|
<table v-if="form.titles.length" class="pure-table pure-table-horizontal">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th style="width: 20px;">Title</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Language</th>
|
|
|
|
<th style="width: 130px;"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2020-01-16 17:28:28 +00:00
|
|
|
<tr v-for="(title, index) in form.titles">
|
2020-01-08 14:14:33 +00:00
|
|
|
<td>
|
2020-01-16 17:28:28 +00:00
|
|
|
<input v-bind:name="'titles['+index+'][id]'" readonly class="form-control" v-model="title.id" hidden />
|
|
|
|
<input type="text" :id="'titles['+index+'][value]'" :name="'titles['+index+'][value]'"
|
2020-01-23 16:52:26 +00:00
|
|
|
v-validate="'required|min:4|max:255'" class="form-control" v-model="title.value">
|
2020-01-08 14:14:33 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<template v-if="title.type == 'Main'">
|
2020-01-16 17:28:28 +00:00
|
|
|
<input v-bind:name="'titles['+index+'][type]'" v-model="title.type" class="form-control"
|
2020-01-08 14:14:33 +00:00
|
|
|
v-validate="'required'" v-bind:readonly="title.type == 'Main'">
|
|
|
|
</template>
|
|
|
|
<template v-else>
|
2020-01-16 17:28:28 +00:00
|
|
|
<select type="text" :id="'titles['+index+'][type]'" :name="'titles['+index+'][type]'"
|
2020-01-08 14:14:33 +00:00
|
|
|
class="form-control"
|
2020-01-23 16:52:26 +00:00
|
|
|
v-validate="{required: true}"
|
2020-01-08 14:14:33 +00:00
|
|
|
v-model="title.type" v-bind:readonly="title.type == 'Main'">
|
|
|
|
<option v-for="option in remainingTitleTypes" :value='option'
|
|
|
|
:disabled="title.type == 'Main'">
|
|
|
|
@{{ option }}
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
</template>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<template v-if="title.type == 'Main'">
|
2020-01-16 17:28:28 +00:00
|
|
|
<input v-bind:name="'titles['+index+'][language]'" v-model="title.language"
|
2020-01-08 14:14:33 +00:00
|
|
|
class="form-control" v-validate="'required'" v-bind:readonly="title.type == 'Main'">
|
|
|
|
</template>
|
|
|
|
<template v-else>
|
2020-01-16 17:28:28 +00:00
|
|
|
<select type="text" :id="'titles['+index+'][language]'"
|
|
|
|
:name="'titles['+index+'][language]'" class="form-control"
|
2020-01-08 14:14:33 +00:00
|
|
|
v-validate="{required: true, translatedLanguage: [form.language, title.type]}"
|
|
|
|
v-model="title.language" v-bind:readonly="title.type == 'Main'">
|
|
|
|
<option v-for="option in languages" :value='option'>
|
|
|
|
@{{ option }}
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
</template>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<button v-if="title.id == undefined" class="pure-button button-small is-warning"
|
2020-01-16 17:28:28 +00:00
|
|
|
@click.prevent="removeTitle(index)">
|
2020-01-08 14:14:33 +00:00
|
|
|
<i class="fa fa-trash"></i>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset id="fieldset-abstracts">
|
|
|
|
<legend>Abstract</legend>
|
|
|
|
<div>
|
|
|
|
|
|
|
|
{{-- @foreach($dataset->abstracts as $key => $abstract)
|
|
|
|
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
|
|
|
{{ Form::label('abstract', 'Abstract ' .($key+1).':') }}
|
|
|
|
<!-- Notice this is an array now: -->
|
|
|
|
{{ Form::textarea('abstracts['.$abstract->id.'][value]', $abstract->value, ['class' => 'pure-u-23-24', 'size' => '70x6']) }}
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
|
|
|
{{ Form::label('language', 'Language..') }}
|
|
|
|
{{ Form::text('abstracts['.$abstract->id.'][language]', $abstract->language, ['placeholder' => '--no language--', 'class' => 'pure-u-23-24', 'readonly']) }}
|
|
|
|
</div>
|
|
|
|
@endforeach --}}
|
|
|
|
|
|
|
|
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
|
|
|
<label name="DescriptionMain">Add additional abstract(s) </label>
|
|
|
|
<button class="pure-button button-small" @click.prevent="addDescription()"><i
|
|
|
|
class="fas fa-plus-circle"></i></button>
|
|
|
|
</div>
|
|
|
|
<table v-if="form.abstracts.length" class="pure-table pure-table-horizontal">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th style="width: 20px;">Value</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Language</th>
|
|
|
|
<th style="width: 130px;"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2020-01-16 17:28:28 +00:00
|
|
|
<tr v-for="(abstract, index) in form.abstracts">
|
2020-01-08 14:14:33 +00:00
|
|
|
<td>
|
2020-01-16 17:28:28 +00:00
|
|
|
<input v-bind:name="'abstracts[' + index +'][id]'" readonly class="form-control" v-model="abstract.id" hidden />
|
|
|
|
|
|
|
|
<input type="text" :id="'abstracts['+ index +'][value]'"
|
2020-01-23 16:52:26 +00:00
|
|
|
:name="'abstracts['+index+'][value]'" v-validate="'required|min:4|max:2500'" v-model="abstract.value"
|
2020-01-08 14:14:33 +00:00
|
|
|
class="form-control">
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<template v-if="abstract.type == 'Abstract'">
|
2020-01-16 17:28:28 +00:00
|
|
|
<input v-bind:name="'abstracts['+ index +'][type]'" v-model="abstract.type"
|
2020-01-08 14:14:33 +00:00
|
|
|
class="form-control" v-validate="'required'" v-bind:readonly="abstract.type == 'Abstract'">
|
|
|
|
</template>
|
|
|
|
<template v-else>
|
2020-01-16 17:28:28 +00:00
|
|
|
<select type="text" :id="'abstracts['+ index +'][type]'"
|
|
|
|
:name="'abstracts['+ index +'][type]'" class="form-control"
|
2020-01-23 16:52:26 +00:00
|
|
|
v-validate="{required: true}"
|
2020-01-08 14:14:33 +00:00
|
|
|
v-model="abstract.type" v-bind:readonly="abstract.type == 'Abstract'">
|
|
|
|
<option v-for="option in descriptionTypes" :value='option'>
|
|
|
|
@{{ option }}
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
</template>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<template v-if="abstract.type == 'Abstract'">
|
2020-01-16 17:28:28 +00:00
|
|
|
<input v-bind:name="'abstracts['+index+'][language]'" v-model="abstract.language"
|
2020-01-08 14:14:33 +00:00
|
|
|
class="form-control" v-validate="'required'" v-bind:readonly="abstract.type == 'Abstract'">
|
|
|
|
</template>
|
|
|
|
<template v-else>
|
2020-01-16 17:28:28 +00:00
|
|
|
<select type="text" :id="'abstracts['+index+'][language]'"
|
|
|
|
:name="'abstracts['+index+'][language]'" class="form-control"
|
2020-01-08 14:14:33 +00:00
|
|
|
v-validate="{required: true, translatedLanguage: [form.language, abstract.type]}"
|
|
|
|
v-model="abstract.language" v-bind:readonly="abstract.type == 'Abstract'">
|
|
|
|
<option v-for="option in languages" :value='option'>
|
|
|
|
@{{ option }}
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
</template>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<button v-if="abstract.id == undefined" class="pure-button button-small is-warning"
|
2020-01-16 17:28:28 +00:00
|
|
|
@click.prevent="removeDescription(index)">
|
2020-01-08 14:14:33 +00:00
|
|
|
<i class="fa fa-trash"></i>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
|
2019-12-20 10:44:40 +00:00
|
|
|
<fieldset id="fieldset-dates">
|
2020-01-07 17:49:53 +00:00
|
|
|
<legend>Date(s)</legend>
|
2019-08-27 09:15:23 +00:00
|
|
|
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
2019-12-20 10:44:40 +00:00
|
|
|
{!! Form::label('embargo_date', 'Embargo Date') !!}
|
|
|
|
{!! Form::date('embargo_date', null, ['placeholder' => date('y-m-d'), 'class'
|
|
|
|
=> 'pure-u-23-24', 'v-model' => 'form.embargo_date']) !!}
|
|
|
|
<small id="projectHelp" class="pure-form-message-inline">EmbargoDate is optional</small>
|
2019-08-27 09:15:23 +00:00
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset id="fieldset-geolocation">
|
2019-12-20 10:44:40 +00:00
|
|
|
<legend>Geo Location</legend>
|
|
|
|
<div class="pure-g">
|
|
|
|
<div class="pure-u-1 pure-u-md-1 pure-u-lg-1 pure-div">
|
|
|
|
<locations-map v-bind:geolocation="form.coverage"></locations-map>
|
2020-01-07 17:49:53 +00:00
|
|
|
</div>
|
2019-12-20 10:44:40 +00:00
|
|
|
</div>
|
2020-01-07 17:49:53 +00:00
|
|
|
</fieldset>
|
2019-12-20 10:44:40 +00:00
|
|
|
|
2020-01-07 17:49:53 +00:00
|
|
|
<fieldset id="fieldset-coverage">
|
|
|
|
<legend>Coverage</legend>
|
|
|
|
<div class="pure-g">
|
2020-01-08 14:14:33 +00:00
|
|
|
|
2020-01-07 17:49:53 +00:00
|
|
|
<div class="pure-u-1 pure-u-md-1-2">
|
|
|
|
<div class="pure-u-1 pure-u-md-1">
|
|
|
|
<label for="elevation-option-one" class="pure-radio">
|
|
|
|
<input id="elevation-option-one" type="radio" v-model="elevation" value="absolut">
|
|
|
|
absolut elevation (m)
|
|
|
|
</label>
|
|
|
|
<label for="elevation-option-two" class="pure-radio">
|
|
|
|
<input id="elevation-option-two" type="radio" v-model="elevation" value="range">
|
|
|
|
elevation range (m)
|
|
|
|
</label>
|
|
|
|
<label for="elevation-option-three" class="pure-radio">
|
|
|
|
<input id="elevation-option-three" type="radio" v-model="elevation" value="no_elevation">
|
|
|
|
no elevation
|
|
|
|
</label>
|
2020-01-08 14:14:33 +00:00
|
|
|
</div>
|
2020-01-07 17:49:53 +00:00
|
|
|
<div v-show="elevation === 'absolut'" class="pure-u-1 pure-u-md-1">
|
2020-01-08 14:14:33 +00:00
|
|
|
{!! Form::label('elevation_absolut', 'elevation absolut: ') !!}
|
2020-01-23 16:52:26 +00:00
|
|
|
{{-- {!! Form::text('elevation_absolut', null,
|
|
|
|
['class' => 'pure-u-23-24', 'v-model' => 'form.coverage.elevation_absolut',
|
|
|
|
"v-validate" => "this.isElevationAbsolut ? 'required|integer' : '' " ]) !!} --}}
|
|
|
|
<input
|
|
|
|
name="coverage[elevation_absolut]"
|
|
|
|
type="text"
|
|
|
|
class="pure-u-23-24"
|
|
|
|
v-model="form.coverage.elevation_absolut"
|
|
|
|
id="elevation_absolut"
|
|
|
|
v-validate.immediate="{ required: isElevationAbsolut, integer: true}"
|
|
|
|
/>
|
2020-01-07 17:49:53 +00:00
|
|
|
</div>
|
|
|
|
<div v-show="elevation === 'range'" class="pure-u-1 pure-u-md-1">
|
2020-01-08 14:14:33 +00:00
|
|
|
{!! Form::label('elevation_min', 'elevation min: ') !!}
|
2020-01-23 16:52:26 +00:00
|
|
|
{{-- {!! Form::text('elevation_min', null,
|
|
|
|
['class' => 'pure-u-23-24', 'v-model' => 'form.coverage.elevation_min',
|
|
|
|
"v-validate" => "this.isElevationRange ? 'required|integer' : '' "]) !!} --}}
|
|
|
|
<input
|
|
|
|
name="coverage[elevation_min]"
|
|
|
|
type="text"
|
|
|
|
class="pure-u-23-24"
|
|
|
|
v-model="form.coverage.elevation_min"
|
|
|
|
id="elevation_min"
|
|
|
|
v-validate.immediate="{ required: this.isElevationRange, integer: true}"
|
|
|
|
/>
|
2020-01-07 17:49:53 +00:00
|
|
|
</div>
|
2020-01-08 14:14:33 +00:00
|
|
|
<div v-show="elevation === 'range'" class="pure-u-1 pure-u-md-1">
|
|
|
|
{!! Form::label('elevation_max', 'elevation max: ') !!}
|
2020-01-23 16:52:26 +00:00
|
|
|
{{-- {!! Form::text('elevation_max', null,
|
|
|
|
['class' => 'pure-u-23-24', 'v-model' => 'form.coverage.elevation_max',
|
|
|
|
"v-validate" => "this.isElevationRange ? 'required|integer' : '' "]) !!} --}}
|
|
|
|
<input
|
|
|
|
name="coverage[elevation_max]"
|
|
|
|
type="text"
|
|
|
|
class="pure-u-23-24"
|
|
|
|
v-model="form.coverage.elevation_max"
|
|
|
|
id="elevation_max"
|
|
|
|
v-validate.immediate="{ required: this.isElevationRange, integer: true}"
|
|
|
|
/>
|
2020-01-08 14:14:33 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-01-07 17:49:53 +00:00
|
|
|
<div class="pure-u-1 pure-u-md-1-2">
|
|
|
|
<div class="pure-u-1 pure-u-md-1">
|
|
|
|
<label for="depth-option-one" class="pure-radio">
|
2020-01-08 14:14:33 +00:00
|
|
|
<input id="depth-option-one" type="radio" v-model="depth" value="absolut">
|
|
|
|
absolut depth (m)
|
|
|
|
</label>
|
2020-01-07 17:49:53 +00:00
|
|
|
<label for="depth-option-two" class="pure-radio">
|
2020-01-08 14:14:33 +00:00
|
|
|
<input id="depth-option-two" type="radio" v-model="depth" value="range">
|
|
|
|
depth range (m)
|
|
|
|
</label>
|
2020-01-07 17:49:53 +00:00
|
|
|
<label for="depth-option-three" class="pure-radio">
|
2020-01-08 14:14:33 +00:00
|
|
|
<input id="depth-option-three" type="radio" v-model="depth" value="no_depth">
|
|
|
|
no depth
|
|
|
|
</label>
|
2020-01-07 17:49:53 +00:00
|
|
|
</div>
|
2020-01-08 14:14:33 +00:00
|
|
|
|
2020-01-07 17:49:53 +00:00
|
|
|
<div v-show="depth === 'absolut'" class="pure-u-1 pure-u-md-1">
|
2020-01-23 16:52:26 +00:00
|
|
|
{!! Form::label('depth_absolut', 'depth absolut: ') !!}
|
|
|
|
<input
|
|
|
|
name="coverage[depth_absolut]"
|
|
|
|
type="text"
|
|
|
|
class="pure-u-23-24"
|
|
|
|
v-model="form.coverage.depth_absolut"
|
|
|
|
id="depth_absolut"
|
|
|
|
v-validate.immediate="{ required: this.isDepthAbsolut, integer: true}"
|
|
|
|
/>
|
2020-01-07 17:49:53 +00:00
|
|
|
</div>
|
|
|
|
<div v-show="depth === 'range'" class="pure-u-1 pure-u-md-1">
|
2020-01-23 16:52:26 +00:00
|
|
|
{!! Form::label('depth_min', 'depth min: ') !!}
|
|
|
|
<input
|
|
|
|
name="coverage[depth_min]"
|
|
|
|
type="text"
|
|
|
|
class="pure-u-23-24"
|
|
|
|
v-model="form.coverage.depth_min"
|
|
|
|
id="depth_min"
|
|
|
|
v-validate.immediate="{ required: this.isDepthRange, integer: true}"
|
|
|
|
/>
|
2020-01-07 17:49:53 +00:00
|
|
|
</div>
|
|
|
|
<div v-show="depth === 'range'" class="pure-u-1 pure-u-md-1">
|
2020-01-23 16:52:26 +00:00
|
|
|
{!! Form::label('depth_max', 'depth max: ') !!}
|
|
|
|
<input
|
|
|
|
name="coverage[depth_max]"
|
|
|
|
type="text"
|
|
|
|
class="pure-u-23-24"
|
|
|
|
v-model="form.coverage.depth_max"
|
|
|
|
id="depth_max"
|
|
|
|
v-validate.immediate="{ required: this.isDepthRange, integer: true}"
|
|
|
|
/>
|
2020-01-08 14:14:33 +00:00
|
|
|
</div>
|
2020-01-07 17:49:53 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="pure-u-1 pure-u-md-1-2">
|
|
|
|
<div class="pure-u-1 pure-u-md-1">
|
|
|
|
<label for="time-option-one" class="pure-radio">
|
2020-01-08 14:14:33 +00:00
|
|
|
<input id="time-option-one" type="radio" v-model="time" value="absolut">
|
2020-01-23 16:52:26 +00:00
|
|
|
absolut time (yyyy-MM-dd HH:mm:ss)
|
2020-01-08 14:14:33 +00:00
|
|
|
</label>
|
2020-01-07 17:49:53 +00:00
|
|
|
<label for="time-option-two" class="pure-radio">
|
2020-01-08 14:14:33 +00:00
|
|
|
<input id="time-option-two" type="radio" v-model="time" value="range">
|
2020-01-23 16:52:26 +00:00
|
|
|
time range (yyyy-MM-dd HH:mm:ss)
|
2020-01-08 14:14:33 +00:00
|
|
|
</label>
|
2020-01-07 17:49:53 +00:00
|
|
|
<label for="time-option-three" class="pure-radio">
|
2020-01-08 14:14:33 +00:00
|
|
|
<input id="time-option-three" type="radio" v-model="time" value="no_time">
|
|
|
|
no time
|
|
|
|
</label>
|
2020-01-07 17:49:53 +00:00
|
|
|
</div>
|
2020-01-08 14:14:33 +00:00
|
|
|
|
2020-01-07 17:49:53 +00:00
|
|
|
<div v-show="time === 'absolut'" class="pure-u-1 pure-u-md-1">
|
2020-01-08 14:14:33 +00:00
|
|
|
{!! Form::label('time_absolut', 'time absolut: ') !!}
|
2020-01-07 17:49:53 +00:00
|
|
|
{{-- {!! 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-validate" => "this.isTimeAbsolut ? 'required|date_format:dd.MM.yyyy HH:mm:ss' : '' " ]) !!} --}}
|
2020-01-23 16:52:26 +00:00
|
|
|
<datetime ref="absoluteTimeDatepicker" name="coverage[time_absolut]"
|
|
|
|
v-validate.immediate="this.isTimeAbsolut ? 'required' : '' "
|
|
|
|
format="YYYY-MM-DD h:i:s" v-model='form.coverage.time_absolut'></datetime>
|
2020-01-07 17:49:53 +00:00
|
|
|
{{-- <datetime name="time_absolut" format="MM-DD-YYYY H:i:s" width="300px" v-model="dataset.coverage.time_absolut"></datetime> --}}
|
|
|
|
</div>
|
|
|
|
<div v-show="time === 'range'" class="pure-u-1 pure-u-md-1">
|
2020-01-08 14:14:33 +00:00
|
|
|
{!! Form::label('time_min', 'time min: ') !!}
|
2020-01-07 17:49:53 +00:00
|
|
|
{{-- {!! 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-validate" => "this.isTimeRange ? 'required|date_format:dd.MM.yyyy HH:mm:ss' : '' "]) !!} --}}
|
2020-01-23 16:52:26 +00:00
|
|
|
<datetime ref="minTimeDatepicker" name="coverage[time_min]"
|
|
|
|
v-validate.immediate="this.isTimeRange ? 'required' : '' "
|
|
|
|
format="YYYY-MM-DD h:i:s" v-model='form.coverage.time_min'></datetime>
|
2020-01-07 17:49:53 +00:00
|
|
|
</div>
|
|
|
|
<div v-show="time === 'range'" class="pure-u-1 pure-u-md-1">
|
2020-01-08 14:14:33 +00:00
|
|
|
{!! Form::label('timemax', 'time max: ') !!}
|
2020-01-07 17:49:53 +00:00
|
|
|
{{-- {!! 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-validate" => "this.isTimeRange ? 'required|date_format:dd.MM.yyyy HH:mm:ss' : '' "]) !!} --}}
|
2020-01-23 16:52:26 +00:00
|
|
|
<datetime ref="maxTimeDatepicker" name="coverage[time_max]"
|
|
|
|
v-validate.immediate="this.isTimeRange ? 'required' : '' "
|
|
|
|
format="YYYY-MM-DD h:i:s" v-model='form.coverage.time_max'></datetime>
|
2020-01-08 14:14:33 +00:00
|
|
|
</div>
|
2019-12-20 10:44:40 +00:00
|
|
|
</div>
|
2019-08-27 09:15:23 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset id="fieldset-licenses">
|
|
|
|
<legend>Licenses</legend>
|
|
|
|
|
|
|
|
<div class="pure-control-group checkboxlist">
|
2019-12-20 10:44:40 +00:00
|
|
|
{{-- @foreach ($licenses as $license)
|
|
|
|
<label for={{ "license". $license->id }} class="pure-checkbox">
|
2020-01-07 17:49:53 +00:00
|
|
|
@if ($loop->first)
|
|
|
|
<input name="licenses" value={{ $license->id }} v-model="form.checkedLicenses"
|
|
|
|
{{ (in_array($license->id, $checkeds)) ? 'checked=checked' : '' }} type="radio" class="form-check-input"
|
|
|
|
v-validate="'required'" data-vv-as="Licence">
|
|
|
|
<a href="{{ $license->link_licence }}" target="_blank">{{ $license->name_long }}</a>
|
|
|
|
@else
|
|
|
|
<input name="licenses" value={{ $license->id }} v-model="form.checkedLicenses"
|
|
|
|
{{ (in_array($license->id, $checkeds)) ? 'checked=checked' : '' }} type="radio" class="form-check-input">
|
|
|
|
<a href="{{ $license->link_licence }}" target="_blank">{{ $license->name_long }}</a>
|
|
|
|
@endif
|
|
|
|
</label>
|
2019-12-20 10:44:40 +00:00
|
|
|
@endforeach --}}
|
|
|
|
<br>
|
|
|
|
{{-- <span>Checked license: @{{ dataset.checkedLicenses }}</span> --}}
|
2019-08-27 09:15:23 +00:00
|
|
|
|
2019-12-20 10:44:40 +00:00
|
|
|
<template v-for="(license, index) in licenses">
|
2020-01-07 17:49:53 +00:00
|
|
|
<label :for="'license'+license.id" class="pure-checkbox">
|
|
|
|
<input name="licenses" :value="license.id" v-model="checkeds" type="radio" class="form-check-input"
|
|
|
|
v-validate="'required'">
|
|
|
|
<a :href="license.link_licence" target="_blank">@{{ license.name_long }}</a>
|
|
|
|
</label>
|
|
|
|
</template>
|
|
|
|
{{-- <span>old checkeds: @{{ checkeds }}</span> --}}
|
2019-08-27 09:15:23 +00:00
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset id="fieldset-references">
|
2019-12-20 10:44:40 +00:00
|
|
|
<legend>Dataset References</legend>
|
2020-01-08 14:14:33 +00:00
|
|
|
<label name="ReferenceLabel">Add Reference </label>
|
|
|
|
<button class="pure-button button-small" @click.prevent="addReference()"><i class="fas fa-plus-circle"></i></button>
|
2019-12-20 10:44:40 +00:00
|
|
|
{{-- <table class="table table-hover" v-if="dataset.keywords.length"> --}}
|
2020-01-07 17:49:53 +00:00
|
|
|
{{-- @if ($dataset->references->count() > 0) --}}
|
|
|
|
<table v-show="form.references.length" id="references" class="pure-table pure-table-horizontal">
|
2019-12-20 10:44:40 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th style="width: 20px;">Reference value</th>
|
|
|
|
<th style="width: 20px;">Label</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Relation</th>
|
|
|
|
<th style="width: 130px;"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2020-01-07 17:49:53 +00:00
|
|
|
|
|
|
|
{{-- @foreach($dataset->references as $key => $reference) --}}
|
2019-12-20 10:44:40 +00:00
|
|
|
<tr v-for="(item, index) in form.references">
|
|
|
|
<td>
|
2020-01-16 17:28:28 +00:00
|
|
|
<input v-bind:name="'references[' + index +'][id]'" readonly class="form-control" v-model="item.id" hidden />
|
|
|
|
|
|
|
|
<input v-bind:name="'references[' + index +'][value]'" class="form-control"
|
2020-01-07 17:49:53 +00:00
|
|
|
placeholder="[REFERENCE VALUE]" v-model="item.value" v-validate="'required'" />
|
2019-12-20 10:44:40 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2020-01-07 17:49:53 +00:00
|
|
|
{{-- {{ Form::text('references['.$reference->id.'][label]', $reference->label, ['class' => 'form-control', 'placeholder' => '[REFERENCE LABEL]']) }}
|
|
|
|
--}}
|
2020-01-16 17:28:28 +00:00
|
|
|
<input v-bind:name="'references[' + index +'][label]'" class="form-control"
|
2020-01-07 17:49:53 +00:00
|
|
|
placeholder="[REFERENCE LABEL]" v-model="item.label" v-validate="'required'" />
|
2019-12-20 10:44:40 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2020-01-07 17:49:53 +00:00
|
|
|
{{-- {!! Form::select('references['.$reference->id.'][type]', $referenceTypes, $reference->type,
|
2020-01-08 14:14:33 +00:00
|
|
|
['placeholder' => '[REFERENCE TYPE]', 'v-model' => 'item.type', "v-validate" => "'required'"]) !!} --}}
|
2020-01-16 17:28:28 +00:00
|
|
|
<select v-bind:name="'references[' + index +'][type]'" v-model="item.type" class="form-control"
|
2020-01-08 14:14:33 +00:00
|
|
|
v-validate="'required'">
|
2020-01-07 17:49:53 +00:00
|
|
|
<option v-for="option in referenceTypes" :value='option'>
|
|
|
|
@{{ option }}
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
{{-- <span>Selected: @{{ item.type }}</span> --}}
|
2019-12-20 10:44:40 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2020-01-07 17:49:53 +00:00
|
|
|
{{-- {!! Form::select('references['.$reference->id.'][relation]', $relationTypes, $reference->relation,
|
|
|
|
['placeholder' => '[REFERENCE TYPE]', 'v-model' => 'item.relation', "v-validate" => "'required'"]) !!} --}}
|
2020-01-16 17:28:28 +00:00
|
|
|
<select v-bind:name="'references[' + index +'][relation]'" v-model="item.relation"
|
2020-01-08 14:14:33 +00:00
|
|
|
class="form-control" v-validate="'required'">
|
2020-01-07 17:49:53 +00:00
|
|
|
<option v-for="option in relationTypes" :value='option'>
|
|
|
|
@{{ option }}
|
|
|
|
</option>
|
|
|
|
</select>
|
2019-12-20 10:44:40 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2020-01-07 17:49:53 +00:00
|
|
|
<button v-if="item.id == undefined" class="pure-button button-small is-warning"
|
2020-01-08 14:14:33 +00:00
|
|
|
@click.prevent="removeReference(index)">
|
|
|
|
<i class="fa fa-trash"></i>
|
|
|
|
</button>
|
2019-12-20 10:44:40 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2020-01-07 17:49:53 +00:00
|
|
|
{{-- @endforeach --}}
|
2019-12-20 10:44:40 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2020-01-07 17:49:53 +00:00
|
|
|
{{-- @else
|
2019-12-20 10:44:40 +00:00
|
|
|
<span>...there are no references</span>
|
2020-01-07 17:49:53 +00:00
|
|
|
@endif --}}
|
2019-12-20 10:44:40 +00:00
|
|
|
</fieldset>
|
2019-08-27 09:15:23 +00:00
|
|
|
|
|
|
|
<fieldset id="fieldset-keywords">
|
2019-12-20 10:44:40 +00:00
|
|
|
<legend>Dataset Keywords</legend>
|
2020-01-09 17:42:09 +00:00
|
|
|
<label name="SubjectLabel">Add Keyword </label>
|
2020-01-23 16:52:26 +00:00
|
|
|
<input type="hidden" v-validate:keywords_length="'min_value:3'" data-vv-as="keyword list" name="keywords_list">
|
2020-01-08 14:14:33 +00:00
|
|
|
<button class="pure-button button-small" @click.prevent="addKeyword()"><i class="fas fa-plus-circle"></i></button>
|
2019-12-20 10:44:40 +00:00
|
|
|
@if ($dataset->subjects->count() > 0)
|
|
|
|
<table id="keywords" class="pure-table pure-table-horizontal">
|
2019-08-27 09:15:23 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th style="width: 20px;">Keyword</th>
|
|
|
|
<th>Type</th>
|
2021-06-15 12:39:37 +00:00
|
|
|
<th>Language</th>
|
2019-08-27 09:15:23 +00:00
|
|
|
<th style="width: 130px;"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2020-01-16 17:28:28 +00:00
|
|
|
<tbody>
|
2020-01-07 17:49:53 +00:00
|
|
|
<tr v-for="(item, index) in form.subjects" :key="item.id">
|
2020-01-16 17:28:28 +00:00
|
|
|
|
2019-08-27 09:15:23 +00:00
|
|
|
<td>
|
2020-01-16 17:28:28 +00:00
|
|
|
<input v-bind:name="'subjects[' + index +'][id]'" readonly class="form-control" v-model="item.id" hidden />
|
2021-06-10 14:15:01 +00:00
|
|
|
<input v-bind:name="'subjects[' + index +'][value]'" :readonly="item.id != undefined" class="form-control"
|
2020-01-07 17:49:53 +00:00
|
|
|
placeholder="[KEYWORD VALUE]" v-model="item.value" v-validate="'required'" />
|
|
|
|
{{-- {{ Form::text('keywords['.$keyword->id.'][value]', $keyword->value, ['class' => 'form-control', 'placeholder' => '[KEYWORD VALUE]']) }}
|
|
|
|
--}}
|
2019-08-27 09:15:23 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2019-12-20 10:44:40 +00:00
|
|
|
{{-- {!! Form::select('keywords['.$keyword->id.'][type]', $keywordTypes, $keyword->type, ['placeholder'
|
|
|
|
=> '[keyword type]', 'v-model' =>
|
2020-01-07 17:49:53 +00:00
|
|
|
'item.type', "v-validate" => "'required'", 'data-vv-scope' => 'step-2']) !!} --}}
|
2019-12-20 10:44:40 +00:00
|
|
|
{{-- <select v-bind:name="'keywords[' + item.id +'][type]'" v-model="item.type" class="form-control">
|
|
|
|
<option value="" disabled>[keyword type]</option>
|
|
|
|
@foreach($keywordTypes as $option)
|
|
|
|
<option value="{{ $option }}">{{ $option }}</option>
|
2020-01-07 17:49:53 +00:00
|
|
|
@endforeach
|
2019-12-20 10:44:40 +00:00
|
|
|
</select> --}}
|
2020-01-16 17:28:28 +00:00
|
|
|
<input v-bind:name="'subjects[' + index +'][type]'" readonly class="form-control"
|
2020-01-07 17:49:53 +00:00
|
|
|
placeholder="[KEYWORD TYPE]" v-model="item.type" v-validate="'required'" />
|
2019-08-27 09:15:23 +00:00
|
|
|
</td>
|
2021-06-15 12:39:37 +00:00
|
|
|
<td>
|
|
|
|
<input v-bind:name="'subjects[' + index +'][language]'" readonly class="form-control" v-model="item.language" v-validate="'required'" />
|
|
|
|
</td>
|
2019-08-27 09:15:23 +00:00
|
|
|
<td>
|
2020-01-07 17:49:53 +00:00
|
|
|
<button v-if="item.id == undefined" class="pure-button button-small is-warning"
|
|
|
|
@click.prevent="removeKeyword(index)">
|
|
|
|
<i class="fa fa-trash"></i>
|
|
|
|
</button>
|
2019-08-27 09:15:23 +00:00
|
|
|
</td>
|
2020-01-16 17:28:28 +00:00
|
|
|
</tr>
|
2019-08-27 09:15:23 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
@else
|
|
|
|
<span>...there are no keywords</span>
|
|
|
|
@endif
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset id="fieldset-files">
|
|
|
|
<legend>Files</legend>
|
2020-01-16 17:28:28 +00:00
|
|
|
|
2020-01-23 16:52:26 +00:00
|
|
|
{{-- <h3>File Upload</h3>--}}
|
|
|
|
{{-- <div class="dropbox"> --}}
|
|
|
|
<div>
|
|
|
|
<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="file" name="uploads[]" multiple @change="filesChange($event.target.name, $event.target.files)" class="input-file">
|
2020-01-16 17:28:28 +00:00
|
|
|
<p>
|
|
|
|
Drag your file(s) here to begin<br> or click to browse
|
2020-01-23 16:52:26 +00:00
|
|
|
</p> --}}
|
|
|
|
</div>
|
2020-01-16 17:28:28 +00:00
|
|
|
|
2019-08-27 09:15:23 +00:00
|
|
|
<table id="items" class="pure-table pure-table-horizontal">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2020-01-16 17:28:28 +00:00
|
|
|
<th>#</th>
|
2019-08-27 09:15:23 +00:00
|
|
|
<th>Path Name</th>
|
2020-01-23 16:52:26 +00:00
|
|
|
<th>ID</th>
|
2019-08-27 09:15:23 +00:00
|
|
|
<th>Label</th>
|
2020-01-23 16:52:26 +00:00
|
|
|
{{-- <th>New</th> --}}
|
2020-01-16 17:28:28 +00:00
|
|
|
<th style="width: 130px;"></th>
|
2019-08-27 09:15:23 +00:00
|
|
|
</tr>
|
2019-12-20 10:44:40 +00:00
|
|
|
</thead>
|
2020-01-16 17:28:28 +00:00
|
|
|
<tbody>
|
2019-12-20 10:44:40 +00:00
|
|
|
<tr v-for="(file, index) in form.files" :key="file.id">
|
2020-01-16 17:28:28 +00:00
|
|
|
<td>
|
|
|
|
@{{ index +1 }}
|
|
|
|
</td>
|
2019-08-27 09:15:23 +00:00
|
|
|
<td>
|
2019-12-20 10:44:40 +00:00
|
|
|
{{-- @if($file->exists() === true)
|
|
|
|
<a href="{{ route('settings.file.download', ['id' => $file->id]) }}"> {{ $file->path_name }} </a>
|
2019-08-27 09:15:23 +00:00
|
|
|
@else
|
2019-12-20 10:44:40 +00:00
|
|
|
<span class="alert">missing file: {{ $file->path_name }}</span>
|
|
|
|
@endif --}}
|
2020-01-23 16:52:26 +00:00
|
|
|
<a v-if="file.id != undefined" v-bind:href=" '/settings/file/download/' + file.id ">
|
2020-01-16 17:28:28 +00:00
|
|
|
@{{ file.path_name }}
|
|
|
|
</a>
|
|
|
|
<span v-else> File name will be generated</span>
|
|
|
|
|
|
|
|
|
2019-08-27 09:15:23 +00:00
|
|
|
</td>
|
2020-01-07 17:49:53 +00:00
|
|
|
<td>
|
2020-01-23 16:52:26 +00:00
|
|
|
<input v-bind:name="'files[' + index +'][id]'" readonly class="form-control" v-model="file.id" />
|
|
|
|
</td>
|
|
|
|
<td>
|
2020-01-16 17:28:28 +00:00
|
|
|
<input v-bind:name="'files['+index+'][label]'" class="form-control" placeholder="[FILE LABEL]"
|
2020-01-07 17:49:53 +00:00
|
|
|
v-model="file.label" v-validate="'required'" />
|
2019-08-27 09:15:23 +00:00
|
|
|
</td>
|
2020-01-23 16:52:26 +00:00
|
|
|
{{-- <td>
|
2020-01-16 17:28:28 +00:00
|
|
|
<i v-if="file.file" class="fas fa-file-upload"></i>
|
2020-01-23 16:52:26 +00:00
|
|
|
<input type="text" v-bind:name="'files['+index+'][file]'" class="form-control" v-model="file.file"/>
|
|
|
|
</td> --}}
|
2020-01-16 17:28:28 +00:00
|
|
|
<td>
|
|
|
|
<button v-if="file.id == undefined" class="pure-button button-small is-warning"
|
|
|
|
@click.prevent="removeFile(index)">
|
|
|
|
<i class="fa fa-trash"></i>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2019-08-27 09:15:23 +00:00
|
|
|
</tbody>
|
2020-01-16 17:28:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-08-27 09:15:23 +00:00
|
|
|
</table>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<br />
|
|
|
|
<div class="pure-controls">
|
2019-12-20 10:44:40 +00:00
|
|
|
<button :disabled="errors.any()" type="submit" class="pure-button button-small">
|
2020-01-08 14:14:33 +00:00
|
|
|
<i class="fas fa-save"></i>
|
2019-08-27 09:15:23 +00:00
|
|
|
<span>{!! $submitButtonText !!}</span>
|
|
|
|
</button>
|
2020-01-23 16:52:26 +00:00
|
|
|
</div>
|