From 96bab36fde69fd0dc37ebd6f086a54610d919948 Mon Sep 17 00:00:00 2001 From: Arnaud Delcasse Date: Thu, 9 Oct 2025 17:58:16 +0200 Subject: [PATCH] remove diags stuff --- config.yaml | 29 ---- .../_partials/beneficiary-diags.html | 58 -------- web/layouts/beneficiaries/create-diag.html | 110 --------------- web/layouts/beneficiaries/display.html | 5 - web/layouts/diags/_partials/diags-files.html | 132 ------------------ web/layouts/diags/delete-diag.html | 32 ----- web/layouts/diags/display-diag.html | 80 ----------- web/layouts/diags/history-diags.html | 73 ---------- web/layouts/diags/home.html | 84 ----------- web/layouts/diags/update-diag.html | 117 ---------------- web/layouts/vehicles/create-booking-diag.html | 110 --------------- .../_partials/booking-diags.html | 56 -------- .../_partials/vehicle-diags.html | 56 -------- .../vehicles_management/booking-display.html | 3 - .../create-booking-diag.html | 116 --------------- .../create-vehicle-diag.html | 110 --------------- 16 files changed, 1171 deletions(-) delete mode 100644 web/layouts/beneficiaries/_partials/beneficiary-diags.html delete mode 100644 web/layouts/beneficiaries/create-diag.html delete mode 100644 web/layouts/diags/_partials/diags-files.html delete mode 100644 web/layouts/diags/delete-diag.html delete mode 100644 web/layouts/diags/display-diag.html delete mode 100644 web/layouts/diags/history-diags.html delete mode 100644 web/layouts/diags/home.html delete mode 100644 web/layouts/diags/update-diag.html delete mode 100644 web/layouts/vehicles/create-booking-diag.html delete mode 100644 web/layouts/vehicles_management/_partials/booking-diags.html delete mode 100644 web/layouts/vehicles_management/_partials/vehicle-diags.html delete mode 100644 web/layouts/vehicles_management/create-booking-diag.html delete mode 100644 web/layouts/vehicles_management/create-vehicle-diag.html diff --git a/config.yaml b/config.yaml index 0289ca5..112dc0e 100644 --- a/config.yaml +++ b/config.yaml @@ -132,14 +132,10 @@ views: booking_display: files: - web/layouts/vehicles/booking-display.html - - web/layouts/vehicles_management/_partials/booking-diags.html bookings_list: files: - web/layouts/vehicles_management/_partials/bookings-list.html - web/layouts/vehicles/bookings-list.html - create_booking_diag: - files: - - web/layouts/vehicles/create-booking-diag.html vehicles_management: overview: files: @@ -159,7 +155,6 @@ views: files: - web/layouts/vehicles_management/_partials/calendar.html - web/layouts/vehicles_management/fleet-display.html - - web/layouts/vehicles_management/_partials/vehicle-diags.html fleet_update: files: - web/layouts/_partials/address_autocomplete.html @@ -169,16 +164,9 @@ views: booking_display: files: - web/layouts/vehicles_management/booking-display.html - - web/layouts/vehicles_management/_partials/booking-diags.html delete_booking: files: - web/layouts/vehicles_management/delete-booking.html - create_vehicle_diag: - files: - - web/layouts/vehicles_management/create-vehicle-diag.html - create_booking_diag: - files: - - web/layouts/vehicles_management/create-booking-diag.html agenda: list: files: @@ -259,23 +247,6 @@ views: display_group: files: - web/layouts/group_module/display_group.html - diags: - list: - files: - - web/layouts/diags/home.html - display_diag: - files: - - web/layouts/diags/display-diag.html - - web/layouts/diags/_partials/diags-files.html - delete: - files: - - web/layouts/diags/delete-diag.html - update: - files: - - web/layouts/diags/update-diag.html - history: - files: - - web/layouts/diags/history-diags.html solidarity_transport: overview: diff --git a/web/layouts/beneficiaries/_partials/beneficiary-diags.html b/web/layouts/beneficiaries/_partials/beneficiary-diags.html deleted file mode 100644 index 4ed0fa2..0000000 --- a/web/layouts/beneficiaries/_partials/beneficiary-diags.html +++ /dev/null @@ -1,58 +0,0 @@ -{{define "beneficiary_diags"}} -{{ $calendarIcon := .IconSet.Icon "hero:outline/calendar" "h-6 w-6" }} -{{ $carIcon := .IconSet.Icon "tabler-icons:car" "h-6 w-6"}} -
- -
- {{ $diagCount := len .ViewState.diags }} -
    - {{if eq $diagCount 0}} -
  • -

    Aucun diagnostique effectué pour le moment.

    -
  • - {{else}} - {{range .ViewState.diags}} - {{ $diags := .ID }} - {{if eq .Deleted false}} -
  • -
    - {{.Name}} -
    -
    -

    {{(timeFrom .Diagdate).Format "02/01/2006"}}

    -
    - - - -
  • - {{end}} - {{if eq .Deleted true}} -
  • -
    -

    {{.Name}}

    -
    -
    -

    {{(timeFrom .Diagdate).Format "02/01/2006"}}

    -
    -
    -

    Ce diagnostic a été retiré

    -
    -
  • - {{end}} - {{end}} - {{end}} -
