google / vulncode-db

Vulncode-DB project

Home Page:https://www.vulncode-db.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mark required fields in forms

bluec0re opened this issue · comments

Is your feature request related to a problem? Please describe.
Forms currently do not indicate which fields are optional or required.

Describe the solution you'd like
Mark required or optional fields visually,

Additional context
WTForms adds a required css class to the fields which could be used for this.

Actually, we don't need this as leaving empty mandatory fields will bring up an indicator anyway.
I've added but commented out a red astersik in CSS for the fields that are set to required with 42f105a though.

I'm still for having these as otherwise users will not know what is required and what not until they try to submit

Resolved with efc2e5e.