webcompat / webcompat.com

Source code for webcompat.com
https://webcompat.com
360 stars 191 forks source link

refactor form code for required field validation errors #1596

Open cch5ng opened 7 years ago

cch5ng commented 7 years ago

currently there are redundant strings defined for required field validation error messages in form.py and bugform.js. it would be good to investigate:

relevant code sections: https://github.com/webcompat/webcompat.com/blob/master/webcompat/form.py#L44 (strings of form *_message)

https://github.com/webcompat/webcompat.com/blob/master/webcompat/static/js/lib/bugform.js#L18 (all helpText strings for this.inputs)

https://github.com/webcompat/webcompat.com/blob/master/webcompat/templates/home-page/form.html#L21 sections like {form.*.errors} which appear to be coming from form.py

zoepage commented 7 years ago

@cch5ng what is the status of that issue? :)

cch5ng commented 7 years ago

@zoepage I have not been working on this one; right now I'm mainly working on the Image Editor. thx...