-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor/phu specific templates #93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ba9d7e8
f5014c7
c740569
96e8caa
819f78b
e7291d4
d166cfa
9f0dc71
ada872a
6cbce90
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ | |
|
|
||
| #let header_info_cim( | ||
| logo, | ||
| logo_width, | ||
| fill_colour, | ||
| custom_size, | ||
| custom_msg | ||
|
|
@@ -16,7 +17,7 @@ | |
|
|
||
| columns: (50%,50%), | ||
| gutter: 5%, | ||
| [#image(logo, width: 6cm)], | ||
| [#image(logo, width: logo_width)], | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is logo width and envelope width coming from config file? |
||
| [#set align(center + bottom) | ||
| #text(size: custom_size, fill: fill_colour)[*#custom_msg*]] | ||
|
|
||
|
|
@@ -29,7 +30,8 @@ | |
| client_data, | ||
| client_id, | ||
| font_size, | ||
| school_type | ||
| school_type, | ||
| envelope_window_height | ||
| ) = { | ||
| // Define column widths based on equal_split | ||
| let columns = if equal_split { | ||
|
|
@@ -59,7 +61,7 @@ | |
| let table_content = align(center)[ | ||
| #table( | ||
| columns: columns, | ||
| rows: (81pt), | ||
| rows: (envelope_window_height), | ||
| inset: font_size, | ||
| col1_content, | ||
| table.vline(stroke: vline_stroke), | ||
|
|
@@ -87,7 +89,8 @@ | |
| client_data, | ||
| client_id, | ||
| font_size, | ||
| school_type | ||
| school_type, | ||
| envelope_window_height | ||
| ) = { | ||
| // Define column widths based on equal_split | ||
| let columns = if equal_split { | ||
|
|
@@ -117,7 +120,7 @@ | |
| let table_content = align(center)[ | ||
| #table( | ||
| columns: columns, | ||
| rows: (81pt), | ||
| rows: (envelope_window_height), | ||
| inset: font_size, | ||
| col1_content, | ||
| table.vline(stroke: vline_stroke), | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,11 +49,11 @@ | |
|
|
||
| #v(0.2cm) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can these hard coded values 6cm and 81pt come from parameters?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See #70 |
||
|
|
||
| #conf.header_info_cim("__LOGO_PATH__", black, 16pt, "Request for Immunization Record") | ||
| #conf.header_info_cim("__LOGO_PATH__", 6cm, black, 16pt, "Request for Immunization Record") | ||
|
|
||
| #v(0.2cm) | ||
|
|
||
| #conf.client_info_tbl_en(equal_split: false, vline: false, client, client_id, font_size, "Childcare Centre") | ||
| #conf.client_info_tbl_en(equal_split: false, vline: false, client, client_id, font_size, "Childcare Centre", 81pt) | ||
|
|
||
| #v(0.3cm) | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should perhaps be in config if needed