- <h3>Housebound details for [% patron.title %] [% patron.firstname %] [% patron.surname %] ([% patron.cardnumber %])</h3>
- <div class="yui-u first">
+ <h3>Housebound details for [% INCLUDE 'patron-title.inc' %]</h3>
+ <div class="first">
+
+ [% FOR m IN messages %]
+ <div class="dialog [% m.type | html %]">
+ [% SWITCH m.code %]
+ [% CASE 'error_on_profile_store' %]
+ An error occurred whilst updating this housebound profile.
+ [% CASE 'error_on_profile_create' %]
+ An error occurred whilst creating this housebound profile.
+ [% CASE 'error_on_visit_load' %]
+ An error occurred whilst loading the housebound visit.
+ [% CASE 'error_on_visit_delete' %]
+ An error occurred whilst deleting a housebound visit.
+ [% CASE 'error_on_visit_store' %]
+ An error occurred whilst updating a housebound visit.
+ [% CASE 'error_on_visit_create' %]
+ An error occurred whilst creating a new housebound visit.
+ [% CASE %]
+ [% m.code | html %]
+ [% END %]
+ Please try again later.
+ </div>
+ [% END %]