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

View File

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

View File

@ -23,7 +23,7 @@ class MessagesTableSeeder extends Seeder
'updated_at' => Carbon::now(),
],
[
// 2
// 2
'metadata_element' => 'dataset_type',
'help_text' => 'Hier ist die Datenpublikation nach fix vorgegebenen Kategorien zu klassifizieren.',
'created_at' => Carbon::now(),

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

@ -1020,4 +1020,8 @@ textarea.large, input.large {
.help.is-info {
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.descriptionTypes = window.Laravel.descriptionTypes;
this.languages = window.Laravel.languages;
this.messages = window.Laravel.messages;
this.projects = window.Laravel.projects;
this.licenses = window.Laravel.licenses;
this.checkeds = window.Laravel.checkeds;

View File

@ -104,6 +104,9 @@
<script lang="ts">
import draggable from "vuedraggable";
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({
components: { draggable }

View File

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

File diff suppressed because it is too large Load Diff

View File

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

View File

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

View File

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

View File

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