Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 11da8094

Von Bernd Bleßmann vor fast 4 Jahren hinzugefügt

  • ID 11da80946e1d6365543722b4ba29e44886601d86
  • Vorgänger 09140f29
  • Nachfolger 8915e775

Zeiterfassung: SimpleSystemSettings für Typen

Unterschiede anzeigen:

SL/Controller/SimpleSystemSetting.pm
],
},
time_recording_type => {
# Make locales.pl happy: $self->render("simple_system_setting/_time_recording_type_form")
class => 'TimeRecordingType',
auth => 'config',
titles => {
list => t8('Time Recording Types'),
add => t8('Add time recording type'),
edit => t8('Edit time recording type'),
},
list_attributes => [
{ method => 'abbreviation', title => t8('Abbreviation') },
{ method => 'description', title => t8('Description') },
{ method => 'obsolete', title => t8('Obsolete'), formatter => sub { $_[0]->obsolete ? t8('yes') : t8('no') } },
],
},
);
my @default_list_attributes = (
menus/user/10-time-recording.yaml
---
- parent: system
id: system_time_recording_types
name: Time Recording Types
order: 2370
params:
action: SimpleSystemSetting/list
type: time_recording_type
templates/webpages/simple_system_setting/_time_recording_type_form.html
[%- USE LxERP -%][%- USE L -%]
<table>
<tr>
<th align="right">[% LxERP.t8("Abbreviation") %]</th>
<td>
[%- L.input_tag("object.abbreviation", SELF.object.abbreviation, "data-validate"="required", "data-title"=LxERP.t8("Abbreviation")) %]
</td>
</tr>
<tr>
<th align="right">[% LxERP.t8("Description") %]</th>
<td>
[%- L.input_tag("object.description", SELF.object.description, "data-title"=LxERP.t8("Description")) %]
</td>
</tr>
<tr>
<th align="right">[% LxERP.t8("Obsolete") %]</th>
<td>[% L.checkbox_tag("object.obsolete", checked=SELF.object.obsolete, for_submit=1) %]</td>
</tr>
</table>

Auch abrufbar als: Unified diff