[% PROCESS scaffold/header.tt %]

[% message %]

[% FOR field IN form.error_fields %]
[% field.name _ ': ' _ field.errors %]
[% END %]

Title:

[% form.item.title %]

Author:

[% form.item.author %]

Genres: [% FOR genre IN form.item.genres %]

[% genre.name %]

[% END %]

Publisher:

[% form.item.publisher %]

ISBN:

[% form.item.isbn %]

Format:

[% form.item.format.name %]

Pages:

[% form.item.pages %]

Year:

[% form.item.year %]

[% IF form.item.borrower %] Checked out to [%form.item.borrower.name%] ([%form.item.borrowed%])
Return it [%ELSE%]

[% SET f = form.field('borrower') %] Not borrowed.

[% SET f = form.field('borrowed') %]

[%END%]

> LIST

[% PROCESS scaffold/footer.tt %]