%     my $fattrs;
%     if(ref($f->attrs) ne 'ARRAY'){
%     $f->attrs->mk_accessors('id') unless $f->attrs->can('id');
%     $f->attrs->id(  $f->attrs->name ) if !$f->attrs->id && $f->attrs->name;
%     my @acc = $f->attrs->ls_accessors;
%     foreach my $a (@acc){
%        $fattrs .= ' ' . $a . '="' . $f->attrs->$a . '" ';
%      }
%     }

<form class="form-horizontal form-clmapp" <%== $fattrs %>>
<fieldset>

<!-- Form Name -->
% if($f->attrs->can('title') && $f->attrs->title){
<legend><%= $f->attrs->title %></legend>
% }

%= include 'snippets/formelements';


</fieldset>
</form>