forked from eric.li/EditionPN
Notification de sauvegarde
This commit is contained in:
parent
9adb5a6292
commit
0c5345f171
@ -101,6 +101,8 @@ def PN(code):
|
|||||||
form.exporterRef()
|
form.exporterRef()
|
||||||
elif form.sauvegarder.data:
|
elif form.sauvegarder.data:
|
||||||
form.sauvegarderRef()
|
form.sauvegarderRef()
|
||||||
|
flash("Le référentiel " + form.code.data + " a été sauvegardé!", "success")
|
||||||
|
return redirect(url_for("PN", code=form.code.data[2:]))
|
||||||
return redirect(url_for("PN"))
|
return redirect(url_for("PN"))
|
||||||
elif code:
|
elif code:
|
||||||
referentiel = models.PN.query.filter_by(code="PN"+code).first()
|
referentiel = models.PN.query.filter_by(code="PN"+code).first()
|
||||||
@ -126,6 +128,8 @@ def AC(code):
|
|||||||
form.exporterRef()
|
form.exporterRef()
|
||||||
elif form.sauvegarder.data:
|
elif form.sauvegarder.data:
|
||||||
form.sauvegarderRef()
|
form.sauvegarderRef()
|
||||||
|
flash("Le référentiel " + form.code.data + " a été sauvegardé!", "success")
|
||||||
|
return redirect(url_for("AC", code=form.code.data[2:]))
|
||||||
return redirect(url_for("AC"))
|
return redirect(url_for("AC"))
|
||||||
elif code:
|
elif code:
|
||||||
referentiel = models.AC.query.filter_by(code="AC"+code).first()
|
referentiel = models.AC.query.filter_by(code="AC"+code).first()
|
||||||
@ -151,6 +155,8 @@ def SAE(code):
|
|||||||
form.exporterRef()
|
form.exporterRef()
|
||||||
elif form.sauvegarder.data:
|
elif form.sauvegarder.data:
|
||||||
form.sauvegarderRef()
|
form.sauvegarderRef()
|
||||||
|
flash("Le référentiel " + form.code.data + " a été sauvegardé!", "success")
|
||||||
|
return redirect(url_for("SAE", code=form.code.data[3:]))
|
||||||
return redirect(url_for("SAE"))
|
return redirect(url_for("SAE"))
|
||||||
elif code:
|
elif code:
|
||||||
referentiel = models.SAE.query.filter_by(code="SAE"+code).first()
|
referentiel = models.SAE.query.filter_by(code="SAE"+code).first()
|
||||||
@ -176,6 +182,8 @@ def Ressource(code):
|
|||||||
form.exporterRef()
|
form.exporterRef()
|
||||||
elif form.sauvegarder.data:
|
elif form.sauvegarder.data:
|
||||||
form.sauvegarderRef()
|
form.sauvegarderRef()
|
||||||
|
flash("Le référentiel " + form.code.data + " a été sauvegardé!", "success")
|
||||||
|
return redirect(url_for("Ressource", code=form.code.data[1:]))
|
||||||
return redirect(url_for("Ressource"))
|
return redirect(url_for("Ressource"))
|
||||||
elif code:
|
elif code:
|
||||||
referentiel = models.Ressource.query.filter_by(code="R"+code).first()
|
referentiel = models.Ressource.query.filter_by(code="R"+code).first()
|
||||||
@ -201,6 +209,8 @@ def Competence(code):
|
|||||||
form.exporterRef()
|
form.exporterRef()
|
||||||
if form.sauvegarder.data:
|
if form.sauvegarder.data:
|
||||||
form.sauvegarderRef()
|
form.sauvegarderRef()
|
||||||
|
flash("Le référentiel " + form.code.data + " a été sauvegardé!", "success")
|
||||||
|
return redirect(url_for("Competence", code=form.code.data[2:]))
|
||||||
return redirect(url_for("Competence"))
|
return redirect(url_for("Competence"))
|
||||||
elif code:
|
elif code:
|
||||||
referentiel = models.Competence.query.filter_by(code="RT"+code).first()
|
referentiel = models.Competence.query.filter_by(code="RT"+code).first()
|
||||||
|
Loading…
Reference in New Issue
Block a user