Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Customizable Print Header #790

Closed
jkleinsc opened this issue Nov 8, 2016 · 3 comments
Closed

Customizable Print Header #790

jkleinsc opened this issue Nov 8, 2016 · 3 comments

Comments

@jkleinsc
Copy link
Member

jkleinsc commented Nov 8, 2016

We need a configuration screen where we can specify a header image and text to include when printing from HospitalRun. Those configurations should be read/used by the print-this component

@jkleinsc jkleinsc changed the title Print Custom Forms Print Header Jan 30, 2017
@jkleinsc jkleinsc changed the title Print Header Customizable Print Header Jan 30, 2017
@baoqchau
Copy link
Contributor

Hello @jkleinsc. I want to work on this issue. You know where should i put the configuration screen file? I.e should I put it in app/models or app/components? Thanks a lot.

@jkleinsc
Copy link
Member Author

jkleinsc commented Mar 3, 2017

@baoqchau my apologies for not getting back to you sooner on this one. Please let me know if you still want to work on this. This configuration screen will be a new screen in the admin section of the app, so it will require creating a new route and controller. It should use the existing option data model, have an id of print_header and it should store the following properties:
facilityName - String
headerLine1 - String
headerLine2 - String
headerLine3 - String
logoURL - String
You should be able to copy the code from app/admin/address (screen the displays when you go to Administration/Address Fields) and modify to store these properties instead of the address fields and then save into the print_header option instead of the address_options option.

Let me know if you want to work on this and if you have further questions.

@baoqchau
Copy link
Contributor

baoqchau commented Mar 5, 2017

Thanks for replying back to me. I will definitely want to work on this. I will ask you if I have further questions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants