% my @types = qsearch( 'reason_type', { 'class' => $class } ); % if (scalar(@types) < 1) { # we should never reach this
No reason types. Go add some.
Reason Type
<% $types[0]->type %>
New Reason