-
Notifications
You must be signed in to change notification settings - Fork 510
Allow linking badge templates to regforms #6088
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
|
For double-sided:
|
|
Looks promising, if ready I can also try to review it in detail. |
6bae113 to
4a999d2
Compare
Hi! Yes, definitely feel free to give it a try :) It should be more or less working at this point, I mostly need to add tests. |
duartegalvao
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.
seems to work well!
133ec3d to
6ed84fd
Compare
e0dddb3 to
6755199
Compare
3021be1 to
38fceca
Compare
892573f to
87a693d
Compare
ef7d31c to
f7f243f
Compare
.../migrations/versions/20240314_1430_4e32f4d5ebe4_add_registration_id_to_designer_templates.py
Show resolved
Hide resolved
06bd397 to
01b665c
Compare
92f6017 to
e01d085
Compare
Co-authored-by: Adrian <[email protected]>
Co-authored-by: Adrian <[email protected]>
Co-authored-by: Adrian <[email protected]>
e01d085 to
1a256f0
Compare
Something that has been asked many times before is the ability to reference regform fields in the badge designer.
Currently you can use any regform as a source when printing badges and the list of available placeholders is limited to personal data since every regform has them.
The idea is to essentially allow linking templates to a specific regform. Once linked, you would be able reference any field from the linked regform.
Once linked, you have all registration data placeholders available in the badge designer and you can print the badges.
When printing badges/tickets, you can only select the linked regform (if any). The equivalent is true when configuring default ticket template in regforms (TicketsForm) - you can only select unlinked templates, or templates which are linked to the given regform.
This is what the UI for linking looks like currently:

For not currently linked templates, there is a 'plus' icon which opens dropdown where you can select to link a regform (same as when printing badges). To unlink, you click on the red 'X'.