forked from ScoDoc/ScoDoc
Fix: retour après formulaire saisie notes
This commit is contained in:
parent
29b44ad5a4
commit
e54e8147a8
@ -1175,7 +1175,6 @@ def _form_saisie_notes(E, M, group_ids, destination="", REQUEST=None):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
#
|
#
|
||||||
breakpoint()
|
|
||||||
H = []
|
H = []
|
||||||
if nb_decisions > 0:
|
if nb_decisions > 0:
|
||||||
H.append(
|
H.append(
|
||||||
@ -1193,11 +1192,17 @@ def _form_saisie_notes(E, M, group_ids, destination="", REQUEST=None):
|
|||||||
REQUEST.form,
|
REQUEST.form,
|
||||||
descr,
|
descr,
|
||||||
initvalues=initvalues,
|
initvalues=initvalues,
|
||||||
submitlabel="Terminer",
|
submitbutton=False,
|
||||||
formid="formnotes",
|
formid="formnotes",
|
||||||
method="GET",
|
method="GET",
|
||||||
)
|
)
|
||||||
H.append(tf.getform()) # check and init
|
H.append(tf.getform()) # check and init
|
||||||
|
H.append(
|
||||||
|
f"""<a href="{url_for("notes.moduleimpl_status", scodoc_dept=g.scodoc_dept,
|
||||||
|
moduleimpl_id=M["moduleimpl_id"])
|
||||||
|
}" class="btn btn-primary">Terminer</a>
|
||||||
|
"""
|
||||||
|
)
|
||||||
if tf.canceled():
|
if tf.canceled():
|
||||||
return None
|
return None
|
||||||
elif (not tf.submitted()) or not tf.result:
|
elif (not tf.submitted()) or not tf.result:
|
||||||
|
@ -56,14 +56,16 @@ class DevConfig(Config):
|
|||||||
SQLALCHEMY_DATABASE_URI = (
|
SQLALCHEMY_DATABASE_URI = (
|
||||||
os.environ.get("SCODOC_DEV_DATABASE_URI") or "postgresql:///SCODOC_DEV"
|
os.environ.get("SCODOC_DEV_DATABASE_URI") or "postgresql:///SCODOC_DEV"
|
||||||
)
|
)
|
||||||
|
SECRET_KEY = os.environ.get("DEV_SECRET_KEY") or "bb3faec7d9a34eb68a8e3e710087d87a"
|
||||||
|
|
||||||
|
|
||||||
class TestConfig(DevConfig):
|
class TestConfig(DevConfig):
|
||||||
SQLALCHEMY_DATABASE_URI = (
|
SQLALCHEMY_DATABASE_URI = (
|
||||||
os.environ.get("SCODOC_TEST_DATABASE_URI") or "postgresql:///SCODOC_TEST"
|
os.environ.get("SCODOC_TEST_DATABASE_URI") or "postgresql:///SCODOC_TEST"
|
||||||
)
|
)
|
||||||
SERVER_NAME = "test.gr"
|
SERVER_NAME = os.environ.get("SCODOC_TEST_SERVER_NAME") or "test.gr"
|
||||||
DEPT_TEST = "TEST_" # nom du département, ne pas l'utiliser pour un "vrai"
|
DEPT_TEST = "TEST_" # nom du département, ne pas l'utiliser pour un "vrai"
|
||||||
|
SECRET_KEY = os.environ.get("TEST_SECRET_KEY") or "c7ecff5db1594c208f573ff30e0f6bca"
|
||||||
|
|
||||||
|
|
||||||
mode = os.environ.get("FLASK_ENV", "production")
|
mode = os.environ.get("FLASK_ENV", "production")
|
||||||
|
Loading…
Reference in New Issue
Block a user