Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9db8b697

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

  • ID 9db8b697e257cef1e8ffaef832cd650873eb971e
  • Vorgänger ff9d4254
  • Nachfolger 2aca9226

Zeiterfassung: Placeholder-String im Template ermitteln

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 _format_total);
20
use SL::Helper::Number qw(_round_number _parse_number);
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),
94 93
  );
95 94
}
96 95

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

Auch abrufbar als: Unified diff