Skip to content

Commit bac41c7

Browse files
RayBBnynaalekhya
andauthored
When adding a new edition you can now set the title (#10238)
Co-authored-by: nynalaalekhya <nynalaalekhya@gmail.com>
1 parent 07e3fa6 commit bac41c7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

openlibrary/templates/books/add.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,7 @@ <h1>$_("Add a book to Open Library")</h1>
2828
<label for="title">$_("Title")</label> <span class="tip">$:_('Use <b><i>Title: Subtitle</i></b> to add a subtitle.')</span> <span class="red">*<span class="tip">$_("Required field")</span></span>
2929
</div>
3030
<div class="input">
31-
$if work:
32-
<input type="text" id="title" disabled="disabled" value="$work.title"/>
33-
<input type="hidden" name="book_title" value="$work.title"/>
34-
$else:
35-
<input type="text" name="book_title" id="title" class="title" style="width:630px;" value="$(work and work.title)" $cond(work, 'readonly="readonly"') required/>
31+
<input type="text" id="title" name="book_title" value="$(work and work.title)" class="title" required/>
3632
</div>
3733
</div>
3834
<div class="formElement">
@@ -108,4 +104,3 @@ <h1>$_("Add a book to Open Library")</h1>
108104
</div>
109105
</form>
110106
</div>
111-

0 commit comments

Comments
 (0)