/[Arh]/lib/Arh/View/Units.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/Arh/View/Units.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 57 by dpavlin, Sun Apr 6 12:04:31 2008 UTC revision 58 by dpavlin, Mon Apr 7 09:11:56 2008 UTC
# Line 6  use warnings; Line 6  use warnings;
6  use base 'Jifty::View::Declare::CRUD';  use base 'Jifty::View::Declare::CRUD';
7  use Jifty::View::Declare -base;  use Jifty::View::Declare -base;
8    
9    use Data::Dump qw/dump/;
10    
11  sub object_type { 'Unit' };  sub object_type { 'Unit' };
12    
13  sub display_columns {  sub display_columns {
# Line 30  sub display_columns { Line 32  sub display_columns {
32                  toplogy                  toplogy
33                  technique                  technique
34                  description                  description
35                  contstruction                  construction
36                  iconography                  iconography
37                  decoration                  decoration
38                  motifs                  motifs
# Line 104  template 'view' => sub :CRUDView { Line 106  template 'view' => sub :CRUDView {
106                                  );                                  );
107                          } else {                          } else {
108                                  my %opt;                                  my %opt;
109                                  $opt{render_mode} = 'read' if ! $editing;                                  if ( ! $editing ) {
110                                            $opt{render_mode} = 'read';
111                                            # skip fields without values
112                                            $opt{render_as} = 'hidden' if ! defined( $update->record->$f );
113                                    }
114                                  render_param( $update => $f, %opt );                                  render_param( $update => $f, %opt );
115                          }                          }
116                  };                  };

Legend:
Removed from v.57  
changed lines
  Added in v.58

  ViewVC Help
Powered by ViewVC 1.1.26