forked from ScoDoc/ScoDoc
36 lines
1.3 KiB
Python
36 lines
1.3 KiB
Python
##############################################################################
|
|
# ScoDoc
|
|
# Copyright (c) 1999 - 2024 Emmanuel Viennet. All rights reserved.
|
|
# See LICENSE
|
|
##############################################################################
|
|
|
|
"""Formulaire édition description formsemestre
|
|
"""
|
|
|
|
from flask_wtf import FlaskForm
|
|
from wtforms import StringField, TextAreaField, FileField, SubmitField
|
|
from wtforms.validators import Optional
|
|
|
|
|
|
class FormSemestreDescriptionForm(FlaskForm):
|
|
"Formulaire édition description formsemestre"
|
|
description = TextAreaField(
|
|
"Description",
|
|
validators=[Optional()],
|
|
description="""texte libre : informations
|
|
sur le contenu, les objectifs, les modalités d'évaluation, etc.""",
|
|
)
|
|
horaire = StringField(
|
|
"Horaire", validators=[Optional()], description="ex: les lundis 9h-12h"
|
|
)
|
|
image = FileField(
|
|
"Image", validators=[Optional()], description="Image illustrant cette formation"
|
|
)
|
|
lieu = StringField("Lieu", validators=[Optional()], description="ex: salle 123")
|
|
responsable = StringField(
|
|
"Responsable", validators=[Optional()], description="ex: nom de l'enseignant"
|
|
)
|
|
|
|
submit = SubmitField("Enregistrer")
|
|
cancel = SubmitField("Annuler", render_kw={"formnovalidate": True})
|