accompanyingCourse steps, flags, .. translations and pills appearence

This commit is contained in:
Mathieu Jaumotte 2021-05-08 11:42:42 +02:00
parent 54eb15ea35
commit 0f59be04a7
2 changed files with 45 additions and 16 deletions

View File

@ -4,22 +4,46 @@
<dl>
<dt>{{ $t('course.id') }}</dt>
<dd>{{ accompanyingCourse.id }}</dd>
<dt>{{ $t('course.step') }}</dt>
<dd>{{ accompanyingCourse.step }}</dd>
<dt>{{ $t('course.emergency') }}</dt>
<dd>{{ accompanyingCourse.emergency }}</dd>
<dt>{{ $t('course.confidential') }}</dt>
<dd>{{ accompanyingCourse.confidential }}</dd>
<dt>{{ $t('course.opening_date') }}</dt>
<dd>{{ $d(accompanyingCourse.openingDate.datetime, 'short') }}</dd>
<dt>{{ $t('course.closing_date') }}</dt>
<dd v-if="accompanyingCourse.closingDate">{{ $d(accompanyingCourse.closingDate.datetime, 'short') }}</dd>
<dt>{{ $t('course.remark') }}</dt>
<dd>{{ accompanyingCourse.remark }}</dd>
<dt>{{ $t('course.closing_motive') }}</dt>
<dd v-if="accompanyingCourse.closingMotive">{{ accompanyingCourse.closingMotive.name.fr }}</dd>
<dt>{{ $t('course.user') }}</dt>
<dd v-if="accompanyingCourse.user">{{ accompanyingCourse.user.username }}</dd>
<dt>{{ $t('course.status') }}</dt>
<dd>
<div v-if="accompanyingCourse.step !== 'DRAFT'"
class="badge badge-pill badge-primary">
{{ $t('course.step.active') }}</div>
<div v-else class="badge badge-pill badge-secondary">
{{ $t('course.step.draft') }}</div>
</dd>
<dt>{{ $t('course.flags') }}</dt>
<dd>
<div v-if="accompanyingCourse.emergency === true"
class="badge badge-pill badge-primary">
{{ $t('course.emergency') }}</div>
<div v-else class="badge badge-pill badge-secondary">
{{ $t('course.emergency') }}</div>
<div v-if="accompanyingCourse.confidential === true"
class="badge badge-pill badge-primary">
{{ $t('course.confidential') }}</div>
<div v-else class="badge badge-pill badge-secondary">
{{ $t('course.confidential') }}</div>
</dd>
<dt>{{ $t('course.opening_date') }}</dt>
<dd>{{ $d(accompanyingCourse.openingDate.datetime, 'short') }}</dd>
<dt>{{ $t('course.closing_date') }}</dt>
<dd v-if="accompanyingCourse.closingDate">{{ $d(accompanyingCourse.closingDate.datetime, 'short') }}</dd>
<dt>{{ $t('course.closing_motive') }}</dt>
<dd v-if="accompanyingCourse.closingMotive">{{ accompanyingCourse.closingMotive.name.fr }}</dd>
<dt>{{ $t('course.remark') }}</dt>
<dd>{{ accompanyingCourse.remark }}</dd>
</dl>
</div>
</template>

View File

@ -10,7 +10,13 @@ const appMessages = {
remark: "Commentaire",
closing_motive: "Motif de clôture",
user: "TMS",
step: "Statut",
flags: "Indicateurs",
status: "État",
step: {
draft: "Brouillon",
open: "Ouvert",
active: "En file active"
},
emergency: "urgent",
confidential: "confidentiel",
},
@ -26,7 +32,6 @@ const appMessages = {
requestor: {
title: "Demandeur",
add_requestor: "Ajouter un demandeur",
//requestor: "Demandeur",
anonymous: "Anonyme",
type: "Type",
person_id: "id",