[% INCLUDE header %]
[% FOR item = objects %]
[% SET string = item.stringify_column %]
- <h2> [% item.$string %]</h2>
+ <div id="title"> [% item.$string %]</div>
[% INCLUDE navbar %]
- <table class=view>
+ <table class="view">
<tr>
<td class="field">[% classmetadata.colnames.$string %]</td>
<td>[% item.$string %]</td>
#%]
<tr>
- <td class=field>[% classmetadata.colnames.$col; %]</td>
+ <td class="field">[% classmetadata.colnames.$col; %]</td>
<td>
- [% IF col == "url"; # Possibly too much magic.
- "<A HREF="; item.url; "> "; item.url; "</A>";
+ [% IF col == "url" && item.url; # Possibly too much magic.
+ '<a href="'; item.url; '"> '; item.url; '</a>';
ELSE;
maybe_link_view(item.$col);
END; %]
displays the results in a table.
#%]
+ <br /><a href="[%base%]/[%item.table%]/list">Back to listing</a>
+[% view_related(item); %]
+
[%
- view_related(item);
button(item, "edit");
button(item, "delete");
%]
[% END; %]
+[% INCLUDE footer %]