Make min/max constraints in timing_field optional.

This commit is contained in:
Matt Lee
2014-08-27 11:14:39 -07:00
parent c1c653fac0
commit 7aa0e2b56e

View File

@@ -216,9 +216,15 @@
<%def name="timing_field()">
<%utils:line_field title="${_('timing')}" css_class="rounded timing-field">
<input type="hidden" id="date-min" value="${thing.min_start}">
<input type="hidden" id="date-start-max" value="${thing.max_start}">
<input type="hidden" id="date-end-max" value="${thing.max_end}">
%if thing.min_start:
<input type="hidden" id="date-min" value="${thing.min_start}">
%endif
%if thing.max_start:
<input type="hidden" id="date-start-max" value="${thing.max_start}">
%endif
%if thing.max_end:
<input type="hidden" id="date-end-max" value="${thing.max_end}">
%endif
<div class="group">
<div class="form-group">