Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9e41b7f3

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

  • ID 9e41b7f3a31c9f166fc52f9b09bef203dd87cffd
  • Vorgänger 7b5bd908
  • Nachfolger 81be8de1

Zeiterfassung: SimpleSystemSettings für Typen

Unterschiede anzeigen:

SL/Controller/SimpleSystemSetting.pm
268 268
    ],
269 269
  },
270 270

  
271
  time_recording_type => {
272
    # Make locales.pl happy: $self->render("simple_system_setting/_time_recording_type_form")
273
    class  => 'TimeRecordingType',
274
    auth   => 'config',
275
    titles => {
276
      list => t8('Time Recording Types'),
277
      add  => t8('Add time recording type'),
278
      edit => t8('Edit time recording type'),
279
    },
280
    list_attributes => [
281
      { method => 'abbreviation', title => t8('Abbreviation') },
282
      { method => 'description',  title => t8('Description') },
283
      { method => 'obsolete',     title => t8('Obsolete'), formatter => sub { $_[0]->obsolete ? t8('yes') : t8('no') } },
284
    ],
285
  },
271 286
);
272 287

  
273 288
my @default_list_attributes = (
menus/user/10-time-recording.yaml
1
---
2
- parent: system
3
  id: system_time_recording_types
4
  name: Time Recording Types
5
  order: 2370
6
  params:
7
    action: SimpleSystemSetting/list
8
    type: time_recording_type
templates/webpages/simple_system_setting/_time_recording_type_form.html
1
[%- USE LxERP -%][%- USE L -%]
2
<table>
3
 <tr>
4
  <th align="right">[% LxERP.t8("Abbreviation") %]</th>
5
  <td>
6
   [%- L.input_tag("object.abbreviation", SELF.object.abbreviation, "data-validate"="required", "data-title"=LxERP.t8("Abbreviation")) %]
7
  </td>
8
 </tr>
9
 <tr>
10
  <th align="right">[% LxERP.t8("Description") %]</th>
11
  <td>
12
   [%- L.input_tag("object.description", SELF.object.description, "data-title"=LxERP.t8("Description")) %]
13
  </td>
14
 </tr>
15
 <tr>
16
  <th align="right">[% LxERP.t8("Obsolete") %]</th>
17
  <td>[% L.checkbox_tag("object.obsolete", checked=SELF.object.obsolete, for_submit=1) %]</td>
18
 </tr>
19
</table>

Auch abrufbar als: Unified diff