Merge pull request #159 from dikstub-rssa/feat/file-generator-169

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