Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e5c8056b

Von Bernd Bleßmann vor mehr als 3 Jahren hinzugefügt

Zeiterfassung: Bei Projekten nur Projektnummer und Beschreibung anzeigen

Unterschiede anzeigen:

SL/Controller/TimeRecording.pm
276 276
    order        => { text => t8('Sales Order'),  sub => sub { $_[0]->order && $_[0]->order->number } },
277 277
    customer     => { text => t8('Customer'),     sub => sub { $_[0]->customer->displayable_name } },
278 278
    part         => { text => t8('Article'),      sub => sub { $_[0]->part && $_[0]->part->displayable_name } },
279
    project      => { text => t8('Project'),      sub => sub { $_[0]->project && $_[0]->project->displayable_name } },
279
    project      => { text => t8('Project'),      sub => sub { $_[0]->project && $_[0]->project->full_description(sytle => 'both') } },
280 280
    description  => { text => t8('Description'),  sub => sub { $_[0]->description_as_stripped_html },
281 281
                      raw_data => sub { $_[0]->description_as_restricted_html }, # raw_data only used for html(?)
282 282
                      obj_link => sub { $self->url_for(action => 'edit', 'id' => $_[0]->id, callback => $self->models->get_callback) }  },
......
321 321
  my $filter = $::form->{filter} || {};
322 322
  my @filter_strings;
323 323

  
324
  my $staff_member = $filter->{staff_member_id} ? SL::DB::Employee->new(id => $filter->{staff_member_id})->load->safe_name        : '';
325
  my $project      = $filter->{project_id}      ? SL::DB::Project->new (id => $filter->{project_id})     ->load->displayable_name : '';
324
  my $staff_member = $filter->{staff_member_id} ? SL::DB::Employee->new(id => $filter->{staff_member_id})->load->safe_name                         : '';
325
  my $project      = $filter->{project_id}      ? SL::DB::Project->new (id => $filter->{project_id})     ->load->full_description(sytle => 'both') : '';
326 326

  
327 327
  my @filters = (
328 328
    [ $filter->{"date:date::ge"},                              t8('From Date')       ],
templates/webpages/time_recording/_filter.html
33 33
  </tr>
34 34
  <tr>
35 35
    <th align="right">[% 'Project' | $T8 %]</th>
36
    <td>[% P.project.picker('filter.project_id', filter.project_id, active="both", valid="both", size = 20) %]</td>
36
    <td>[% P.project.picker('filter.project_id', filter.project_id, active="both", valid="both", description_style='both', size = 20) %]</td>
37 37
  </tr>
38 38
  <tr>
39 39
    <th align="right">[% 'Description' | $T8 %]</th>
templates/webpages/time_recording/form.html
58 58
    </tr>
59 59
    <tr>
60 60
      <th align="right">[% 'Project' | $T8 %]</th>
61
      <td>[% P.project.picker('time_recording.project_id', SELF.time_recording.project_id, style='width: 300px', onchange='kivi.TimeRecording.project_changed()') %]</td>
61
      <td>[% P.project.picker('time_recording.project_id', SELF.time_recording.project_id, description_style='both', style='width: 300px', onchange='kivi.TimeRecording.project_changed()') %]</td>
62 62
    </tr>
63 63
    <tr></tr><tr></tr>
64 64
    <tr>

Auch abrufbar als: Unified diff