mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
improve AccompanyingCourse ux design
This commit is contained in:
parent
199e5a73d8
commit
8bd75429c1
@ -24,7 +24,6 @@ import Referrer from './components/Referrer.vue';
|
|||||||
import Resources from './components/Resources.vue';
|
import Resources from './components/Resources.vue';
|
||||||
import Comment from './components/Comment.vue';
|
import Comment from './components/Comment.vue';
|
||||||
import Confirm from './components/Confirm.vue';
|
import Confirm from './components/Confirm.vue';
|
||||||
//import Test from './components/Test.vue';
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'App',
|
name: 'App',
|
||||||
@ -50,12 +49,13 @@ export default {
|
|||||||
}
|
}
|
||||||
div.vue-component {
|
div.vue-component {
|
||||||
h2 {
|
h2 {
|
||||||
|
margin-left: 0.7em;
|
||||||
position: relative;
|
position: relative;
|
||||||
&:before {
|
&:before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
content: "\f1dd";
|
content: "\f192";
|
||||||
font-family: "ForkAwesome";
|
font-family: "ForkAwesome";
|
||||||
color: lightgrey;
|
color: #718596ab;
|
||||||
left: -28px;
|
left: -28px;
|
||||||
top: 4px;
|
top: 4px;
|
||||||
}
|
}
|
||||||
@ -64,12 +64,12 @@ export default {
|
|||||||
top: -2em;
|
top: -2em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
padding: 1.5em 1em;
|
padding: 0.8em 0em;
|
||||||
margin: 2em 0;
|
margin: 2em 0;
|
||||||
border: 1px solid lightgrey;
|
border: 1px dotted #718596ab;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
border-left: 1px dotted lightgrey;
|
border-left: 1px dotted #718596ab;
|
||||||
border-right: 1px dotted lightgrey;
|
border-right: 1px dotted #718596ab;
|
||||||
/*
|
/*
|
||||||
position: relative;
|
position: relative;
|
||||||
&:before {
|
&:before {
|
||||||
@ -85,5 +85,10 @@ export default {
|
|||||||
dd {
|
dd {
|
||||||
margin-left: 1em;
|
margin-left: 1em;
|
||||||
}
|
}
|
||||||
|
& > div {
|
||||||
|
margin: 1em 3em 0;
|
||||||
|
}
|
||||||
|
table {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -2,9 +2,16 @@
|
|||||||
|
|
||||||
<div class="vue-component" style="display: none;">
|
<div class="vue-component" style="display: none;">
|
||||||
<dl>
|
<dl>
|
||||||
<dt>{{ $t('course.id') }}</dt>
|
<dt>{{ $t('course.id') }}</dt>
|
||||||
<dd>{{ accompanyingCourse.id }}</dd>
|
<dd>{{ accompanyingCourse.id }}</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
<dl v-if="accompanyingCourse.closingDate">
|
||||||
|
<dt>{{ $t('course.closing_date') }}</dt>
|
||||||
|
<dd>{{ $d(accompanyingCourse.closingDate.datetime, 'short') }}</dd>
|
||||||
|
|
||||||
|
<dt>{{ $t('course.closing_motive') }}</dt>
|
||||||
|
<dd v-if="accompanyingCourse.closingMotive">{{ accompanyingCourse.closingMotive.name.fr }}</dd>
|
||||||
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<teleport to="#header-accompanying_course-name #banner-flags">
|
<teleport to="#header-accompanying_course-name #banner-flags">
|
||||||
|
@ -92,6 +92,6 @@ export default {
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
div.vue-component > div {
|
div.vue-component > div {
|
||||||
margin: 1em;
|
//margin: 1em;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -13,24 +13,16 @@
|
|||||||
{{ $t('confirm.text_active') }}
|
{{ $t('confirm.text_active') }}
|
||||||
<span class="badge badge-primary">{{ $t('course.step.active') }}</span>
|
<span class="badge badge-primary">{{ $t('course.step.active') }}</span>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<ul class="record_actions">
|
||||||
|
<li>
|
||||||
|
<button class="sc-button bt-save" @click="modal.showModal = true">
|
||||||
|
{{ $t('confirm.ok') }}
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<dl v-if="accompanyingCourse.closingDate">
|
|
||||||
<dt>{{ $t('course.closing_date') }}</dt>
|
|
||||||
<dd>{{ $d(accompanyingCourse.closingDate.datetime, 'short') }}</dd>
|
|
||||||
|
|
||||||
<dt>{{ $t('course.closing_motive') }}</dt>
|
|
||||||
<dd v-if="accompanyingCourse.closingMotive">{{ accompanyingCourse.closingMotive.name.fr }}</dd>
|
|
||||||
</dl>
|
|
||||||
|
|
||||||
<ul class="record_actions">
|
|
||||||
<li>
|
|
||||||
<button class="sc-button bt-save" @click="modal.showModal = true">
|
|
||||||
{{ $t('confirm.ok') }}
|
|
||||||
</button>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<teleport to="body">
|
<teleport to="body">
|
||||||
<modal v-if="modal.showModal" :modalDialogClass="modal.modalDialogClass" @close="modal.showModal = false">
|
<modal v-if="modal.showModal" :modalDialogClass="modal.modalDialogClass" @close="modal.showModal = false">
|
||||||
<template v-slot:header>
|
<template v-slot:header>
|
||||||
@ -83,6 +75,6 @@ export default {
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
div.vue-component > div {
|
div.vue-component > div {
|
||||||
margin: 1em;
|
//margin: 1em;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -1,8 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<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>
|
||||||
<label>{{ $tc('persons_associated.counter', counter) }}</label>
|
|
||||||
<table class="rounded">
|
<div>
|
||||||
|
<label>{{ $tc('persons_associated.counter', counter) }}</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<table class="rounded" v-if="participations.length > 0">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="chill-orange">{{ $t('persons_associated.firstname') }}</th>
|
<th class="chill-orange">{{ $t('persons_associated.firstname') }}</th>
|
||||||
@ -23,14 +27,16 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<add-persons
|
<div>
|
||||||
buttonTitle="persons_associated.add_persons"
|
<add-persons
|
||||||
modalTitle="add_persons.title"
|
buttonTitle="persons_associated.add_persons"
|
||||||
v-bind:key="addPersons.key"
|
modalTitle="add_persons.title"
|
||||||
v-bind:options="addPersons.options"
|
v-bind:key="addPersons.key"
|
||||||
@addNewPersons="addNewPersons"
|
v-bind:options="addPersons.options"
|
||||||
ref="addPersons"> <!-- to cast child method -->
|
@addNewPersons="addNewPersons"
|
||||||
</add-persons>
|
ref="addPersons"> <!-- to cast child method -->
|
||||||
|
</add-persons>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -43,22 +43,28 @@
|
|||||||
<dt>{{ $t('requestor.location') }}</dt>
|
<dt>{{ $t('requestor.location') }}</dt>
|
||||||
<dd>{{ accompanyingCourse.requestor.address.postcode.name }}</dd>
|
<dd>{{ accompanyingCourse.requestor.address.postcode.name }}</dd>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<ul class="record_actions">
|
||||||
|
<li>
|
||||||
|
<button class="sc-button bt-remove"
|
||||||
|
:title="$t('action.remove')"
|
||||||
|
@click="removeRequestor">
|
||||||
|
{{ $t('action.remove') }}
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<add-persons v-if="accompanyingCourse.requestor === null"
|
||||||
|
buttonTitle="requestor.add_requestor"
|
||||||
|
modalTitle="requestor.add_requestor"
|
||||||
|
v-bind:key="addPersons.key"
|
||||||
|
v-bind:options="addPersons.options"
|
||||||
|
@addNewPersons="addNewPersons"
|
||||||
|
ref="addPersons"> <!-- to cast child method -->
|
||||||
|
</add-persons>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button v-if="accompanyingCourse.requestor !== null"
|
|
||||||
class="sc-button bt-remove"
|
|
||||||
:title="$t('action.remove')"
|
|
||||||
@click="removeRequestor">
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<add-persons v-if="accompanyingCourse.requestor === null"
|
|
||||||
buttonTitle="requestor.add_requestor"
|
|
||||||
modalTitle="requestor.add_requestor"
|
|
||||||
v-bind:key="addPersons.key"
|
|
||||||
v-bind:options="addPersons.options"
|
|
||||||
@addNewPersons="addNewPersons"
|
|
||||||
ref="addPersons"> <!-- to cast child method -->
|
|
||||||
</add-persons>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -3,8 +3,11 @@
|
|||||||
|
|
||||||
<h2><a name="section-50"></a>{{ $t('resources.title')}}</h2>
|
<h2><a name="section-50"></a>{{ $t('resources.title')}}</h2>
|
||||||
|
|
||||||
<label>{{ $tc('resources.counter', counter) }}</label>
|
<div>
|
||||||
<table class="rounded">
|
<label>{{ $tc('resources.counter', counter) }}</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<table class="rounded" v-if="resources.length > 0">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="chill-orange">{{ $t('resources.text') }}</th>
|
<th class="chill-orange">{{ $t('resources.text') }}</th>
|
||||||
@ -22,14 +25,16 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<add-persons
|
<div>
|
||||||
buttonTitle="resources.add_resources"
|
<add-persons
|
||||||
modalTitle="resources.add_resources"
|
buttonTitle="resources.add_resources"
|
||||||
v-bind:key="addPersons.key"
|
modalTitle="resources.add_resources"
|
||||||
v-bind:options="addPersons.options"
|
v-bind:key="addPersons.key"
|
||||||
@addNewPersons="addNewPersons"
|
v-bind:options="addPersons.options"
|
||||||
ref="addPersons"> <!-- to cast child method -->
|
@addNewPersons="addNewPersons"
|
||||||
</add-persons>
|
ref="addPersons"> <!-- to cast child method -->
|
||||||
|
</add-persons>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="vue-component">
|
<div class="vue-component">
|
||||||
<h2><a name="section-30"></a>{{ $t('social_issue.title') }}</h2>
|
<h2><a name="section-30"></a>{{ $t('social_issue.title') }}</h2>
|
||||||
|
|
||||||
<div>
|
<div class="my-4">
|
||||||
<!--label for="selectIssues">{{ $t('social_issue.label') }}</label-->
|
<!--label for="selectIssues">{{ $t('social_issue.label') }}</label-->
|
||||||
<VueMultiselect
|
<VueMultiselect
|
||||||
name="selectIssues"
|
name="selectIssues"
|
||||||
@ -55,6 +55,6 @@ export default {
|
|||||||
<style src="vue-multiselect/dist/vue-multiselect.css"></style>
|
<style src="vue-multiselect/dist/vue-multiselect.css"></style>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
div.vue-component > div {
|
div.vue-component > div {
|
||||||
margin: 3em;
|
//margin: 3em;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -28,7 +28,7 @@ const appMessages = {
|
|||||||
},
|
},
|
||||||
persons_associated: {
|
persons_associated: {
|
||||||
title: "Usagers concernés",
|
title: "Usagers concernés",
|
||||||
counter: "Pas d'usager | 1 usager | {count} usagers",
|
counter: "Il n'y a pas encore d'usager | 1 usager | {count} usagers",
|
||||||
firstname: "Prénom",
|
firstname: "Prénom",
|
||||||
lastname: "Nom",
|
lastname: "Nom",
|
||||||
startdate: "Date d'entrée",
|
startdate: "Date d'entrée",
|
||||||
@ -61,7 +61,7 @@ const appMessages = {
|
|||||||
},
|
},
|
||||||
resources: {
|
resources: {
|
||||||
title: "Interlocuteurs privilégiés",
|
title: "Interlocuteurs privilégiés",
|
||||||
counter: "Pas d'interlocuteur | 1 interlocuteur | {count} interlocuteurs",
|
counter: "Il n'y a pas encore d'interlocuteur | 1 interlocuteur | {count} interlocuteurs",
|
||||||
text: "Dénomination",
|
text: "Dénomination",
|
||||||
description: "Description",
|
description: "Description",
|
||||||
add_resources: "Ajouter des interlocuteurs",
|
add_resources: "Ajouter des interlocuteurs",
|
||||||
|
@ -1,7 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<button class="sc-button bt-create centered mt-4" @click="openModal">
|
<ul class="record_actions">
|
||||||
{{ $t(buttonTitle) }}
|
<li>
|
||||||
</button>
|
<button class="sc-button bt-create" @click="openModal">
|
||||||
|
{{ $t(buttonTitle) }}
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
<teleport to="body">
|
<teleport to="body">
|
||||||
<modal v-if="modal.showModal"
|
<modal v-if="modal.showModal"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user