Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2eb2bc55

Von Sven Schöling vor mehr als 10 Jahren hinzugefügt

  • ID 2eb2bc5583f28aa5f9bb18c2cd314995d0570f8c
  • Vorgänger cee96ce9
  • Nachfolger 94f65264

Projektliste: Sortierung an bob angepasst und Spalten verlinkt

Unterschiede anzeigen:

SL/Controller/Project.pm
204 204
  my $report      = SL::ReportGenerator->new(\%::myconfig, $::form);
205 205
  $self->{report} = $report;
206 206

  
207
  my @columns     = qw(projectnumber description customer active valid project_type project_status);
207
  my @columns     = qw(project_status customer projectnumber description active valid project_type);
208 208
  my @sortable    = qw(projectnumber description customer              project_type project_status);
209 209

  
210 210
  my %column_defs = (
211 211
    projectnumber => { obj_link => sub { $self->url_for(action => 'edit', id => $_[0]->id, callback => $callback) } },
212 212
    description   => { obj_link => sub { $self->url_for(action => 'edit', id => $_[0]->id, callback => $callback) } },
213 213
    project_type  => { sub  => sub { $_[0]->project_type->description } },
214
    project_status => { sub  => sub { $_[0]->project_status->description }, text => t8('Project Status') },
215
    customer      => { sub  => sub { $_[0]->customer ? $_[0]->customer->name     : '' } },
214
    project_status => { sub  => sub { $_[0]->project_status->description }, text => t8('Status') },
215
    customer      => { raw_data  => sub { $self->presenter->customer($_[0]->customer, display => 'table-cell', callback => $callback) } },
216 216
    active        => { sub  => sub { $_[0]->active   ? $::locale->text('Active') : $::locale->text('Inactive') },
217 217
                       text => $::locale->text('Active') },
218 218
    valid         => { sub  => sub { $_[0]->valid    ? $::locale->text('Valid')  : $::locale->text('Invalid')  },

Auch abrufbar als: Unified diff