Skip to content

Commit

Permalink
New files for role
Browse files Browse the repository at this point in the history
  • Loading branch information
gerda.shank@gmail.com committed Feb 16, 2009
1 parent a8c1f23 commit f69eb97
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
11 changes: 11 additions & 0 deletions t/lib/Form/AddressRole.pm
@@ -0,0 +1,11 @@
package Form::AddressRole;

use HTML::FormHandler::Moose::Role;

has_field 'street';
has_field 'city';
has_field 'state';
has_field 'zip';

no HTML::FormHandler::Moose::Role;
1;
9 changes: 9 additions & 0 deletions t/lib/Form/MultipleRole.pm
@@ -0,0 +1,9 @@
package Form::MultipleRole;

use HTML::FormHandler::Moose;
extends 'HTML::FormHandler';
with ('Form::PersonRole', 'Form::AddressRole');


no HTML::FormHandler::Moose;
1;
10 changes: 10 additions & 0 deletions t/lib/Form/PersonRole.pm
@@ -0,0 +1,10 @@
package Form::PersonRole;

use HTML::FormHandler::Moose::Role;

has_field 'name';
has_field 'telephone';
has_field 'email';

no HTML::FormHandler::Moose::Role;
1;

0 comments on commit f69eb97

Please sign in to comment.