Skip to content

Commit

Permalink
Translations field converted to dropdown list
Browse files Browse the repository at this point in the history
  • Loading branch information
MonEstCha committed Aug 1, 2024
1 parent 14cd053 commit 70d8b64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions models.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ 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:
anthem = Music(
title=form.anthem_title.data,
composer=form.anthem_composer.data,
Expand All @@ -452,8 +452,6 @@ def from_form(cls, form: 'PewSheetForm') -> 'Service':
else:
anthem = None

print(form.anthem_translation.data)

return Service(
title=form.title.data,
date=form.date.data,
Expand Down
2 changes: 1 addition & 1 deletion templates/serviceForm.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ <h3 id="titleH3"></h3>
<div class="row mb-3">
{{ form.anthem_translation.label(class='col-sm-2 col-form-label') }}
<div class="col-sm-5">
{{ form.anthem_translation(class='form-control') }}
{{ form.anthem_translation(class='form-select') }}
{% if form.anthem_translation.errors %}
{% for error in form.anthem_translation.errors %}
<small class="font-small text-danger">
Expand Down

0 comments on commit 70d8b64

Please sign in to comment.