Parent Directory | Revision Log
very crude brain dump of various changes: - introduce command ACL in Arh::DefaultACL which allmost all modes use - rewrite most templates and implement crude hack Arch::Web::Material to render special type of form to add singe material - version bump [0.02]
1 | use strict; |
2 | use warnings; |
3 | |
4 | package Arh::Model::Campaign; |
5 | use Jifty::DBI::Schema; |
6 | |
7 | use Arh::Record schema { |
8 | |
9 | column place => |
10 | refers_to Arh::Model::Place, |
11 | is mandatory, |
12 | is indexed, |
13 | since '0.0.5'; |
14 | |
15 | column name => |
16 | label is _("Name of campaign"), |
17 | is mandatory; |
18 | |
19 | column date_from => |
20 | label is _("From date"), |
21 | type is 'date', |
22 | filters are qw( Jifty::DBI::Filter::Date ), |
23 | render as 'date', |
24 | is mandatory; |
25 | |
26 | column date_to => |
27 | label is _("To date"), |
28 | type is 'date', |
29 | filters are qw( Jifty::DBI::Filter::Date ), |
30 | render as 'date', |
31 | is mandatory; |
32 | |
33 | column note => |
34 | label is _("Note"), |
35 | render as 'textarea'; |
36 | |
37 | }; |
38 | |
39 | #use Jifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadata; # created_by, created_on, updated_on |
40 | |
41 | # Your model-specific methods go here. |
42 | |
43 | sub since { '0.0.3' } |
44 | |
45 | use Arh::DefaultACL; |
46 | |
47 | 1; |
48 |
ViewVC Help | |
Powered by ViewVC 1.1.26 |