From 85b2c1e23b7f27f07c1d11303b262f73de27347d Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Mon, 6 Sep 2021 13:56:47 +0200 Subject: [PATCH] partage 6 septembre --- WebTest/cata_essai.py | 5 +++++ testFlask/mdm.py | 2 ++ testFlask/static/css/style.css | 7 +++++++ testFlask/templates/commandes.html | 18 +++++++++++++----- 4 files changed, 27 insertions(+), 5 deletions(-) diff --git a/WebTest/cata_essai.py b/WebTest/cata_essai.py index 6d14c596..2b05627c 100644 --- a/WebTest/cata_essai.py +++ b/WebTest/cata_essai.py @@ -8,4 +8,9 @@ JdC = JDC_CATA(code='Test1',) MonProc = PROC(nom='MonProc', param1 = SIMP(statut='o',typ='R'), ) +MonProc2 = PROC(nom='MonProc2', + param1 = SIMP(statut='o',typ='R'), + param2 = SIMP(statut='o',typ='R'), + param3 = SIMP(statut='o',typ='R'), +) diff --git a/testFlask/mdm.py b/testFlask/mdm.py index f0266ffe..14dcf84e 100755 --- a/testFlask/mdm.py +++ b/testFlask/mdm.py @@ -19,6 +19,8 @@ def index(): return render_template('commandes.html', titre=code, listeCommandes = monConnecteur.getListeCommandes(), + profondeur=4, + mcTraite={'MonProc2': {'s1': ('I', 2), 'F2': {'s2': ('I', 3), 'F3': {'s3': ('I', 4)}}}} ) diff --git a/testFlask/static/css/style.css b/testFlask/static/css/style.css index 442b5f69..8c42058c 100644 --- a/testFlask/static/css/style.css +++ b/testFlask/static/css/style.css @@ -15,6 +15,13 @@ h2 { padding: 10px; } +h3 { + border: 2px #eee solid; + color: brown; + text-align: center; + text-align: center; +} + ul.navbar { border: 2px #eee solid; color: brown; diff --git a/testFlask/templates/commandes.html b/testFlask/templates/commandes.html index d6b27153..a029eeda 100644 --- a/testFlask/templates/commandes.html +++ b/testFlask/templates/commandes.html @@ -1,5 +1,6 @@ {% extends 'base.html' %} + {% block content %}

Choose command to add

Commandes en ligne

@@ -12,7 +13,7 @@