Make Work title a required field
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Open Library |
Fix Released
|
Low
|
Lance Arthur |
Bug Description
It seems like people are trying to delete Works by deleting whatever's in the Title field. Here's an example:
http://
We should make Work Title a required field.
So,
- On the main Edit UI, add a little red "required field" alongside the Work Title field label (E.g. Main Title field at the top here - http://
- If the form is saved with an empty Work Title field, bring up the alert at the top of the page, reading "You can't save a Work without a title. If you need something deleted, you can <a href="/
- The empty Title field *could* be repopulated with whatever the title was before too
Lance: Can you pls put the markup in place (required note, and alert msg) then pass to Ariel for hookup?
Changed in openlibrary: | |
assignee: | nobody → Lance Arthur (lance-arthur) |
milestone: | none → general-bucket |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in openlibrary: | |
status: | Fix Committed → Fix Released |
Adding the "validate" class to a <form> tag and then adding the "required" class to an <input> or <select> tag withi the form calls the form validation automatically. This will catch any field that's required, change the label to red, change the border around the field to red, and set off the yellow alert banner at the top of the page which includes a count of the total number of "missed" fields.