15 |
type is 'text', |
type is 'text', |
16 |
label is _("Number"), |
label is _("Number"), |
17 |
is mandatory; |
is mandatory; |
|
|
|
|
column material => |
|
|
label is _("Material"), |
|
|
refers_to Arh::Model::UnitMaterial; |
|
18 |
|
|
19 |
column dimensions => |
column dimensions => |
20 |
label is _("Dimensions"), |
label is _("Dimensions"), |
26 |
type is 'text'; |
type is 'text'; |
27 |
|
|
28 |
column description => |
column description => |
29 |
label is _("Description"); |
label is _("Description"), |
30 |
|
render as 'textarea'; |
31 |
|
|
32 |
column chronology => |
column chronology => |
33 |
label is _("Chronology"), |
label is _("Chronology"), |
42 |
|
|
43 |
# Your model-specific methods go here. |
# Your model-specific methods go here. |
44 |
|
|
45 |
|
sub material { |
46 |
|
my $self = shift; |
47 |
|
my $m = Arh::Model::UnitMaterialCollection->new; |
48 |
|
$m->limit( column => 'unit', value => $self->id ); |
49 |
|
return $m; |
50 |
|
} |
51 |
|
|
52 |
1; |
1; |
53 |
|
|