diff --git a/config.yaml b/config.yaml index 0b95e1c..7e23f78 100644 --- a/config.yaml +++ b/config.yaml @@ -29,7 +29,11 @@ views: - web/layouts/beneficiaries/_partials/beneficiary-events.html - web/layouts/beneficiaries/_partials/beneficiary-files.html - web/layouts/beneficiaries/_partials/beneficiary-organizations.html + - web/layouts/beneficiaries/_partials/beneficiary-diags.html - web/layouts/beneficiaries/display.html + create_diag: + files: + - web/layouts/beneficiaries/create-diag.html update: files: - web/layouts/_partials/address_autocomplete.html @@ -59,10 +63,14 @@ 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: @@ -82,6 +90,7 @@ 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 @@ -90,9 +99,16 @@ 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: @@ -168,6 +184,19 @@ 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 + delete: + files: + - web/layouts/diags/delete-diag.html + update: + files: + - web/layouts/diags/update-diag.html administration: home: diff --git a/web/layouts/beneficiaries/_partials/beneficiary-diags.html b/web/layouts/beneficiaries/_partials/beneficiary-diags.html new file mode 100644 index 0000000..e80c560 --- /dev/null +++ b/web/layouts/beneficiaries/_partials/beneficiary-diags.html @@ -0,0 +1,51 @@ +{{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 }} + +
+
+{{end}} \ No newline at end of file diff --git a/web/layouts/beneficiaries/create-diag.html b/web/layouts/beneficiaries/create-diag.html new file mode 100644 index 0000000..175968a --- /dev/null +++ b/web/layouts/beneficiaries/create-diag.html @@ -0,0 +1,116 @@ +{{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/beneficiaries/display.html b/web/layouts/beneficiaries/display.html index 3be8ddf..141e8a4 100644 --- a/web/layouts/beneficiaries/display.html +++ b/web/layouts/beneficiaries/display.html @@ -137,6 +137,11 @@ 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 + + + Diagnostics @@ -145,6 +150,7 @@
{{template "beneficiary_files" .}}
{{template "beneficiary_notes" .}}
{{template "beneficiary_organizations" .}}
+
{{template "beneficiary_diags" .}}
diff --git a/web/layouts/diags/delete-diag.html b/web/layouts/diags/delete-diag.html new file mode 100644 index 0000000..eba96c1 --- /dev/null +++ b/web/layouts/diags/delete-diag.html @@ -0,0 +1,32 @@ +{{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 new file mode 100644 index 0000000..39bf8cf --- /dev/null +++ b/web/layouts/diags/display-diag.html @@ -0,0 +1,63 @@ +{{ define "content" }} +
+
+
+
+

{{.ViewState.diag.Name}}

+
+ {{$diag := .ViewState.diag.ID}} +
+
+ + + +
+
+
+
+
+
+
+

Informations

+

Informations sur le diagnostic.

+
+
+
+ {{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}} + {{if .ViewState.diag.Json_schema}} +
+
JSON_schema
+
{{.ViewState.diag.Json_schema}}
+
+ {{end}} + {{if .ViewState.diag.Ui_schema}} +
+
UI_schema
+
{{.ViewState.diag.Ui_schema}}
+
+ {{end}} +
+
+
+
+{{ end }} \ No newline at end of file diff --git a/web/layouts/diags/home.html b/web/layouts/diags/home.html new file mode 100644 index 0000000..451c096 --- /dev/null +++ b/web/layouts/diags/home.html @@ -0,0 +1,74 @@ +{{define "content"}} + + +
+
+
+
+
+ + + + + + + + + {{range .ViewState.diags}} + {{if eq .Deleted false}} + + + + + + + + {{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/update-diag.html b/web/layouts/diags/update-diag.html new file mode 100644 index 0000000..7c02b72 --- /dev/null +++ b/web/layouts/diags/update-diag.html @@ -0,0 +1,117 @@ +{{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/booking-display.html b/web/layouts/vehicles/booking-display.html index 21d19c3..64f45dc 100644 --- a/web/layouts/vehicles/booking-display.html +++ b/web/layouts/vehicles/booking-display.html @@ -66,6 +66,11 @@
+
+
+ {{template "booking_diags" .}} +
+
diff --git a/web/layouts/vehicles/create-booking-diag.html b/web/layouts/vehicles/create-booking-diag.html new file mode 100644 index 0000000..bbe3220 --- /dev/null +++ b/web/layouts/vehicles/create-booking-diag.html @@ -0,0 +1,116 @@ +{{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/_partials/booking-diags.html b/web/layouts/vehicles_management/_partials/booking-diags.html new file mode 100644 index 0000000..2e1ad05 --- /dev/null +++ b/web/layouts/vehicles_management/_partials/booking-diags.html @@ -0,0 +1,49 @@ +{{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}} +
    + +
  • + {{end}} + {{if eq .Deleted true}} +
  • +
    +

    {{.Name}}

    +
    +
    +

    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 new file mode 100644 index 0000000..0b3b42d --- /dev/null +++ b/web/layouts/vehicles_management/_partials/vehicle-diags.html @@ -0,0 +1,49 @@ +{{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}} +
    + +
  • + {{end}} + {{if eq .Deleted true}} +
  • +
    +

    {{.Name}}

    +
    +
    +

    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 027a940..d0cdd0f 100644 --- a/web/layouts/vehicles_management/booking-display.html +++ b/web/layouts/vehicles_management/booking-display.html @@ -103,6 +103,9 @@
+
+ {{template "booking_diags" .}} +
diff --git a/web/layouts/vehicles_management/create-booking-diag.html b/web/layouts/vehicles_management/create-booking-diag.html new file mode 100644 index 0000000..8285297 --- /dev/null +++ b/web/layouts/vehicles_management/create-booking-diag.html @@ -0,0 +1,116 @@ +{{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 new file mode 100644 index 0000000..0f335c1 --- /dev/null +++ b/web/layouts/vehicles_management/create-vehicle-diag.html @@ -0,0 +1,116 @@ +{{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/fleet-display.html b/web/layouts/vehicles_management/fleet-display.html index aebf48f..c55d0e8 100644 --- a/web/layouts/vehicles_management/fleet-display.html +++ b/web/layouts/vehicles_management/fleet-display.html @@ -183,6 +183,9 @@ {{end}}
+
+ {{template "vehicle_diags" .}} +