[% END; %]
<input type="submit" name="create" value="create"/>
- </div>
+ </fieldset>
</form>
<form id="createform" method="post" action="[% base %]/[% classmetadata.table %]/do_edit/">
<fieldset>
<legend>Add a new [% classmetadata.moniker %]</legend>
- <input type="hidden" name="action" value="create"/>
[% FOR col = classmetadata.columns %]
[% NEXT IF col == "id" %]
<label><span class="field">[% classmetadata.colnames.$col %]</span>
[%
IF pager AND pager.first_page != pager.last_page;
%]
-<p align=center>Pages:
+<p class="pager">Pages:
[%
SET begin_page = pager.current_page - 10;
IF begin_page < 1;
<form method="get" action="[% base %]/[% classmetadata.moniker %]/search/">
<fieldset class="search">
<legend>Search</legend>
- <input type="hidden" name="action" value="create"/>
- <input type="hidden" name="class" value="[% classmetadata.name %]"/>
[% FOR col = classmetadata.columns;
NEXT IF col == "id";
%]
<tr>
<td class="field">[% classmetadata.colnames.$col; %]</td>
<td>
- [% IF col == "url"; # Possibly too much magic.
+ [% IF col == "url" && item.url; # Possibly too much magic.
'<a href="'; item.url; '"> '; item.url; '</a>';
ELSE;
maybe_link_view(item.$col);
.error { color: #d00; }
.list { width: 70%; }
-.action { style:block;
+.action {
+ style:block;
+}
+.pager { text-align:center;}