diff --git a/.gitignore b/.gitignore index 401d2d1..d286577 100644 --- a/.gitignore +++ b/.gitignore @@ -151,3 +151,6 @@ $RECYCLE.BIN/ # Windows shortcuts *.lnk +*.zip +connecthys/debug.log.1 +connecthys/journal.log.1 diff --git a/connecthys/application/forms.py b/connecthys/application/forms.py index 9aa220b..f5f173f 100644 --- a/connecthys/application/forms.py +++ b/connecthys/application/forms.py @@ -22,6 +22,22 @@ class LoginForm(FlaskForm): password = PasswordField('password', [validators.Required(), validators.Length(min=0, max=20)]) remember = BooleanField("remember", default=False) +class CreatePassword(FlaskForm): + password1 = PasswordField('password1', [validators.Required(), validators.Length(min=0, max=20)]) + password2 = PasswordField('password2', [validators.Required(), validators.Length(min=0, max=20)]) + accept = BooleanField("accept", default=False) + nom = HiddenField('nom') + #civilite = HiddenField('civilite') + prenom = HiddenField('prenom') + date_naiss = HiddenField('date_naiss') + rue_resid = HiddenField('rue_resid') + cp_resid = HiddenField('cp_resid') + ville_resid = HiddenField('ville_resid') + tel_domicile = HiddenField('tel_domicile') + tel_mobile = HiddenField('tel_mobile') + mail = HiddenField('mail') + identifiant = HiddenField('identifiant') + class ChangePassword(FlaskForm): password1 = PasswordField('password1', [validators.Required(), validators.Length(min=0, max=20)]) password2 = PasswordField('password2', [validators.Required(), validators.Length(min=0, max=20)]) @@ -51,7 +67,6 @@ class RetourTipi(FlaskForm): HEURTRANS = TextField('heurtrans', [validators.Required(), validators.Length(min=0, max=20)]) class Renseignements(FlaskForm): - idindividu = HiddenField("idindividu") nom = TextField('nom') prenom = TextField('prenom') date_naiss = TextField('date_naiss') @@ -69,3 +84,18 @@ class Renseignements(FlaskForm): travail_mail = TextField('travail_mail') adresse_auto = SelectField('adresse_auto', coerce=int) +class InscriptionFamille(FlaskForm): + nom = TextField('nom') + prenom = TextField('prenom') + #civilite = SelectField('civilite', choices=[(1, "Mme"), (2, "Mr")]) + date_naiss = TextField('date_naiss') + cp_naiss = TextField('cp_naiss') + ville_naiss = TextField('ville_naiss') + rue_resid = TextField('rue_resid') + cp_resid = TextField('cp_resid') + ville_resid = TextField('ville_resid') + tel_domicile = TextField('tel_domicile') + tel_mobile = TextField('tel_mobile') + mail = TextField('mail') + identifiant = TextField('identifiant') + \ No newline at end of file diff --git a/connecthys/application/models.py b/connecthys/application/models.py index 5e912a7..3979a6e 100644 --- a/connecthys/application/models.py +++ b/connecthys/application/models.py @@ -296,10 +296,15 @@ class Paiement(Base): numauto = Column(String(10)) dattrans = Column(String(15)) heurtrans = Column(String(15)) + systeme_paiement = Column(String(50)) + resultat = Column(String(50)) + message = Column(String(450)) + ventilation = Column(String(100000)) + horodatage = Column(DateTime) def __init__(self, IDpaiement=None, factures_ID=None, IDfamille=None, IDtransaction=None, refdet=None, \ - montant = 0.0, objet=None, saisie=None, resultrans=None, numauto=None, \ - dattrans=None, heurtrans=None): + montant = 0.0, objet=None, saisie=None, resultrans=None, numauto=None, dattrans=None, \ + heurtrans=None, systeme_paiement=None, resultat=None, message=None, ventilation=None, horodatage=None): if IDpaiement != None : self.IDpaiement = IDpaiement self.factures_ID = factures_ID @@ -313,6 +318,11 @@ def __init__(self, IDpaiement=None, factures_ID=None, IDfamille=None, IDtransact self.numauto = numauto self.dattrans = dattrans self.heurtrans = heurtrans + self.systeme_paiement = systeme_paiement + self.resultat = resultat + self.message = message + self.ventilation = ventilation + self.horodatage = horodatage def __repr__(self): return '' % (self.IDpaiement) @@ -361,12 +371,15 @@ class Action(Base): IDperiode = Column(Integer) ref_unique = Column(String(50), index=True) reponse = Column(String(450)) + IDpaiement = Column(Integer) + ventilation = Column(String(100000)) reservations = relationship("Reservation") renseignements = relationship("Renseignement") def __init__(self, horodatage=None, IDfamille=None, IDindividu=None, IDutilisateur=None, categorie=None, action=None, description=None, \ - commentaire=None, parametres=None, etat=None, traitement_date=None, IDperiode=None, ref_unique=None, reponse=None): + commentaire=None, parametres=None, etat=None, traitement_date=None, IDperiode=None, ref_unique=None, reponse=None, \ + IDpaiement=None, ventilation=None): if horodatage == None : self.horodatage = datetime.datetime.now() else : @@ -387,6 +400,8 @@ def __init__(self, horodatage=None, IDfamille=None, IDindividu=None, IDutilisate else : self.ref_unique = ref_unique self.reponse = reponse + self.IDpaiement = IDpaiement + self.ventilation = ventilation def GetRefUnique(self): horodatage = self.horodatage.strftime("%Y%m%d%H%M%S%f") diff --git a/connecthys/application/static/img/payzen.png b/connecthys/application/static/img/payzen.png new file mode 100644 index 0000000..de90754 Binary files /dev/null and b/connecthys/application/static/img/payzen.png differ diff --git a/connecthys/application/templates/create_password.html b/connecthys/application/templates/create_password.html new file mode 100644 index 0000000..2bc6de3 --- /dev/null +++ b/connecthys/application/templates/create_password.html @@ -0,0 +1,217 @@ +{% extends "adminlte/base_without_nav.html" %} +{% import "macros_password.html" as macros_password with context %} + +{% block title %}Modification du mot de passe{% endblock %} +{% block description %}Modification du mot de passe{% endblock %} +{% block bodytag %}login-page {% block skin %}{{ GetParametre('SKIN', dict_parametres, 'skin-blue') }}{% endblock %}{% endblock %} + +{% block head %} +{{ super() }} + + + + + + + + + + +{# Affichage de l'image de fond #} +{% set IMAGE_FOND = GetParametre("IMAGE_FOND", dict_parametres) %} +{% if IMAGE_FOND == "" %} + {% set IMAGE_FOND = "bleu.jpg" %} +{% endif %} + + + + + +{% endblock %} + + + +{% block body %} + + +
+ + +
+ + + + + + + + + + +{% endblock %} + + +{% block scripts %} + {{ super() }} + + + + + + + {{ macros_password.password_scripts(inputid='password1') }} + + + +{%- endblock scripts %} diff --git a/connecthys/application/templates/csrf_error.html b/connecthys/application/templates/csrf_error.html index 1e42f4a..cc88684 100644 --- a/connecthys/application/templates/csrf_error.html +++ b/connecthys/application/templates/csrf_error.html @@ -12,8 +12,8 @@ Le Portail Famille
-

