minor changes

This commit is contained in:
Mathieu Jaumotte 2022-01-28 09:56:20 +01:00
parent 39a7cecd24
commit 72cffd7a3d
6 changed files with 24 additions and 16 deletions

View File

@ -10,6 +10,14 @@
<i class="fa fa-home"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link"
:class="{'active': activeTab === 'MyNotifications'}"
@click="selectTab('MyNotifications')">
{{ $t('my_notifications.tab') }}
<tab-counter :count="state.notifications.count"></tab-counter>
</a>
</li>
<li class="nav-item">
<a class="nav-link"
:class="{'active': activeTab === 'MyAccompanyingCourses'}"
@ -43,14 +51,6 @@
<tab-counter :count="state.tasks.alert.count"></tab-counter>
</a>
</li>
<li class="nav-item">
<a class="nav-link"
:class="{'active': activeTab === 'MyNotifications'}"
@click="selectTab('MyNotifications')">
{{ $t('my_notifications.tab') }}
<tab-counter :count="state.notifications.count"></tab-counter>
</a>
</li>
<li class="nav-item loading ms-auto py-2" v-if="loading">
<i class="fa fa-circle-o-notch fa-spin fa-lg text-chill-gray" :title="$t('loading')"></i>
</li>

View File

@ -1,8 +1,14 @@
<template>
<div id="dashboards" class="row g-3">
<span v-if="noResults" class="chill-no-data-statement">{{ $t('no_dashboard') }}</span>
<div v-else id="dashboards" class="row g-3">
<div class="mbloc col col-sm-6 col-lg-4">
<div class="custom1">
Mon bloc personnalisé
x notifications non lues
x tâches en rappel
x ...
</div>
</div>
</div>
@ -10,7 +16,12 @@
<script>
export default {
name: "MyCustoms"
name: "MyCustoms",
computed: {
noResults() {
return true
},
}
}
</script>

View File

@ -3,7 +3,6 @@
<span v-if="noResults" class="chill-no-data-statement">{{ $t('no_data') }}</span>
<tab-table v-else>
<template v-slot:thead>
<th scope="col">#</th>
<th scope="col">{{ $t('Date') }}</th>
<th scope="col">{{ $t('From') }}</th>
<th scope="col">{{ $t('Subject') }}</th>
@ -11,7 +10,6 @@
</template>
<template v-slot:tbody>
<tr v-for="(n, i) in notifications.results" :key="`notify-${i}`">
<th scope="row">{{ i+1 }}</th>
<td>{{ $d(n.date.datetime, 'long') }}</td>
<td>{{ n.sender.text }}</td>
<td>

View File

@ -4,14 +4,12 @@
<span v-if="noResults" class="chill-no-data-statement">{{ $t('no_data') }}</span>
<tab-table v-else>
<template v-slot:thead>
<th scope="col">#</th>
<th scope="col">{{ $t('StartDate') }}</th>
<th scope="col">{{ $t('SocialAction') }}</th>
<th scope="col"></th>
</template>
<template v-slot:tbody>
<tr v-for="(w, i) in works.results" :key="`works-${i}`">
<th scope="row">{{ i+1 }}</th>
<td>{{ $d(w.startDate.datetime, 'short') }}</td>
<td>
<h4 class="badge-title">

View File

@ -32,7 +32,8 @@ const appMessages = {
the_action: "l'action",
StartDate: "Date d'ouverture",
SocialAction: "Action d'accompagnement",
no_data: "Aucun résultats"
no_data: "Aucun résultats",
no_dashboard: "Pas de tableaux de bord"
}
};

View File

@ -1,6 +1,6 @@
<div class="sticky-buttons">
<a class="btn btn-lg btn-circle btn-success" title="Appel téléphonique"
href="{{ path('chill_crud_aside_activity_new', {'type' : 7, 'duration' : '600', 'note' : 'Pas des remarques' }) }}">
href="{{ path('chill_crud_aside_activity_new', {'type' : 7, 'duration' : '600', 'note' : '' }) }}">
<i class="fa fa-phone fa-lg"></i>
</a>
<a class="btn btn-lg btn-circle btn-success" title="Activité annexe"