Skip to content

Commit

Permalink
updating error message
Browse files Browse the repository at this point in the history
  • Loading branch information
vsoch committed Aug 17, 2018
1 parent c0e554f commit a0bf10b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions survey.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +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="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)

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 an integer or 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):
'''create_select_table generates a material lite table from a pandas data frame.
Expand Down

0 comments on commit a0bf10b

Please sign in to comment.