adjustment

This commit is contained in:
dpurbosakti
2025-11-18 15:34:58 +07:00
parent 2f4f9b681c
commit 8a95d681a0
2 changed files with 12 additions and 12 deletions
+6 -6
View File
@@ -125,11 +125,11 @@
>
<br /><span style="margin-left: 10px"
>c) Anggota keluarga saya :
{{ if eq (len .PatientRelatives_Name) 0 }}
{{ if eq (len .Relatives) 0 }}
..........................................
{{ else }}
<ul style="margin:0; padding-left:40px;">
{{ range $i, $name := .PatientRelatives_Name }}
{{ range $i, $name := .Relatives }}
{{ if lt $i 2 }}
<li>{{ $name }}</li>
{{ end }}
@@ -271,7 +271,7 @@
</div>
<div style="height:20px;">
{{ .Responsible_Name }}
{{ .Responsible }}
</div>
</td>
@@ -285,7 +285,7 @@
</div>
<div style="height:20px;">
{{ .InformationGivenBy_Name }}
{{ .Informant }}
</div>
</td>
@@ -299,7 +299,7 @@
</div>
<div style="height:20px;">
{{ .Witness1_Name }}
{{ .Witness1 }}
</div>
</td>
@@ -313,7 +313,7 @@
</div>
<div style="height:20px;">
{{ .Witness2_Name }}
{{ .Witness2 }}
</div>
</td>
</tr>
@@ -6,12 +6,12 @@ import (
)
type GeneralConsentPDF struct {
PatientRelatives_Name []string `json:"patientRelatives_name"`
Responsible_Name string `json:"responsible_name"`
InformationGivenBy_Name string `json:"informationGivenBy_name"`
Witness1_Name string `json:"witness1_name"`
Witness2_Name string `json:"witness2_name"`
Date string `json:"date"`
Relatives []string `json:"relatives"`
Responsible string `json:"responsible"`
Informant string `json:"informant"`
Witness1 string `json:"witness1"`
Witness2 string `json:"witness2"`
Date string `json:"date"`
}
type GenerateDto struct {