[%
MACRO maybe_link_view(object) BLOCK;
IF object.table; # It's an object, i.e. a has-a
- link(object.table, "view", object.id, object);
+ link(object.table, "view", object.id.join('/'), object);
ELSE;
object;
END;
#%]
[% MACRO display_line(item) BLOCK;
- FOR col = classmetadata.columns;
+ FOR col = classmetadata.list_columns;
NEXT IF col == "id";
"<td>";
IF col == "url" AND item.url;
END;
"</td>";
END;
- "<td class='actions' nowrap>";
+ '<td class="actions">';
button(item, "edit");
button(item, "delete");
"</td>";
#%]
[% MACRO button(obj, action) BLOCK; %]
-<a class="action" href="[% base %]/[% obj.table %]/[% action %]/[% obj.id %]">
- [% action %]</a>
+<form class="actionform" action="[% base %]/[% obj.table %]/[% action %]/[% obj.id.join('/') %]" method="post">
+<div class="field"><input class="actionbutton" type="submit" value="[% action %]" /></div></form>
[% END %]
[%#