-
Notifications
You must be signed in to change notification settings - Fork 510
Add default receipt templates #6250
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
Conversation
|
at least on the screenshot the alignment of the button compared to the "Custom templates" header looks weird |
indico/modules/receipts/default_templates/receipt/template.html
Outdated
Show resolved
Hide resolved
|
nvm about the button if it looked crappy before. thought it was something new |
indico/modules/receipts/client/js/templates/TemplateListPane.jsx
Outdated
Show resolved
Hide resolved
09164d5 to
97bfb51
Compare
97bfb51 to
5dd5c32
Compare
5dd5c32 to
e0a6b1c
Compare
c96941f to
4a211b3
Compare
ThiefMaster
left a comment
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 looks REALLY nice! And I was positively surprised when testing this since while writing the issue for this I thought about just cloning the default template when selecting it, but pre-filling the editor with it is actually much nicer!
indico/modules/receipts/client/js/templates/TemplateListPane.jsx
Outdated
Show resolved
Hide resolved
a68322a to
2376ef3
Compare

This PR adds two default templates, which can be added to any event/category in the "Document Templates" mgmt page:

It also includes a util to dump a template from the DB onto the
default_templatesdirectory, which can be run as such:Closes #6246