-
-
-{{end}} \ No newline at end of file diff --git a/web/layouts/beneficiaries/create-diag.html b/web/layouts/beneficiaries/create-diag.html deleted file mode 100644 index d91e96e..0000000 --- a/web/layouts/beneficiaries/create-diag.html +++ /dev/null @@ -1,110 +0,0 @@ -{{define "content"}} - -
-

Ajouter un diagnostic

-
- -
-
-
-
-
-

Informations obligatoires

-

Informations obligatoires - pour créer un diagnostic dans PARCOURSMOB

-
-
-
-
- - -
-
-
-
-
- - -
-

Certains champs de sont pas valides.

- - - - -
-
-
-{{end}} \ No newline at end of file diff --git a/web/layouts/beneficiaries/display.html b/web/layouts/beneficiaries/display.html index d47130e..670188d 100644 --- a/web/layouts/beneficiaries/display.html +++ b/web/layouts/beneficiaries/display.html @@ -200,11 +200,6 @@ class="whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm" :class="tab == 'organizations' ? 'border-co-blue text-co-blue' : 'border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300'"> Gestionnaires - - diff --git a/web/layouts/diags/_partials/diags-files.html b/web/layouts/diags/_partials/diags-files.html deleted file mode 100644 index f3f2e5e..0000000 --- a/web/layouts/diags/_partials/diags-files.html +++ /dev/null @@ -1,132 +0,0 @@ -{{define "diags_files"}} -
- {{if eq (len .ViewState.documents) 0}} -

Aucun document

- {{end}} - - {{if gt (len .ViewState.documents) 0}} - -
- - - - - - - - - - - {{range .ViewState.documents}} - - - - - - - {{end}} - - - - -
Type - Actions -
-
- {{index $.ViewState.file_types_map .Metadata.Type}} -
-
{{.Metadata.Name}}{{.LastModified.Format "02/01/2006"}} - - - -
-
- - {{end}} -

Ajouter un document

-
-
-
- - -
-
- - -
-
- -
-
- {{.IconSet.Icon "hero:outline/folder-plus" "mx-auto h-12 w-12 text-gray-400"}} -
- - - - -
-

Jusqu'à 10MB

-

-
-
-
-
- -
-
-{{end}} diff --git a/web/layouts/diags/delete-diag.html b/web/layouts/diags/delete-diag.html deleted file mode 100644 index eba96c1..0000000 --- a/web/layouts/diags/delete-diag.html +++ /dev/null @@ -1,32 +0,0 @@ -{{define "content"}} -
-
- -
- -
-
- -
-
-
- {{.IconSet.Icon "hero:outline/information-circle" "h-6 w-6"}} -
-
- -
-

Voulez-vous vraiment retirer ce dignostique ?

-
-
-
-
- Annuler - -
-
-
-
-
- -
-{{end}} \ No newline at end of file diff --git a/web/layouts/diags/display-diag.html b/web/layouts/diags/display-diag.html deleted file mode 100644 index cfc5718..0000000 --- a/web/layouts/diags/display-diag.html +++ /dev/null @@ -1,80 +0,0 @@ -{{ define "content" }} -
-
-
-
-

{{.ViewState.diag.Name}}

-
- {{$diag := .ViewState.diag.ID}} -
-
- {{if eq .ViewState.diag.Deleted false}} - - - {{end}} -
-
-
-
-
-
-
-

Informations

-

Informations sur le diagnostic.

-
-
-
-
-
Date du diagnostic
-
{{(timeFrom .ViewState.diag.Diagdate).Format "02/01/2006"}}
-
- {{if eq .ViewState.diag.Namespace "parcoursmob_beneficiaries"}} -
-
Type
-
Diagnostic personnelle
-
- {{end}} - {{if eq .ViewState.diag.Namespace "parcoursmob_vehicles"}} -
-
Type
-
Diagnostic automobile
-
- {{end}} - {{if eq .ViewState.diag.Namespace "parcoursmob_bookings"}} -
-
Type
-
Diagnostic véhicule réservé
-
- {{end}} - -
-
-
-
-
-
-
-
-

Documents

-
-
{{template "diags_files" .}}
-
-
-
-
-
-{{ end }} \ No newline at end of file diff --git a/web/layouts/diags/history-diags.html b/web/layouts/diags/history-diags.html deleted file mode 100644 index a295c3d..0000000 --- a/web/layouts/diags/history-diags.html +++ /dev/null @@ -1,73 +0,0 @@ -{{define "content"}} -
-

Diagnostics retirés

- -
-
-

-
- -
-
- -
-
-
-
-
- - - - - - - - - {{range .ViewState.diags}} - {{if eq .Deleted true}} - - - - - - - - {{end}} - {{end}} - - -
- Nom du diagnostic - - Type - - Actions -
- -
{{.Name}}
-
- {{if eq .Namespace "parcoursmob_beneficiaries"}} -
Diagnostic personnelle
- {{end}} - {{if eq .Namespace "parcoursmob_vehicles"}} -
Diagnostic automobile
- {{end}} - {{if eq .Namespace "parcoursmob_bookings"}} -
Diagnostic véhicule réservé
- {{end}} -
- Voir -
-
-
-
-
-
-{{end}} \ No newline at end of file diff --git a/web/layouts/diags/home.html b/web/layouts/diags/home.html deleted file mode 100644 index ae7a699..0000000 --- a/web/layouts/diags/home.html +++ /dev/null @@ -1,84 +0,0 @@ -{{define "content"}} -
-

Diagnostics effectués

- -
-
-

-
- -
-
- -
-
-
-
-
- - - - - - - - - - {{range .ViewState.diags}} - - - - - - - - - - {{end}} - - -
- Nom du diagnostic - - Type - - Date - - Actions -
-
{{.Name}}
-
- {{if eq .Namespace "parcoursmob_beneficiaries"}} -
Diagnostic personnelle
- {{end}} - {{if eq .Namespace "parcoursmob_vehicles"}} -
Diagnostic automobile
- {{end}} - {{if eq .Namespace "parcoursmob_bookings"}} -
Diagnostic véhicule réservé
- {{end}} -
-
{{(timeFrom .Diagdate).Format "02/01/2006"}}
-
- {{if eq .Deleted true}} -
Diagnostic retiré
- {{end}} -
- - - -
-
-
-
-
-
-{{end}} \ No newline at end of file diff --git a/web/layouts/diags/update-diag.html b/web/layouts/diags/update-diag.html deleted file mode 100644 index 1c53e9e..0000000 --- a/web/layouts/diags/update-diag.html +++ /dev/null @@ -1,117 +0,0 @@ -{{define "content"}} - -
-

Éditer un diagnostique

-
- -
-
-
-
-
-

Informations obligatoires

-

Informations obligatoires - pour éditer un diagnostique dans PARCOURSMOB

-
-
-
-
- - -
-
-
-
-
- -
-
-
-

Schéma JSON

-

Schéma JSON pour le diagnostique

-
-
-
-
- - -
-
-
-
-
-
-
-
-

Schéma UI

-

Schéma UI pour le diagnostique

-
-
-
-
- - -
-
-
-
-
-
-

Certains champs de sont pas valides.

- - - - -
-
-
-{{end}} \ No newline at end of file diff --git a/web/layouts/vehicles/create-booking-diag.html b/web/layouts/vehicles/create-booking-diag.html deleted file mode 100644 index 8fd6d26..0000000 --- a/web/layouts/vehicles/create-booking-diag.html +++ /dev/null @@ -1,110 +0,0 @@ -{{define "content"}} - -
-

Ajouter un diagnostic

-
- -
-
-
-
-
-

Informations obligatoires

-

Informations obligatoires - pour créer un diagnostic dans PARCOURSMOB

-
-
-
-
- - -
-
-
-
-
- - -
-

Certains champs de sont pas valides.

