mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-03-11 00:17:45 +00:00
FIX des bugs du merge request 884
This commit is contained in:
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user