[% INCLUDE "header.tt" %] [% PROCESS "view_macros.tt" %]
View [% crud.moniker %]
[% crud.moniker | html %] '[% item | html %]' [% form_view_item(item); %] Edit | Delete
[% IF item.borrowed %]
Borrowed by [% item.borrower | html %]
[% ELSE %]
Borrow Book [% element = item.to_field('borrower'); element = c.view.dropdown_remove_id(element, 1); #Should go into model/controller somehow element.as_HTML('<>&"\''); %]
Add Borrower
[% END %] Add List [% INCLUDE "footer.tt" %]