-
Notifications
You must be signed in to change notification settings - Fork 1
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
added anthem translation field as of enhancement issue #21 #54
Conversation
added you as a collaborator |
forms.py
Outdated
anthem_title = StringField('Anthem') | ||
anthem_composer = StringField('Anthem composer') | ||
anthem_lyrics = StringField('Anthem lyrics', widget=TextArea()) | ||
anthem_translation = SelectField('Anthem Translation', choices=translations) |
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.
I don't know if Flask allows nesting of forms but it might be nice to group these together
models.py
Outdated
@@ -438,13 +440,14 @@ def from_form(cls, form: 'PewSheetForm') -> 'Service': | |||
else: | |||
secondary_feasts = [] | |||
|
|||
if form.anthem_title.data or form.anthem_composer.data or form.anthem_lyrics.data: | |||
if form.anthem_title.data or form.anthem_composer.data or form.anthem_lyrics.data or form.anthem_translation.data: |
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 would be simplified if we could group stuff together
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.
Okay, I will give it a try!
@jftsang, could you review my pull request, please? |
No description provided.