<%doc> pager template <%def name="pager(items)">
<% link_attr={"class": "btn small"} %> <% curpage_attr={"class": "btn primary small disabled"} %> <% dotdot_attr={"class": "btn small disabled"} %> ${items.pager(format="$link_previous ~2~ $link_next", symbol_previous="«", symbol_next="»", link_attr=link_attr, curpage_attr=curpage_attr, dotdot_attr=dotdot_attr, onclick="$('.list-partial').load('%s'); return false;")}
<%doc> checks validate errors, if any validate errors, adds message as span <%def name="validate_errors(field)"> % for message in form.errors_for(field): % if (message is not None): ${message} % endif % endfor