feat(#173): icône arrêt maladie thermo_croix + Validée/Refusée
Remplace l’ancienne icône maladie ; statut féminin réservé aux demandes de congés (pas d’absence ni d’arrêt maladie). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 291 KiB |
@@ -111,7 +111,7 @@ class CarteBulle {
|
|||||||
case 'conge_am':
|
case 'conge_am':
|
||||||
return 'assets/images/valise.png';
|
return 'assets/images/valise.png';
|
||||||
case 'arret_maladie_am':
|
case 'arret_maladie_am':
|
||||||
return 'assets/images/cartes/icon_carte_maladie.png';
|
return 'assets/images/thermo_croix.png';
|
||||||
case 'absence_enfant':
|
case 'absence_enfant':
|
||||||
case 'absence_enfant_modif':
|
case 'absence_enfant_modif':
|
||||||
return 'assets/images/sac_lapin.png';
|
return 'assets/images/sac_lapin.png';
|
||||||
|
|||||||
@@ -590,13 +590,13 @@ class _BulleTile extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
if (card.statut == CarteStatut.refusee) ...[
|
if (card.isCongeAm &&
|
||||||
|
card.statut == CarteStatut.refusee &&
|
||||||
|
card.lastRefuseComment != null &&
|
||||||
|
card.lastRefuseComment!.trim().isNotEmpty) ...[
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
Text(
|
Text(
|
||||||
card.lastRefuseComment != null &&
|
'Motif : ${card.lastRefuseComment}',
|
||||||
card.lastRefuseComment!.trim().isNotEmpty
|
|
||||||
? 'Refusé — ${card.lastRefuseComment}'
|
|
||||||
: 'Refusé',
|
|
||||||
maxLines: 2,
|
maxLines: 2,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
style: GoogleFonts.merriweather(
|
style: GoogleFonts.merriweather(
|
||||||
@@ -605,7 +605,8 @@ class _BulleTile extends StatelessWidget {
|
|||||||
color: encre.ink,
|
color: encre.ink,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
] else if (card.statut == CarteStatut.ouverte &&
|
] else if (card.isCongeAm &&
|
||||||
|
card.statut == CarteStatut.ouverte &&
|
||||||
card.isCreator) ...[
|
card.isCreator) ...[
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
Text(
|
Text(
|
||||||
@@ -667,13 +668,15 @@ class _BulleTile extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
else if (card.statut == CarteStatut.traitee ||
|
else if (card.isCongeAm &&
|
||||||
card.statut == CarteStatut.refusee)
|
(card.statut == CarteStatut.traitee ||
|
||||||
|
card.statut == CarteStatut.refusee))
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Text(
|
child: Text(
|
||||||
|
// Accordé à « Demande de congés ».
|
||||||
card.statut == CarteStatut.refusee
|
card.statut == CarteStatut.refusee
|
||||||
? 'Refusé'
|
? 'Refusée'
|
||||||
: 'Validé',
|
: 'Validée',
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: GoogleFonts.merienda(
|
style: GoogleFonts.merienda(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
@@ -684,8 +687,9 @@ class _BulleTile extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (card.peutRepondre) const SizedBox(width: 8),
|
if (card.peutRepondre) const SizedBox(width: 8),
|
||||||
if (!(card.statut == CarteStatut.traitee ||
|
if (!(card.isCongeAm &&
|
||||||
card.statut == CarteStatut.refusee))
|
(card.statut == CarteStatut.traitee ||
|
||||||
|
card.statut == CarteStatut.refusee)))
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
InkWell(
|
InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
|
|||||||
Reference in New Issue
Block a user