mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
AccompanyingCourse: uniformity of styles
This commit is contained in:
parent
d652771af0
commit
1aa77bd1c4
@ -27,17 +27,19 @@
|
|||||||
]) }}
|
]) }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="record_actions">
|
<div>
|
||||||
<li>
|
<ul class="record_actions">
|
||||||
<button type="submit" class="btn btn-save">{{ $t('action.save') }}</button>
|
<li>
|
||||||
</li>
|
<button type="submit" class="btn btn-save">{{ $t('action.save') }}</button>
|
||||||
<li v-if="initialComment !== null">
|
</li>
|
||||||
<a class="btn btn-delete"
|
<li v-if="initialComment !== null">
|
||||||
@click="removeComment">
|
<a class="btn btn-delete"
|
||||||
{{ $t('action.delete') }}
|
@click="removeComment">
|
||||||
</a>
|
{{ $t('action.delete') }}
|
||||||
</li>
|
</a>
|
||||||
</ul>
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -3,30 +3,34 @@
|
|||||||
<h2><a name="section-20"></a>
|
<h2><a name="section-20"></a>
|
||||||
{{ $t('courselocation.title') }}
|
{{ $t('courselocation.title') }}
|
||||||
</h2>
|
</h2>
|
||||||
<div class="my-4">
|
|
||||||
|
|
||||||
<!-- {# include vue_address component #} -->
|
<!-- {# include vue_address component #} -->
|
||||||
<div v-for="error in displayErrors" class="alert alert-danger my-2">
|
<div v-for="error in displayErrors" class="alert alert-danger my-2">
|
||||||
{{ error }}
|
{{ error }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="hasNoLocation" class="chill-no-data-statement">
|
<div v-if="hasNoLocation">
|
||||||
|
<label class="chill-no-data-statement">
|
||||||
{{ $t('courselocation.no_address') }}
|
{{ $t('courselocation.no_address') }}
|
||||||
</div>
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
<show-address
|
<div v-if="isPersonLocation">
|
||||||
v-if="accompanyingCourse.location"
|
<label class="col-form-label">
|
||||||
:address="accompanyingCourse.location">
|
|
||||||
</show-address>
|
|
||||||
|
|
||||||
<div v-if="isPersonLocation" class="alert alert-success">
|
|
||||||
{{ $t('courselocation.person_locator', [ accompanyingCourse.personLocation.text ]) }}
|
{{ $t('courselocation.person_locator', [ accompanyingCourse.personLocation.text ]) }}
|
||||||
</div>
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div v-if="isTemporaryAddress" class="alert alert-warning">
|
<show-address
|
||||||
<p>{{ $t('courselocation.temporary_address_must_be_changed') }}</p>
|
v-if="accompanyingCourse.location"
|
||||||
</div>
|
:address="accompanyingCourse.location">
|
||||||
|
</show-address>
|
||||||
|
|
||||||
|
<div v-if="isTemporaryAddress" class="alert alert-warning">
|
||||||
|
<p>{{ $t('courselocation.temporary_address_must_be_changed') }}</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
<ul class="record_actions">
|
<ul class="record_actions">
|
||||||
<li>
|
<li>
|
||||||
<add-address
|
<add-address
|
||||||
@ -47,8 +51,8 @@
|
|||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="vue-component">
|
<div class="vue-component">
|
||||||
<h2><a name="section-30"></a>{{ $t('origin.title') }}</h2>
|
<h2><a name="section-30"></a>{{ $t('origin.title') }}</h2>
|
||||||
|
|
||||||
<div class="my-4">
|
<div class="mb-4">
|
||||||
<label for="selectOrigin">
|
<label for="selectOrigin">
|
||||||
{{ $t('origin.label') }}
|
{{ $t('origin.label') }}
|
||||||
</label>
|
</label>
|
||||||
|
@ -2,9 +2,12 @@
|
|||||||
<div class="vue-component">
|
<div class="vue-component">
|
||||||
<h2><a name="section-10"></a>{{ $t('persons_associated.title')}}</h2>
|
<h2><a name="section-10"></a>{{ $t('persons_associated.title')}}</h2>
|
||||||
|
|
||||||
<div>
|
<div v-if="participations.length > 0">
|
||||||
<label class="col-form-label">{{ $tc('persons_associated.counter', counter) }}</label>
|
<label class="col-form-label">{{ $tc('persons_associated.counter', counter) }}</label>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-else>
|
||||||
|
<label class="chill-no-data-statement">{{ $tc('persons_associated.counter', counter) }}</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
<table class="table table-bordered table-striped border-dark align-middle" v-if="participations.length > 0">
|
<table class="table table-bordered table-striped border-dark align-middle" v-if="participations.length > 0">
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="vue-component">
|
<div class="vue-component">
|
||||||
<h2><a name="section-60"></a>{{ $t('referrer.title') }}</h2>
|
<h2><a name="section-60"></a>{{ $t('referrer.title') }}</h2>
|
||||||
|
|
||||||
<div class="my-4">
|
<div>
|
||||||
<label class="col-form-label" for="selectReferrer">
|
<label class="col-form-label" for="selectReferrer">
|
||||||
{{ $t('referrer.label') }}
|
{{ $t('referrer.label') }}
|
||||||
</label>
|
</label>
|
||||||
@ -18,7 +18,9 @@
|
|||||||
v-bind:options="options"
|
v-bind:options="options"
|
||||||
@select="updateReferrer">
|
@select="updateReferrer">
|
||||||
</VueMultiselect>
|
</VueMultiselect>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
<ul class="record_actions">
|
<ul class="record_actions">
|
||||||
<li>
|
<li>
|
||||||
<button
|
<button
|
||||||
@ -30,8 +32,8 @@
|
|||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<div v-if="accompanyingCourse.requestor" class="flex-table">
|
<div v-if="accompanyingCourse.requestor" class="flex-table">
|
||||||
|
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" v-model="isAnonymous" class="me-2" /><!-- :value="value" -->
|
<input type="checkbox" v-model="isAnonymous" class="me-2" />
|
||||||
{{ $t('requestor.is_anonymous') }}
|
{{ $t('requestor.is_anonymous') }}
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
@ -67,7 +67,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<label>{{ $t('requestor.counter') }}</label>
|
<label class="chill-no-data-statement">{{ $t('requestor.counter') }}</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
@ -3,9 +3,12 @@
|
|||||||
|
|
||||||
<h2><a name="section-70"></a>{{ $t('resources.title')}}</h2>
|
<h2><a name="section-70"></a>{{ $t('resources.title')}}</h2>
|
||||||
|
|
||||||
<div>
|
<div v-if="resources.length > 0">
|
||||||
<label class="col-form-label">{{ $tc('resources.counter', counter) }}</label>
|
<label class="col-form-label">{{ $tc('resources.counter', counter) }}</label>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-else>
|
||||||
|
<label class="chill-no-data-statement">{{ $tc('resources.counter', counter) }}</label>
|
||||||
|
</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>
|
||||||
|
@ -34,7 +34,7 @@ const appMessages = {
|
|||||||
},
|
},
|
||||||
persons_associated: {
|
persons_associated: {
|
||||||
title: "Usagers concernés",
|
title: "Usagers concernés",
|
||||||
counter: "Il n'y a pas encore d'usager | 1 usager | {count} usagers",
|
counter: "Il n'y a pas encore d'usagers | 1 usager | {count} usagers",
|
||||||
firstname: "Prénom",
|
firstname: "Prénom",
|
||||||
lastname: "Nom",
|
lastname: "Nom",
|
||||||
name: "Nom",
|
name: "Nom",
|
||||||
@ -75,7 +75,7 @@ const appMessages = {
|
|||||||
sure_description: "Voulez-vous faire de cette adresse l'adresse du parcours ?",
|
sure_description: "Voulez-vous faire de cette adresse l'adresse du parcours ?",
|
||||||
ok: "Désigner comme adresse du parcours",
|
ok: "Désigner comme adresse du parcours",
|
||||||
person_locator: "Parcours localisé auprès de {0}",
|
person_locator: "Parcours localisé auprès de {0}",
|
||||||
no_address: "Aucune adresse associée au parcours."
|
no_address: "Il n'y a pas d'adresse associée au parcours"
|
||||||
},
|
},
|
||||||
referrer: {
|
referrer: {
|
||||||
title: "Référent du parcours",
|
title: "Référent du parcours",
|
||||||
|
@ -37,8 +37,8 @@ let initPromise = getAccompanyingCourse(id)
|
|||||||
validationKeys(state, getters) {
|
validationKeys(state, getters) {
|
||||||
let keys = [];
|
let keys = [];
|
||||||
if (!getters.isParticipationValid) { keys.push('participation'); }
|
if (!getters.isParticipationValid) { keys.push('participation'); }
|
||||||
if (!getters.isSocialIssueValid) { keys.push('socialIssue'); }
|
|
||||||
if (!getters.isLocationValid) { keys.push('location'); }
|
if (!getters.isLocationValid) { keys.push('location'); }
|
||||||
|
if (!getters.isSocialIssueValid) { keys.push('socialIssue'); }
|
||||||
//console.log('getter keys', keys);
|
//console.log('getter keys', keys);
|
||||||
return keys;
|
return keys;
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user