summaryrefslogtreecommitdiff
path: root/tbc/forms.py
diff options
context:
space:
mode:
authorprathamesh2016-09-12 17:54:06 +0530
committerprathamesh2016-09-12 17:54:06 +0530
commit3928f602bf0e4d36db3e702990bf129867bd4f28 (patch)
tree084e7f53fe7a5d10c4b4093022dd464fe673381b /tbc/forms.py
parent886dfdd0ccdd6066464d592f62edaa92cca68b50 (diff)
downloadPython-TBC-Interface-3928f602bf0e4d36db3e702990bf129867bd4f28.tar.gz
Python-TBC-Interface-3928f602bf0e4d36db3e702990bf129867bd4f28.tar.bz2
Python-TBC-Interface-3928f602bf0e4d36db3e702990bf129867bd4f28.zip
interface to add start date and end time for book.
Initial books log were not maintained by the app as they were completed before the TBC interface. Interface to manually enter their details.
Diffstat (limited to 'tbc/forms.py')
-rw-r--r--tbc/forms.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tbc/forms.py b/tbc/forms.py
index f1a1328..1aa1e6c 100644
--- a/tbc/forms.py
+++ b/tbc/forms.py
@@ -71,4 +71,6 @@ class BookForm(forms.ModelForm):
'edition':forms.TextInput(attrs={'placeholder':'Edition of the Book'}),
'year_of_pub':forms.TextInput(attrs={'placeholder':'Year when the Book was published'}),
'no_chapters':forms.TextInput(attrs={'placeholder':'Total number of chapters in the Book (only include chapters that have solved examples)'}),
+ 'start_time': forms.DateInput(attrs={'class':'datepicker'}),
+ 'end_time': forms.DateInput(attrs={'class':'datepicker'}),
}