From c80d0b8b3571b1055951ee8e387ec6ee56d5c55b Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 23 May 2018 17:13:35 +0200 Subject: Wizards - JSON fields: Manage field display in forms - management in wizards save and form init (refs #4089) --- .../templates/ishtar/sheet_operation.html | 4 +- ishtar_common/forms.py | 78 +++++++++++++++++++--- .../migrations/0053_auto_20180523_1126.py | 43 ------------ .../migrations/0053_auto_20180523_1504.py | 45 +++++++++++++ ishtar_common/models.py | 3 + ishtar_common/wizards.py | 45 ++++++++++++- 6 files changed, 160 insertions(+), 58 deletions(-) delete mode 100644 ishtar_common/migrations/0053_auto_20180523_1126.py create mode 100644 ishtar_common/migrations/0053_auto_20180523_1504.py diff --git a/archaeological_operations/templates/ishtar/sheet_operation.html b/archaeological_operations/templates/ishtar/sheet_operation.html index 7999dc21d..f3014eaf4 100644 --- a/archaeological_operations/templates/ishtar/sheet_operation.html +++ b/archaeological_operations/templates/ishtar/sheet_operation.html @@ -115,10 +115,10 @@ {% field_flex_full "Comment" item.comment "
" "
" %} {% field_flex_full "Abstract" item.abstract "
" "
" %} {% field_flex_full "Comment about scientific documentation" item.scientific_documentation_comment "
" "
" %} - - {% include "ishtar/blocks/sheet_json.html" %} +{% include "ishtar/blocks/sheet_json.html" %} + {% if item.virtual_operation %}