feat: add shared quick wins workflow
This commit is contained in:
14
app/forms.py
14
app/forms.py
@@ -121,7 +121,7 @@ class QuickTaskForm(FlaskForm):
|
||||
choices=[(key, key) for key, _, _ in QUICK_TASK_EFFORTS],
|
||||
validators=[DataRequired()],
|
||||
)
|
||||
submit = SubmitField("Schnellaufgabe speichern")
|
||||
submit = SubmitField("Quick-Win speichern")
|
||||
|
||||
|
||||
class QuickTaskConfigForm(FlaskForm):
|
||||
@@ -133,4 +133,16 @@ class QuickTaskConfigForm(FlaskForm):
|
||||
medium_points = IntegerField("Dauert etwas", validators=[DataRequired(), NumberRange(min=1, max=500)])
|
||||
heavy_label = StringField("Bezeichnung", validators=[DataRequired(), Length(min=2, max=60)])
|
||||
heavy_points = IntegerField("Aufwendig", validators=[DataRequired(), NumberRange(min=1, max=500)])
|
||||
super_heavy_label = StringField("Bezeichnung", validators=[DataRequired(), Length(min=2, max=60)])
|
||||
super_heavy_points = IntegerField("Super aufwendig", validators=[DataRequired(), NumberRange(min=1, max=500)])
|
||||
submit = SubmitField("Aufwand speichern")
|
||||
|
||||
|
||||
class QuickWinForm(FlaskForm):
|
||||
title = StringField("Quick-Win", validators=[DataRequired(), Length(min=2, max=160)])
|
||||
effort = SelectField(
|
||||
"Aufwand",
|
||||
choices=[(key, key) for key, _, _ in QUICK_TASK_EFFORTS],
|
||||
validators=[DataRequired()],
|
||||
)
|
||||
submit = SubmitField("Quick-Win speichern")
|
||||
|
||||
Reference in New Issue
Block a user