Make Work title a required field

Bug #600429 reported by George
6
This bug affects 1 person
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://openlibrary.org/works/OL5042160W/untitled

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://openlibrary.org/books/OL8986382M/untitled/edit)
- 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="/about/contact">let us know</a>." There
- 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?

George (george-archive)
Changed in openlibrary:
assignee: nobody → Lance Arthur (lance-arthur)
milestone: none → general-bucket
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Lance Arthur (lance-arthur) wrote :

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.

Changed in openlibrary:
status: Confirmed → Fix Committed
Changed in openlibrary:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.