Skip to content

Commit

Permalink
doing fix for survey to test generator
Browse files Browse the repository at this point in the history
  • Loading branch information
vsoch committed Aug 17, 2018
1 parent 19ee81b commit 52ed1fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion survey.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def create_numeric_textfield(text,id_attribute,box_text=None,classes="",required
textfield_html,box_text = base_textfield(text,id_attribute,box_text)
meta = parse_meta(text)

return '%s\n<div class="%s">\n<input class="mdl-textfield__input %s %s" type="number" id="%s" name="%s" %s>\n<label class="mdl-textfield__label" for="%s">%s</label>\n<span class="mdl-textfield__error">Input is not a number!</span>\n</div><br><br><br>' %(textfield_html,class_names,classes,required,id_attribute,id_attribute,meta,id_attribute,box_text)
return '%s\n<div class="%s">\n<input class="mdl-textfield__input %s %s" type="text" id="%s" pattern="(([0-9]+)(\.[0-9]+)?)|\.?[0-9]+" name="%s" %s>\n<label class="mdl-textfield__label" for="%s">%s</label>\n<span class="mdl-textfield__error">Please enter a real number</span>\n</div><br><br><br>' %(textfield_html,class_names,classes,required,id_attribute,id_attribute,meta,id_attribute,box_text)


def create_select_table(text,id_attribute,df,classes="",required=0):
Expand Down

0 comments on commit 52ed1fa

Please sign in to comment.