diff --git a/config.yaml b/config.yaml index 8ba402a..ab209bc 100644 --- a/config.yaml +++ b/config.yaml @@ -172,6 +172,13 @@ views: display_group: files: - web/layouts/group_module/display_group.html + diags: + list: + files: + - web/layouts/diags/home.html + delete: + files: + - web/layouts/diags/delete-diag.html administration: home: diff --git a/web/layouts/beneficiaries/_partials/beneficiary-diags.html b/web/layouts/beneficiaries/_partials/beneficiary-diags.html index b636c39..d7e5139 100644 --- a/web/layouts/beneficiaries/_partials/beneficiary-diags.html +++ b/web/layouts/beneficiaries/_partials/beneficiary-diags.html @@ -21,12 +21,14 @@ {{else}} {{range .ViewState.diags}} + {{ $diags := .ID }} {{if eq .Deleted false}}
  • {{.Name}}

    - +
  • {{end}} {{end}} diff --git a/web/layouts/diags/delete-diag.html b/web/layouts/diags/delete-diag.html new file mode 100644 index 0000000..b7c4ad7 --- /dev/null +++ b/web/layouts/diags/delete-diag.html @@ -0,0 +1,39 @@ +{{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/home.html b/web/layouts/diags/home.html new file mode 100644 index 0000000..f6a34f5 --- /dev/null +++ b/web/layouts/diags/home.html @@ -0,0 +1,71 @@ +{{define "content"}} +
    +

    Diagnostiques effectués

    + +
    +
    +

    +
    + +
    +
    + +
    +
    +
    +
    +
    + + + + + + + + + {{range .ViewState.diags}} + {{if eq .Deleted false}} + + + + + + + + {{end}} + {{end}} + + +
    + Nom du diagnostique + + Type + + Actions +
    + +
    {{.Name}}
    +
    + {{if eq .Namespace "parcoursmob_beneficiaries"}} +
    Diagnostique personnelle
    + {{end}} + {{if eq .Namespace "parcoursmob_vehicle"}} +
    Diagnostique automobile
    + {{end}} +
    + Voir +
    +
    +
    +
    +
    +
    +{{end}} \ No newline at end of file