-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
131c620
commit ffebd8f
Showing
16 changed files
with
223 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Lint | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
backend: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Backend code formatting check (Black) | ||
uses: psf/black@stable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,37 @@ | ||
from flask_wtf import FlaskForm | ||
from wtforms import (StringField, PasswordField, BooleanField, | ||
SubmitField, HiddenField, SelectField, validators | ||
from wtforms import ( | ||
StringField, | ||
PasswordField, | ||
BooleanField, | ||
SubmitField, | ||
HiddenField, | ||
SelectField, | ||
validators, | ||
) | ||
from wtforms.validators import DataRequired, Email | ||
# from wtforms_components import IntergerField | ||
|
||
|
||
# from wtforms_components import IntergerField | ||
|
||
|
||
class Organisme(FlaskForm): | ||
""" | ||
Classe du formulaire des Organismes | ||
""" | ||
nom_organisme = StringField("Nom de l'organisme", validators=[DataRequired(message="Le nom de l'organisme est obligatoire")]) | ||
adresse_organisme = StringField('Adresse') | ||
cp_organisme = StringField('Code Postal') | ||
ville_organisme = StringField ('Ville') | ||
tel_organisme = StringField('Téléphone') | ||
fax_organisme = StringField('Fax') | ||
email_organisme = StringField('E-mail', validators=[validators.Optional(), Email(message="L'email est incorect")]) | ||
|
||
nom_organisme = StringField( | ||
"Nom de l'organisme", | ||
validators=[DataRequired(message="Le nom de l'organisme est obligatoire")], | ||
) | ||
adresse_organisme = StringField("Adresse") | ||
cp_organisme = StringField("Code Postal") | ||
ville_organisme = StringField("Ville") | ||
tel_organisme = StringField("Téléphone") | ||
fax_organisme = StringField("Fax") | ||
email_organisme = StringField( | ||
"E-mail", | ||
validators=[validators.Optional(), Email(message="L'email est incorect")], | ||
) | ||
url_organisme = StringField("URL du site web de l'organisme") | ||
url_logo = StringField('Logo (URL)') | ||
id_organisme = HiddenField('id') | ||
submit = SubmitField('Enregistrer') | ||
url_logo = StringField("Logo (URL)") | ||
id_organisme = HiddenField("id") | ||
submit = SubmitField("Enregistrer") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.