Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 124d2747

Von Jan Büren vor mehr als 3 Jahren hinzugefügt

  • ID 124d274756c0873240074c85afc7a3961a680f08
  • Vorgänger 94a76a6d
  • Nachfolger ff9d4254

Zeiterfassung: Dauer und Min mit Attribut Placeholder vorbelegen

Unterschiede anzeigen:

SL/Controller/TimeRecording.pm
17 17
use SL::DB::TimeRecording;
18 18
use SL::DB::TimeRecordingArticle;
19 19
use SL::Helper::Flash qw(flash);
20
use SL::Helper::Number qw(_round_number _parse_number);
20
use SL::Helper::Number qw(_round_number _parse_number _format_total);
21 21
use SL::Helper::UserPreferences::TimeRecording;
22 22
use SL::Locale::String qw(t8);
23 23
use SL::ReportGenerator;
......
90 90

  
91 91
  $self->render('time_recording/form',
92 92
                title  => t8('Time Recording'),
93
                ZERO   => _format_total(0.00),
93 94
  );
94 95
}
95 96

  
templates/webpages/time_recording/form.html
23 23
    <tr>
24 24
      <th align="right">[% 'Duration' | $T8 %]</th>
25 25
      <td>
26
        [% P.input_tag('duration_h', SELF.time_recording.duration_as_hours   || '', size=4, class='numeric', "data-validate"="number", "data-title"=LxERP.t8('h'))   %] [% 'h'   | $T8 %]<sup>(1)</sup>
27
        [% P.input_tag('duration_m', SELF.time_recording.duration_as_minutes || '', size=4, class='numeric', "data-validate"="number", "data-title"=LxERP.t8('min')) %] [% 'min' | $T8 %]
26
        [% P.input_tag('duration_h', SELF.time_recording.duration_as_hours   || '', size=4, class='numeric', "data-validate"="number", "data-title"=LxERP.t8('h'), "placeholder"= ZERO)   %] [% 'h'   | $T8 %]<sup>(1)</sup>
27
        [% P.input_tag('duration_m', SELF.time_recording.duration_as_minutes || '', size=4, class='numeric', "data-validate"="number", "data-title"=LxERP.t8('min') "placeholder"="0") %] [% 'min' | $T8 %]
28 28
      </td>
29 29
    </tr>
30 30
   [%- ELSE %]

Auch abrufbar als: Unified diff