<th>{$form.f.due_dtime.labelTag}:</th>␊ |
<td>{if $form.f.due_dtime.errors}{$form.f.due_dtime.fieldErrors}{/if}␊ |
{$form.f.due_dtime|unsafe}␊ |
<a href="#" rel="{$date_today}" id="due_dtime_today">Today</a>␊ |
<a href="#" rel="{$date_today} {$default_time}" id="due_dtime_today">Today</a>␊ |
</td>␊ |
<tr>␊ |
<th>{$form.f.relation_type0.labelTag}:</th>␊ |
|
{/block}␊ |
{block javascript}␊ |
<script type="text/javascript">␊ |
var default_time = '{$default_time}';␊ |
document.getElementById('id_summary').focus();{literal}␊ |
$(document).ready(function(){␊ |
$("#id_due_dtime").datepicker({␊ |
|
constrainInput: false,␊ |
dateFormat: 'yy-mm-dd',␊ |
onSelect: function(dateText, inst) {␊ |
this.value = dateText + ' 23:59';␊ |
this.value = dateText + ' ' + default_time;␊ |
}␊ |
});␊ |
$("#due_dtime_today").click(function(){␊ |