Add ability to edit publish date

If a date is not set, default to “0101-01-01”
This commit is contained in:
Jonathan Rehm
2017-07-09 16:27:46 -07:00
parent cf7196ae5e
commit 04b04e200f
3 changed files with 190 additions and 168 deletions

View File

@@ -52,6 +52,10 @@
<input type="text" class="form-control" name="cover_url" id="cover_url" value="">
</div>
<div class="form-group">
<label for="pubdate">{{_('Published')}}</label>
<input type="date" class="form-control" name="pubdate" id="pubdate" value="{% if book.pubdate %}{{book.pubdate|formatdateinput}}{% endif %}">
</div>
<div class="form-group">
<label for="languages">{{_('Language')}}</label>
<input type="text" class="form-control typeahead" name="languages" id="languages" value="{% for language in book.languages %}{{language.language_name.strip()}}, {% endfor %}">