vue_accourse: adapt stickynav numerotation with 2 new blocs

+ let IDE make corrections in theses files
This commit is contained in:
Mathieu Jaumotte 2021-08-12 11:37:25 +02:00
parent da98b42c8c
commit 6ee0acfa0f
9 changed files with 41 additions and 41 deletions

View File

@ -1,48 +1,48 @@
<template> <template>
<div class="vue-component"> <div class="vue-component">
<h2><a name="section-60"></a>{{ $t('comment.title') }}</h2> <h2><a name="section-80"></a>{{ $t('comment.title') }}</h2>
<!--div class="error flash_message" v-if="errors.length > 0"> <!--div class="error flash_message" v-if="errors.length > 0">
{{ errors[0] }} {{ errors[0] }}
TODO fix errors flashbag for app component TODO fix errors flashbag for app component
</div--> </div-->
<div> <div>
<form @submit.prevent="submitform"> <form @submit.prevent="submitform">
<label for="content">{{ $t('comment.label') }}</label> <label for="content">{{ $t('comment.label') }}</label>
<div v-if="initialComment"> <div v-if="initialComment">
{{ $t('comment.created_by', [ {{ $t('comment.created_by', [
initialComment.creator.text, initialComment.creator.text,
$d(initialComment.createdAt.datetime, 'long') $d(initialComment.createdAt.datetime, 'long')
]) }} ]) }}
</div> </div>
<textarea <textarea
name="content" name="content"
v-bind:placeholder="$t('comment.content')" v-bind:placeholder="$t('comment.content')"
rows="8" rows="8"
cols="80" cols="80"
ckeditor="ckeditor" ckeditor="ckeditor"
v-model="content"> v-model="content">
</textarea> </textarea>
<ul class="record_actions"> <ul class="record_actions">
<li> <li>
<button type="submit" class="btn btn-save">{{ $t('action.save') }}</button> <button type="submit" class="btn btn-save">{{ $t('action.save') }}</button>
</li> </li>
<li v-if="initialComment !== null"> <li v-if="initialComment !== null">
<a class="btn btn-delete" <a class="btn btn-delete"
@click="removeComment"> @click="removeComment">
{{ $t('action.delete') }} {{ $t('action.delete') }}
</a> </a>
</li> </li>
</ul> </ul>
</form> </form>
</div> </div>
</div> </div>
</template> </template>
@ -51,7 +51,7 @@ export default {
name: "Comment", name: "Comment",
data() { data() {
return { return {
formdata: { formdata: {
type: "accompanying_period_comment", type: "accompanying_period_comment",
content: '' content: ''
} }

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="vue-component"> <div class="vue-component">
<h2><a name="section-70"></a> <h2><a name="section-90"></a>
{{ $t('confirm.title') }} {{ $t('confirm.title') }}
</h2> </h2>
@ -13,7 +13,7 @@
{{ $t('confirm.text_active') }} {{ $t('confirm.text_active') }}
<span class="badge bg-primary">{{ $t('course.step.active') }}</span> <span class="badge bg-primary">{{ $t('course.step.active') }}</span>
</p> </p>
<ul class="record_actions"> <ul class="record_actions">
<li> <li>
<button class="btn btn-save" @click="modal.showModal = true"> <button class="btn btn-save" @click="modal.showModal = true">

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="vue-component"> <div class="vue-component">
<h2><a name="section-35"></a> <h2><a name="section-50"></a>
{{ $t('courselocation.title') }} {{ $t('courselocation.title') }}
</h2> </h2>
<div class="my-4"> <div class="my-4">

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="vue-component"> <div class="vue-component">
<h2><a name="section-15"></a>{{ $t('origin.title') }}</h2> <h2><a name="section-20"></a>{{ $t('origin.title') }}</h2>
<div class="my-4"> <div class="my-4">
<label for="selectOrigin"> <label for="selectOrigin">
{{ $t('origin.label') }} {{ $t('origin.label') }}

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="vue-component"> <div class="vue-component">
<h2><a name="section-40"></a>{{ $t('referrer.title') }}</h2> <h2><a name="section-60"></a>{{ $t('referrer.title') }}</h2>
<div class="my-4"> <div class="my-4">
<label class="col-form-label" for="selectReferrer"> <label class="col-form-label" for="selectReferrer">
@ -21,7 +21,7 @@
<ul class="record_actions"> <ul class="record_actions">
<li> <li>
<button <button
class="btn btn-create" class="btn btn-create"
type="button" type="button"
name="button" name="button"

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="vue-component"> <div class="vue-component">
<h2><a name="section-20"></a>{{ $t('requestor.title') }}</h2> <h2><a name="section-30"></a>{{ $t('requestor.title') }}</h2>
<div v-if="accompanyingCourse.requestor" class="flex-table"> <div v-if="accompanyingCourse.requestor" class="flex-table">

View File

@ -1,12 +1,12 @@
<template> <template>
<div class="vue-component"> <div class="vue-component">
<h2><a name="section-50"></a>{{ $t('resources.title')}}</h2> <h2><a name="section-70"></a>{{ $t('resources.title')}}</h2>
<div> <div>
<label class="col-form-label">{{ $tc('resources.counter', counter) }}</label> <label class="col-form-label">{{ $tc('resources.counter', counter) }}</label>
</div> </div>
<table class="table table-bordered table-striped border-dark align-middle" v-if="resources.length > 0"> <table class="table table-bordered table-striped border-dark align-middle" v-if="resources.length > 0">
<thead> <thead>
<tr> <tr>
@ -24,9 +24,9 @@
</resource-item> </resource-item>
</tbody> </tbody>
</table> </table>
<div> <div>
<add-persons <add-persons
buttonTitle="resources.add_resources" buttonTitle="resources.add_resources"
modalTitle="resources.add_resources" modalTitle="resources.add_resources"
v-bind:key="addPersons.key" v-bind:key="addPersons.key"

View File

@ -1,15 +1,15 @@
<template> <template>
<div class="vue-component"> <div class="vue-component">
<h2><a name="section-30"></a>{{ $t('social_issue.title') }}</h2> <h2><a name="section-40"></a>{{ $t('social_issue.title') }}</h2>
<div class="my-4"> <div class="my-4">
<!--label for="field">{{ $t('social_issue.label') }}</label <!--label for="field">{{ $t('social_issue.label') }}</label
--> -->
<VueMultiselect <VueMultiselect
name="field" name="field"
:close-on-select="false" :close-on-select="false"
:allow-empty="true" :allow-empty="true"
:show-labels="false" :show-labels="false"
track-by="id" track-by="id"
label="text" label="text"
:multiple="true" :multiple="true"
@ -20,7 +20,7 @@
:options="options"> :options="options">
</VueMultiselect> </VueMultiselect>
</div> </div>
</div> </div>
</template> </template>
@ -51,7 +51,7 @@ export default {
//console.log('get socialIssues', response.results); //console.log('get socialIssues', response.results);
this.options = response.results; this.options = response.results;
resolve(); resolve();
})).catch(error => this.$store.commit('catchError', error)); })).catch(error => this.$store.commit('catchError', error));
}, },
updateSocialIssues(value) { updateSocialIssues(value) {
this.$store.dispatch('updateSocialIssues', this.transformValue(value)); this.$store.dispatch('updateSocialIssues', this.transformValue(value));
@ -60,7 +60,7 @@ export default {
let stored = this.value; let stored = this.value;
let added = updated.filter(x => stored.indexOf(x) === -1).shift(); let added = updated.filter(x => stored.indexOf(x) === -1).shift();
let removed = stored.filter(x => updated.indexOf(x) === -1).shift(); let removed = stored.filter(x => updated.indexOf(x) === -1).shift();
let method = (typeof removed === 'undefined') ? 'POST' : 'DELETE'; let method = (typeof removed === 'undefined') ? 'POST' : 'DELETE';
let changed = (typeof removed === 'undefined') ? added : removed; let changed = (typeof removed === 'undefined') ? added : removed;
let body = { type: "social_issue", id: changed.id }; let body = { type: "social_issue", id: changed.id };
//console.log('body', body); //console.log('body', body);

View File

@ -1,15 +1,15 @@
<template> <template>
<a <a
v-if="item.key <= 5" v-if="item.key <= 7"
:href="item.name" :href="item.name"
:class="{ 'active': isActive }" :class="{ 'active': isActive }"
> >
<i class="fa fa-fw fa-square"></i> <i class="fa fa-fw fa-square"></i>
<span>{{ item.key }}</span> <span>{{ item.key }}</span>
</a> </a>
<a <a
v-else-if="step === 'DRAFT'" v-else-if="step === 'DRAFT'"
:href="item.name" :href="item.name"
:class="{ 'active': isActive }" :class="{ 'active': isActive }"
> >
<i class="fa fa-fw fa-square"></i> <i class="fa fa-fw fa-square"></i>