Your ROOT_URL in app.ini is https://source.parasitstudio.de:63000/ but you are visiting https://source.parasitstudio.de/wirtz/scriptform/commit/4bcd0e9e43e13176b843c750cd364beff4144abd?style=unified&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
22 additions and
9 deletions
src/scriptform.py
@ -69,6 +69,7 @@ html_header = u'''<html>
div . form li . hidden { { display : none ; } }
div . form p . form - field - title { { margin - bottom : 0 px ; } }
div . form p . form - field - input { { margin - top : 0 px ; } }
div . form li . checkbox p . form - field - input { { float : left ; margin - right : 8 px ; } }
select ,
textarea ,
input [ type = text ] ,
@ -132,6 +133,19 @@ html_form = u'''
{ footer }
'''
html_field = u '''
< li class = " {classes} " >
< p class = " form-field-title " > { title } < / p >
< p class = " form-field-input " > { input } < span class = " error " > { errors } < / span > < / p >
< / li >
'''
html_field_checkbox = u '''
< li class = " checkbox {classes} " >
< p class = " form-field-input " > { input } < p class = " form-field-title " > { title } < / p > < span class = " error " > { errors } < / span > < / p >
< / li >
'''
html_submit_response = u '''
{ header }
< div class = " result " >
@ -753,12 +767,11 @@ class ScriptFormWebApp(WebAppHandler):
if ' hidden ' in field and field [ ' hidden ' ] :
classes + = ' hidden '
return ( u '''
< li class = " {classes} " >
< p class = " form-field-title " > { title } < / p >
< p class = " form-field-input " > { input } < span class = " error " > { errors } < / span > < / p >
< / li >
''' .format(classes=classes,
if field [ ' type ' ] != ' checkbox ' :
html = html_field
else :
html = html_field_checkbox
return ( html . format ( classes = classes ,
title = field [ ' title ' ] ,
input = input ,
errors = u ' , ' . join ( errors ) ) )