Skip to content
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

Generate application form from Jinja template #41

Merged
merged 1 commit into from
Apr 23, 2019

Conversation

alxndr42
Copy link

First step towards #40 (I hope): adds a script and Jinja template for the application form that generates almost identical HTML. (git diff -w only reports the BOM disappearing.)

If this is what you were thinking of in terms of templating, next steps could be splitting the CSS into separate screen and print files and making the input field synchronisation flexible about which fields are in the form.

Copy link
Owner

@RonjaPonja RonjaPonja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great start already. Makes editing the main file suck much less.

I'm not super sure, but it may be better to just move all css/js/jinja files into a flat src/ directory or something. I don't think we will get so many files for many directories to be useful.

foerder.j2 Show resolved Hide resolved
README.md Show resolved Hide resolved
Pipfile Outdated Show resolved Hide resolved
@alxndr42
Copy link
Author

Ok, all the included files are in res/ now.

@RonjaPonja
Copy link
Owner

Looks good to me. Maybe you want to have another look @vollkorn1982 ?

@RonjaPonja
Copy link
Owner

I'll just merge this now.

@RonjaPonja RonjaPonja merged commit b406452 into RonjaPonja:master Apr 23, 2019
@alxndr42 alxndr42 deleted the add-jinja branch April 23, 2019 20:42
@vollkorn1982
Copy link
Collaborator

@HerrSpace Thanks both of you. Have been too busy lately to take a break for this, but it looks good.

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.

3 participants