- add message class for help texts
- add migrations for message class - load messages into vue form for dataset publishing - check unique email of authors during dataset creation - adaptions in create-step1.blade.php for tooltip colors - updated package.json
This commit is contained in:
parent
a773fe2a1d
commit
0f6260f358
18 changed files with 127 additions and 31 deletions
|
@ -29,7 +29,7 @@
|
|||
v-bind:name="heading+'['+index+'][id]'"
|
||||
class="form-control"
|
||||
v-model="item.id"
|
||||
v-bind:readonly="item.status==1"
|
||||
readonly
|
||||
data-vv-scope="step-1"
|
||||
/></td>
|
||||
<td>
|
||||
|
|
|
@ -43,6 +43,12 @@ import VueToast from 'vue-toast-notification';
|
|||
import 'vue-toast-notification/dist/index.css';
|
||||
Vue.use(VueToast);
|
||||
|
||||
// import VTooltip from 'v-tooltip';
|
||||
// Vue.use(VTooltip);
|
||||
import Tooltip from 'vue-directive-tooltip';
|
||||
import 'vue-directive-tooltip/dist/vueDirectiveTooltip.css';
|
||||
Vue.use(Tooltip);
|
||||
|
||||
const dict = {
|
||||
custom: {
|
||||
keyword_list: {
|
||||
|
@ -147,6 +153,10 @@ const app = new Vue({
|
|||
mounted() {
|
||||
//this.step = 2;
|
||||
this.reset();
|
||||
console.log(this.messages);
|
||||
},
|
||||
beforeMount() {
|
||||
this.messages = window.Laravel.messages;
|
||||
},
|
||||
computed: {
|
||||
keywords_length() {
|
||||
|
@ -544,14 +554,6 @@ const app = new Vue({
|
|||
this.$toast.success("person has been successfully added as contributor");
|
||||
}
|
||||
},
|
||||
// onAddSubmitter(person) {
|
||||
// //if person is not in submitters array
|
||||
// //if (this.submitters.includes(person) == false) {
|
||||
// if (this.dataset.submitters.filter(e => e.id === person.id).length == 0) {
|
||||
// this.dataset.submitters.push(person);
|
||||
// this.dataset.checkedSubmitters.push(person.id);
|
||||
// }
|
||||
// },
|
||||
/*
|
||||
Removes a select file the user has uploaded
|
||||
*/
|
||||
|
|
|
@ -2,6 +2,18 @@
|
|||
|
||||
@section('title', 'Publish')
|
||||
|
||||
@section('styles')
|
||||
<style>
|
||||
.vue-tooltip.tooltip-custom {
|
||||
background-color: #00a9d8;
|
||||
z-index: 9999;
|
||||
}
|
||||
.vue-tooltip.tooltip-custom .tooltip-content {
|
||||
z-index: 9999;
|
||||
}
|
||||
</style>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<div class="header">
|
||||
<h3 class="header-title">
|
||||
|
@ -69,16 +81,21 @@
|
|||
</div>
|
||||
</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."> *</span></label>
|
||||
<label for="documentType">Dataset Type<span class="required" title="Dieses Feld muss ausgefüllt werden.">
|
||||
* <i v-tooltip="{ content: messages.dataset_type, class: 'tooltip-custom tooltip-other-custom' }" class="far fa-lg fa-question-circle"></i>
|
||||
</span>
|
||||
</label>
|
||||
<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' =>
|
||||
'dataset.type', "v-validate" => "'required'", 'data-vv-scope' => 'step-1']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<fieldset id="fieldset-titles">
|
||||
<legend>Title(s)</legend>
|
||||
<legend>Title(s) <i v-tooltip="{ content: messages.titles, class: 'tooltip-custom tooltip-other-custom' }" class="far fa-lg fa-question-circle"></i> </legend>
|
||||
<div class="pure-g">
|
||||
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
||||
{!! Form::label('TitleMain', 'Main Title ') !!}
|
||||
|
@ -734,11 +751,13 @@
|
|||
|
||||
|
||||
@stop
|
||||
@section('after-scripts') {{--
|
||||
<script type="text/javascript" src="{{ asset('js/lib.js') }}"></script> --}} {{--
|
||||
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/vue"></script>--}} {{--
|
||||
<script type="text/javascript" src="{{ resource_path('assets\js\datasetPublish.js') }}"></script> --}}
|
||||
@section('after-scripts')
|
||||
<script>
|
||||
window.Laravel = <?php echo json_encode([
|
||||
'languages' => $languages,
|
||||
'messages' => $messages,
|
||||
]); ?>
|
||||
</script>
|
||||
<script type="text/javascript" src="{{ asset('backend/publish/datasetPublish.js') }}"></script>
|
||||
|
||||
@stop
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue