Skip to content

Commit

Permalink
Express BookInstance update - better option select markup (#29892)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishwillee authored Nov 15, 2023
1 parent 71d9840 commit 9ca20de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ block content
select#book.form-control(type='select' placeholder='Select book' name='book' required='true')
- book_list.sort(function(a, b) {let textA = a.title.toUpperCase(); let textB = b.title.toUpperCase(); return (textA < textB) ? -1 : (textA > textB) ? 1 : 0;});
for book in book_list
option(value=book._id, selected=(selected_book==book._id.toString() ? 'selected' : false) ) #{book.title}
option(value=book._id, selected=(selected_book==book._id.toString() ? '' : false) ) #{book.title}
div.form-group
label(for='imprint') Imprint:
Expand Down

0 comments on commit 9ca20de

Please sign in to comment.