{% macro history_page(item_name, item, attribute_name, attribute, as_pre=false) %}
<h3>{{item_name}} {{attribute_name}} history</h3>
{% macro history_page(item_name, item, attribute_name, attribute, as_pre=false) %}
<h3>{{item_name}} {{attribute_name}} history</h3>
-<th>{{date | truncate(19, True, '') }}</th>
+<td><input name="at:{{date}}" class="timestamp" value="{{date|truncate(19, True, '', 0)}}"></td>