Votre session a expiré.

-

Veuillez rechargez la page dans votre navigateur afin d'accéder de nouveau à la page d'identification.

+

Votre session a expiré.

+

Veuillez rechargez la page dans votre navigateur afin d'accéder de nouveau au portail.

diff --git a/connecthys/application/templates/finalisation_inscription.html b/connecthys/application/templates/finalisation_inscription.html new file mode 100644 index 0000000..2edf2a2 --- /dev/null +++ b/connecthys/application/templates/finalisation_inscription.html @@ -0,0 +1,105 @@ +{% extends "adminlte/base_without_nav.html" %} + +{% block title %}Connexion{% endblock %} +{% block description %}Connexion{% endblock %} +{% block bodytag %}login-page {% block skin %}{{ GetParametre('SKIN', dict_parametres, 'skin-blue') }}{% endblock %}{% endblock %} + +{% block head %} + {{ super() }} + + + + + {# Affichage de l'image de fond #} + {% set IMAGE_FOND = GetParametre("IMAGE_FOND", dict_parametres) %} + {% if IMAGE_FOND == "" %} + {% set IMAGE_FOND = "bleu.jpg" %} + {% endif %} + + + + +{% endblock %} + + + +{% block body %} + + +
+ + +
+ + + + + +{% endblock %} + + +{% block scripts %} + {{ super() }} + + + +{%- endblock scripts %} diff --git a/connecthys/application/templates/inscription_noethys.html b/connecthys/application/templates/inscription_noethys.html new file mode 100644 index 0000000..4f66ff4 --- /dev/null +++ b/connecthys/application/templates/inscription_noethys.html @@ -0,0 +1,171 @@ +{% extends "adminlte/base_without_nav.html" %} + +{% block title %}Connexion{% endblock %} +{% block description %}Connexion{% endblock %} +{% block bodytag %}login-page {% block skin %}{{ GetParametre('SKIN', dict_parametres, 'skin-blue') }}{% endblock %}{% endblock %} + +{% block head %} + {{ super() }} + + + + + {# Affichage de l'image de fond #} + {% set IMAGE_FOND = GetParametre("IMAGE_FOND", dict_parametres) %} + {% if IMAGE_FOND == "" %} + {% set IMAGE_FOND = "bleu.jpg" %} + {% endif %} + + + + +{% endblock %} + + + +{% block body %} + + +
+ + +
+ + + + + +{% endblock %} + + +{% block scripts %} + {{ super() }} + + + +{%- endblock scripts %} diff --git a/connecthys/application/templates/login.html b/connecthys/application/templates/login.html index 29be885..6d98d76 100644 --- a/connecthys/application/templates/login.html +++ b/connecthys/application/templates/login.html @@ -102,7 +102,15 @@ + + +
+

Cliquez sur le bouton ci-dessous pour pouvoir accéder à l'interface d'inscription.

+ Inscription à la plateforme +
+ diff --git a/connecthys/application/templates/macros_historique.html b/connecthys/application/templates/macros_historique.html index 95d56d0..7111a5a 100644 --- a/connecthys/application/templates/macros_historique.html +++ b/connecthys/application/templates/macros_historique.html @@ -46,8 +46,10 @@

{% if action.categorie in ("reservations", "renseignements") %}    {% endif %} - - Supprimer + + {% if action.categorie not in ("reglements",) %} + Supprimer + {% endif %} Demande en attente de traitement. {% endif %} {% endif %} @@ -55,7 +57,7 @@

Vous avez supprimé cette demande. {% endif %} {% if action.etat == "validation" %} - Votre demande a été traitée le {{ DateDDEnFr(action.traitement_date) }}. {% if action.reponse != None and action.reponse != '' %}Réponse : {{ action.reponse }}{% endif %} + Votre demande a été traitée le {{ DateDDEnFr(action.traitement_date) }}. {% if action.reponse != None and action.reponse != '' %}Réponse : {{ action.reponse }}{% endif %} {% endif %} diff --git a/connecthys/application/templates/macros_paiement_ligne.html b/connecthys/application/templates/macros_paiement_ligne.html index 233ba63..f93edc6 100644 --- a/connecthys/application/templates/macros_paiement_ligne.html +++ b/connecthys/application/templates/macros_paiement_ligne.html @@ -7,29 +7,31 @@

Payer en ligne

-

Vous pouvez payer une ou plusieurs factures en ligne à l'aide de votre carte bancaire. Le paiement est sécurisé. Cliquez sur le bouton ci-dessous pour accéder au site de notre partenaire.

+ {% if GetParametre('PAIEMENT_EN_LIGNE_SYSTEME', dict_parametres) in ("3", "4") %} + Logo Payzen +

Vous pouvez payer vos factures en ligne à l'aide de votre carte bancaire. Les transactions effectuées sur ce portail sont sécurisées par la plateforme de paiement en ligne PayZen. Cliquez sur le bouton ci-dessous pour sélectionner le montant à régler et accéder au site sécurisé de notre partenaire.

+ {% else %} +

Vous pouvez payer vos factures en ligne à l'aide de votre carte bancaire. Les transactions effectuées sur ce portail sont sécurisées par la plateforme de paiement en ligne TIPI. Cliquez sur le bouton ci-dessous pour sélectionner le montant à régler et accéder au site sécurisé de notre partenaire.

+ {% endif %}
- Payer en ligne +    Payer en ligne  
{% endif %} - +