preaction / Yancy

The Best Web Framework Deserves the Best Content Management System
http://preaction.me/yancy/
Other
54 stars 21 forks source link

If you submit without a required markdown field, the UI should tell you #75

Closed wbazant closed 4 years ago

wbazant commented 4 years ago

With this patch, it tells you when you click submit and don't fill in the e.g. path - the field goes red and it says "please fill in this field" - at least in Firefox set to English. Without the patch, the submit doesn't do anything - minor bug.

I didn't test the "readonly" - when I set readOnly in the schema, it's not shown in the editor, which is a separate issue - but anyway it seems right to make it like in the textarea field.

preaction commented 4 years ago

Ah, nice! Thanks!