- - - - -
-
-
-{{end}} \ No newline at end of file diff --git a/web/layouts/vehicles_management/_partials/booking-diags.html b/web/layouts/vehicles_management/_partials/booking-diags.html deleted file mode 100644 index d330481..0000000 --- a/web/layouts/vehicles_management/_partials/booking-diags.html +++ /dev/null @@ -1,56 +0,0 @@ -{{define "booking_diags"}} -{{ $calendarIcon := .IconSet.Icon "hero:outline/calendar" "h-6 w-6" }} -{{ $carIcon := .IconSet.Icon "tabler-icons:car" "h-6 w-6"}} -
- -
- {{ $diagCount := len .ViewState.diags }} -
    - {{if eq $diagCount 0}} -
  • -

    Aucun diagnostique effectué pour le moment.

    -
  • - {{else}} - {{range .ViewState.diags}} - {{ $diags := .ID }} - {{if eq .Deleted false}} -
  • -
    - {{.Name}} -
    -
    -

    {{(timeFrom .Diagdate).Format "02/01/2006"}}

    -
    - - - -
  • - {{end}} - {{if eq .Deleted true}} -
  • -
    -

    {{.Name}}

    -
    -
    -

    {{(timeFrom .Diagdate).Format "02/01/2006"}}

    -
    -
    -

    Ce diagnostique a été retiré

    -
    -
  • - {{end}} - {{end}} - {{end}} -
-
-
-{{end}} \ No newline at end of file diff --git a/web/layouts/vehicles_management/_partials/vehicle-diags.html b/web/layouts/vehicles_management/_partials/vehicle-diags.html deleted file mode 100644 index 12beeaf..0000000 --- a/web/layouts/vehicles_management/_partials/vehicle-diags.html +++ /dev/null @@ -1,56 +0,0 @@ -{{define "vehicle_diags"}} -{{ $calendarIcon := .IconSet.Icon "hero:outline/calendar" "h-6 w-6" }} -{{ $carIcon := .IconSet.Icon "tabler-icons:car" "h-6 w-6"}} -
- -
- {{ $diagCount := len .ViewState.diags }} -
    - {{if eq $diagCount 0}} -
  • -

    Aucun diagnostique effectué pour le moment.

    -
  • - {{else}} - {{range .ViewState.diags}} - {{ $diags := .ID }} - {{if eq .Deleted false}} -
  • -
    - {{.Name}} -
    -

    {{(timeFrom .Diagdate).Format "02/01/2006"}}

    -
    -
    - - - -
  • - {{end}} - {{if eq .Deleted true}} -
  • -
    -

    {{.Name}}

    -
    -
    -

    {{(timeFrom .Diagdate).Format "02/01/2006"}}

    -
    -
    -

    Ce diagnostique a été retiré

    -
    -
  • - {{end}} - {{end}} - {{end}} -
-
-
-{{end}} \ No newline at end of file diff --git a/web/layouts/vehicles_management/booking-display.html b/web/layouts/vehicles_management/booking-display.html index 803fef9..29b7560 100644 --- a/web/layouts/vehicles_management/booking-display.html +++ b/web/layouts/vehicles_management/booking-display.html @@ -126,9 +126,6 @@
-
diff --git a/web/layouts/vehicles_management/create-booking-diag.html b/web/layouts/vehicles_management/create-booking-diag.html deleted file mode 100644 index 8285297..0000000 --- a/web/layouts/vehicles_management/create-booking-diag.html +++ /dev/null @@ -1,116 +0,0 @@ -{{define "content"}} - -
-

Ajouter un diagnostic

-
- -
-
-
-
-
-

Informations obligatoires

-

Informations obligatoires - pour créer un diagnostic dans PARCOURSMOB

-
-
-
-
- - -
-
-
-
-
- -
-
-
-

Schéma JSON

-

Schéma JSON pour le diagnostic

-
-
-
-
- - -
-
-
-
-
-
-
-
-

Schéma UI

-

Schéma UI pour le diagnostic

-
-
-
-
- - -
-
-
-
-
-
-

Certains champs de sont pas valides.

- - - - -
-
-
-{{end}} \ No newline at end of file diff --git a/web/layouts/vehicles_management/create-vehicle-diag.html b/web/layouts/vehicles_management/create-vehicle-diag.html deleted file mode 100644 index dc234af..0000000 --- a/web/layouts/vehicles_management/create-vehicle-diag.html +++ /dev/null @@ -1,110 +0,0 @@ -{{define "content"}} - -
-

Ajouter un diagnostic

-
- -
-
-
-
-
-

Informations obligatoires

-

Informations obligatoires - pour créer un diagnostic dans PARCOURSMOB

-
-
-
-
- - -
-
-
-
-
- - -
-

Certains champs de sont pas valides.

- - - - -
-
-
-{{end}} \ No newline at end of file