Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2eb2bc55

Von Sven Schöling vor etwa 11 Jahren hinzugefügt

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

Projektliste: Sortierung an bob angepasst und Spalten verlinkt

Unterschiede anzeigen:

SL/Controller/Project.pm
my $report = SL::ReportGenerator->new(\%::myconfig, $::form);
$self->{report} = $report;
my @columns = qw(projectnumber description customer active valid project_type project_status);
my @columns = qw(project_status customer projectnumber description active valid project_type);
my @sortable = qw(projectnumber description customer project_type project_status);
my %column_defs = (
projectnumber => { obj_link => sub { $self->url_for(action => 'edit', id => $_[0]->id, callback => $callback) } },
description => { obj_link => sub { $self->url_for(action => 'edit', id => $_[0]->id, callback => $callback) } },
project_type => { sub => sub { $_[0]->project_type->description } },
project_status => { sub => sub { $_[0]->project_status->description }, text => t8('Project Status') },
customer => { sub => sub { $_[0]->customer ? $_[0]->customer->name : '' } },
project_status => { sub => sub { $_[0]->project_status->description }, text => t8('Status') },
customer => { raw_data => sub { $self->presenter->customer($_[0]->customer, display => 'table-cell', callback => $callback) } },
active => { sub => sub { $_[0]->active ? $::locale->text('Active') : $::locale->text('Inactive') },
text => $::locale->text('Active') },
valid => { sub => sub { $_[0]->valid ? $::locale->text('Valid') : $::locale->text('Invalid') },

Auch abrufbar als: Unified diff