[%# USE Dumper %] [%# Dumper.dump(base) #%] [%# Dumper.dump_html(variable) #%] [%# META title = 'Search for bar' #%] [% page = { title = c.loc('Search for bar') } %] [%# Render the HTML::FormFu Form %] [%# form #%] [% FOREACH element = form.get_all_elements %] [% SET element.label = c.loc(element.label) IF element.label %] [% SET element.comment = c.loc(element.comment) IF element.comment %] [% SET element.value = c.loc(element.value) IF element.value %] [% IF element.options %] [% FOREACH option IN element.options %] [% SET option.label = c.loc(option.label) %] [% END %] [% END %] [% END %] [% form %] [% c.prototype.auto_complete_field( 'searchterm', { url => c.uri_for('/bars/autocomplete'), tokens => [ ' ', ',', '\n' ] } ) %]