Your ROOT_URL in app.ini is https://source.parasitstudio.de:63000/ but you are visiting https://source.parasitstudio.de/wirtz/scriptform/commit/386af020a2eefd0b99fdb32ecf64082c1de23242
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
7 additions and
1 deletions
doc/MANUAL.md
examples/customize/customize.json
src/webapp.py
@ -183,6 +183,9 @@ Structurally, they are made up of the following elements:
- ** `style` **: A string of inline CSS which will be applied to the field.
**Optional** , **String** .
- ** `classes` **: A string of optional CSS classes to add to this field.
**Optional** , **String** .
- ** `...` **: Other options, which depend on the type of field. For
more information, see [Field types ](#field_types ). **Optional** .
@ -12,7 +12,8 @@
"name" : "background" ,
"title" : "Different background color" ,
"type" : "string" ,
"style" : "background-color: #C0FFC0;"
"style" : "background-color: #C0FFC0;" ,
"classes" : "foo bar"
}
]
}
@ -373,6 +373,8 @@ class ScriptFormWebApp(WebAppHandler):
if field . get ( ' required ' , None ) :
params [ ' classes ' ] . append ( ' required ' )
params [ ' classes ' ] . extend ( field . get ( ' classes ' , ' ' ) . split ( ) )
params [ " style " ] = field . get ( " style " , " " )
# Get field-specific parameters