Fixes in dateform

This commit is contained in:
Antonio de la Rosa 2024-11-11 01:22:43 +01:00
parent b0881e7267
commit 348f3f06f1
2 changed files with 4 additions and 4 deletions

View file

@ -30,7 +30,7 @@ class DateForm(BaseForm):
super().__init__(name, value) super().__init__(name, value)
self.yes_time=False self.yes_time=True
self.t=standard_t self.t=standard_t
def form(self): def form(self):

View file

@ -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" 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"/> <input type="number" name="${form}_year" id="time_${form}_year" class="form_year" value="${y}" size="4" maxlength="4"/>
% if yes_time==True: % 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="number" 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="number" 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="60" name="${form}_second" id="time_${form}_second" class="form_second" value="${s}" size="2" maxlength="2"/>
% endif % endif
<input type="hidden" name="${form}" id="time_${form}" value="" /> <input type="hidden" name="${form}" id="time_${form}" value="" />