Fixes in dateform
This commit is contained in:
parent
b0881e7267
commit
348f3f06f1
2 changed files with 4 additions and 4 deletions
|
|
@ -30,7 +30,7 @@ class DateForm(BaseForm):
|
|||
|
||||
super().__init__(name, value)
|
||||
|
||||
self.yes_time=False
|
||||
self.yes_time=True
|
||||
self.t=standard_t
|
||||
|
||||
def form(self):
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ ${add_js('jquery.min.js', 'admin')}
|
|||
<input type="number" min="1" max="12" name="${form}_month" id="time_${form}_month" class="form_month" value="${m}" size="2" maxlength="2"/>
|
||||
<input type="number" name="${form}_year" id="time_${form}_year" class="form_year" value="${y}" size="4" maxlength="4"/>
|
||||
% if yes_time==True:
|
||||
<input type="text" min="0" max="23" name="${form}_hour" id="time_${form}_hour" class="form_hour" value="${h}" size="2" maxlength="2"/>
|
||||
<input type="text" min="0" max="60" name="${form}_minute" id="time_${form}_minute" class="form_minute" value="${min}" size="2" maxlength="2"/>
|
||||
<input type="text" min="0" max="60" name="${form}_second" id="time_${form}_second" class="form_second" value="${s}" size="2" maxlength="2"/>
|
||||
<input type="number" min="0" max="23" name="${form}_hour" id="time_${form}_hour" class="form_hour" value="${h}" size="2" maxlength="2"/>
|
||||
<input type="number" min="0" max="60" name="${form}_minute" id="time_${form}_minute" class="form_minute" value="${min}" size="2" maxlength="2"/>
|
||||
<input type="number" min="0" max="60" name="${form}_second" id="time_${form}_second" class="form_second" value="${s}" size="2" maxlength="2"/>
|
||||
% endif
|
||||
<input type="hidden" name="${form}" id="time_${form}" value="" />
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue