File: BookWithOwnerAlt.pm

package info (click to toggle)
libhtml-formhandler-model-dbic-perl 0.29-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 640 kB
  • sloc: perl: 1,873; sql: 259; makefile: 14
file content (31 lines) | stat: -rw-r--r-- 674 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
    package BookDB::Field::BookOwnerAlt;

    use Moose;
    extends 'HTML::FormHandler::Field::Compound';
    with 'BookDB::Form::Role::BookOwner';
}

{
    package BookDB::Form::BookWithOwnerAlt;

    use HTML::FormHandler::Moose;
    extends 'HTML::FormHandler::Model::DBIC';

    has '+item_class' => ( default => 'Author' );

    has_field 'title' => ( type => 'Text', required => 1 );
    has_field 'publisher' => ( type => 'Text', required => 1 );
    has_field 'owner' => ( type => '+BookDB::Field::BookOwner' );
}

{
   package BookDB::Form::BookOwnerAlt;

   use Moose;
   extends 'HTML::FormHandler::Form::DBIC';
   with 'BookDB::Form::Role::BookOwner';

}

1;