FIX des bugs du merge request 884

This commit is contained in:
Boris Waaub
2025-09-30 13:49:04 +00:00
committed by Julien Fastré
parent 056e2dcc5f
commit b43aeebc3c
15 changed files with 127 additions and 81 deletions

View File

@@ -2,6 +2,13 @@
<div class="card mb-4">
<div class="card-body">
<form @submit.prevent="submitForm">
<div class="mb-3">
<label class="form-label pe-2" for="emergency">
{{ trans(CHILL_TICKET_LIST_FILTER_EMERGENCY) }}
</label>
<emergency-toggle-component v-model="isEmergency" class="float-end" />
</div>
<!-- Sélection du motif -->
<div class="mb-3">
<label class="form-label">{{
@@ -12,16 +19,7 @@
:motives="motives"
/>
</div>
<!-- Attribution des tickets -->
<div class="mb-3">
<label class="form-label">
{{ trans(CHILL_TICKET_TICKET_ADD_COMMENT_TITLE) }}
</label>
<addressee-selector-component
v-model="ticketForm.addressees"
:suggested="userGroups"
/>
</div>
<!-- Sélection des personnes -->
<div class="row mb-3">
<div class="col-md-6">
@@ -60,23 +58,17 @@
:motive="ticketForm.motive ? ticketForm.motive : null"
/>
</div>
<!-- Attribution des tickets -->
<div class="mb-3">
<label class="form-label pe-2" for="emergency">
{{ trans(CHILL_TICKET_LIST_FILTER_EMERGENCY) }}
<label class="form-label">
{{ trans(CHILL_TICKET_TICKET_ADD_ADDRESSEE_TITLE) }}
</label>
<toggle-component
v-model="isEmergency"
:on-label="trans(CHILL_TICKET_LIST_FILTER_EMERGENCY)"
:off-label="trans(CHILL_TICKET_LIST_FILTER_EMERGENCY)"
:classColor="{
on: 'bg-warning',
off: 'bg-secondary',
}"
id="emergency"
class="float-end"
<addressee-selector-component
v-model="ticketForm.addressees"
:suggested="userGroups"
/>
</div>
<!-- Boutons d'action -->
<div class="d-flex justify-content-end gap-2 mt-4">
<button type="button" class="btn btn-secondary" @click="resetForm">
@@ -100,8 +92,7 @@ import MotiveSelectorComponent from "./Motive/MotiveSelectorComponent.vue";
import CommentEditorComponent from "./Comment/CommentEditorComponent.vue";
import PersonsSelectorComponent from "./Person/PersonsSelectorComponent.vue";
import AddresseeSelectorComponent from "./Addressee/AddresseeSelectorComponent.vue";
import ToggleComponent from "../../TicketList/components/ToggleComponent.vue";
import EmergencyToggleComponent from "./Emergency/EmergencyToggleComponent.vue";
// Types
import {
Motive,
@@ -124,6 +115,7 @@ import {
CHILL_TICKET_TICKET_SET_PERSONS_CALLER_LABEL,
CHILL_TICKET_TICKET_SET_PERSONS_USER_LABEL,
CHILL_TICKET_LIST_FILTER_EMERGENCY,
CHILL_TICKET_TICKET_ADD_ADDRESSEE_TITLE,
} from "translator";
import { UserGroup, UserGroupOrUser } from "ChillMainAssets/types";