Skip to content

Conversation

@duartegalvao
Copy link
Member

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

It also includes a util to dump a template from the DB onto the default_templates directory, which can be run as such:

./bin/maintenance/dump-template.py <name-of-template> <template-id> [-t/--target <target output directory>]

Closes #6246

@ThiefMaster
Copy link
Member

at least on the screenshot the alignment of the button compared to the "Custom templates" header looks weird

@duartegalvao
Copy link
Member Author

at least on the screenshot the alignment of the button compared to the "Custom templates" header looks weird

it's the same as before, but I can try to tweak it

image

@ThiefMaster
Copy link
Member

nvm about the button if it looked crappy before. thought it was something new

Copy link
Member

@ThiefMaster ThiefMaster left a 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!

@ThiefMaster ThiefMaster enabled auto-merge (squash) March 28, 2024 13:03
@ThiefMaster ThiefMaster merged commit da2acbe into indico:master Mar 28, 2024
@ThiefMaster ThiefMaster deleted the default-templates branch March 28, 2024 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add default receipt (and possibly certificate of attendance) template

2 participants