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()
|
||||
elif form.sauvegarder.data:
|
||||
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"))
|
||||
elif code:
|
||||
referentiel = models.PN.query.filter_by(code="PN"+code).first()
|
||||
@ -126,6 +128,8 @@ def AC(code):
|
||||
form.exporterRef()
|
||||
elif form.sauvegarder.data:
|
||||
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"))
|
||||
elif code:
|
||||
referentiel = models.AC.query.filter_by(code="AC"+code).first()
|
||||
@ -151,6 +155,8 @@ def SAE(code):
|
||||
form.exporterRef()
|
||||
elif form.sauvegarder.data:
|
||||
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"))
|
||||
elif code:
|
||||
referentiel = models.SAE.query.filter_by(code="SAE"+code).first()
|
||||
@ -176,6 +182,8 @@ def Ressource(code):
|
||||
form.exporterRef()
|
||||
elif form.sauvegarder.data:
|
||||
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"))
|
||||
elif code:
|
||||
referentiel = models.Ressource.query.filter_by(code="R"+code).first()
|
||||
@ -201,6 +209,8 @@ def Competence(code):
|
||||
form.exporterRef()
|
||||
if form.sauvegarder.data:
|
||||
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"))
|
||||
elif code:
|
||||
referentiel = models.Competence.query.filter_by(code="RT"+code).first()
|
||||
|
Loading…
Reference in New Issue
Block a user