diff --git a/flaskr/static/styles.css b/flaskr/static/styles.css index 8d70228..eb374a6 100644 --- a/flaskr/static/styles.css +++ b/flaskr/static/styles.css @@ -113,7 +113,7 @@ input, textarea { dl { margin-top: 0; } - #closing_text { + #closingText { width: 50%; } } diff --git a/flaskr/templates/writing.jinja2 b/flaskr/templates/writing.jinja2 index 6aa3ee3..4a62838 100644 --- a/flaskr/templates/writing.jinja2 +++ b/flaskr/templates/writing.jinja2 @@ -40,11 +40,11 @@
{{ render_field(form.username) }} {{ render_field(form.company) }} - {{ render_field(form.job_and_pronoun) }} - {{ render_field(form.skill_types) }} - {{ render_field(form.my_skills) }} + {{ render_field(form.jobAndPronoun) }} + {{ render_field(form.skillTypes) }} + {{ render_field(form.mySkills) }} {{ render_field(form.body, 'class=bigtext') }} - {{ render_field(form.closing_text) }} + {{ render_field(form.closingText) }}
{% if errors %} diff --git a/latty.py b/latty.py index abbfd47..7d994bf 100644 --- a/latty.py +++ b/latty.py @@ -28,20 +28,20 @@ base_tex_text = open(proj_dir + "/writing_templates/base.tex", "r").read() class CLData: username: str company: str - job_and_pronoun: str - skill_types: str - my_skills: str - closing_text: str + jobAndPronoun: str + skillTypes: str + mySkills: str + closingText: str body: str def get_pairs(self): return [ ("username", self.username), ("company", self.company), - ("job_and_pronoun", self.job_and_pronoun), - ("skill_types", self.skill_types), - ("my_skills", self.my_skills), - ("closing_text", self.closing_text), + ("jobAndPronoun", self.jobAndPronoun), + ("skillTypes", self.skillTypes), + ("mySkills", self.mySkills), + ("closingText", self.closingText), ("body", self.body), ] diff --git a/writing.py b/writing.py index f55b524..ad39a86 100644 --- a/writing.py +++ b/writing.py @@ -26,23 +26,23 @@ class CLForm(Form): [validators.Length(min=2, max=99)], default="BananaCorp" ) - job_and_pronoun = StringField( + jobAndPronoun = StringField( 'Job and Pronoun (a/an):', [validators.Length(min=4, max=99)], default="a banana stocker" ) - skill_types = StringField( + skillTypes = StringField( 'Skill Type:', [validators.Length(min=2, max=99)], default="practical" ) - my_skills = StringField( + mySkills = StringField( 'My Skills:', [validators.Length(min=2, max=99)], default="stocking bananas" ) - closing_text = TextAreaField( + closingText = TextAreaField( 'Closing Text:', [validators.Length(min=2, max=99)], default="I look forward to hearing from you" @@ -53,8 +53,8 @@ class CLForm(Form): [validators.Length(min=4, max=9999)], default=( "My name is {\\username}. I'm excited for the opportunity to work as " - "{\\job_and_pronoun} with your company. I think my {\\skill_types} knowledge " - "of {\\my_skills} can contribute a lot to your team.\n\n" + "{\\jobAndPronoun} with your company. I think my {\\skillTypes} knowledge " + "of {\\mySkills} can contribute a lot to your team.\n\n" "I am passionate about what I do, and I think we would work well together.\n\n" @@ -106,10 +106,10 @@ def index_post(): data = CLData( username=form.username.data, company=form.company.data, - job_and_pronoun=form.job_and_pronoun.data, - skill_types=form.skill_types.data, - my_skills=form.my_skills.data, - closing_text=form.closing_text.data, + jobAndPronoun=form.jobAndPronoun.data, + skillTypes=form.skillTypes.data, + mySkills=form.mySkills.data, + closingText=form.closingText.data, body=form.body.data, ) diff --git a/writing_templates/base.tex b/writing_templates/base.tex index 32b2a33..74db542 100644 --- a/writing_templates/base.tex +++ b/writing_templates/base.tex @@ -9,7 +9,7 @@ \body -\closing{\closing\_text,} +\closing{\closingText,} \end{letter} \end{document} diff --git a/writing_templates/default.tex b/writing_templates/default.tex index ea22814..1c3b1ab 100644 --- a/writing_templates/default.tex +++ b/writing_templates/default.tex @@ -1,15 +1,15 @@ \def \thecompany {BananCorp} -\def \job\_and\_pronoun {PusherBoy } -\def \skill\_types {broad, practical } -\def \my\_skills {software design principles} +\def \jobAndPronoun {PusherBoy } +\def \skillTypes {broad, practical } +\def \mySkills {software design principles} % CoverLetter.tex - Create a cover letter using an included vars.tex % \def \username {Sage Vaillancourt} % \def \thecompany {Travelers} -% \def \job\_and\_pronoun {a Software Engineer } -% \def \skill\_types {broad, practical } -% \def \my\_skills {computer systems} +% \def \jobAndPronoun {a Software Engineer } +% \def \skillTypes {broad, practical } +% \def \mySkills {computer systems} \include{vars} @@ -23,8 +23,8 @@ \opening{Dear \thecompany,} My name is Sage Vaillancourt. I'm excited for the opportunity to work as -\job\_and\_pronoun with your company. It's clear that you're looking for a hard worker who -has a \skill\_types knowledge of \my\_skills, so I'm certain that I'd be a +\jobAndPronoun with your company. It's clear that you're looking for a hard worker who +has a \skillTypes knowledge of \mySkills, so I'm certain that I'd be a perfect fit to work with you. I am someone who has been passionate about computers my whole life, and I have