Revision 85d74cfe
Von Bernd Bleßmann vor fast 4 Jahren hinzugefügt
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 |
}, |
|
286 | 271 |
); |
287 | 272 |
|
288 | 273 |
my @default_list_attributes = ( |
menus/user/10-time-recording.yaml | ||
---|---|---|
1 | 1 |
--- |
2 |
- parent: system |
|
3 |
id: system_time_recording_types |
|
4 |
name: Time Recording Types |
|
5 |
order: 2370 |
|
6 |
access: config |
|
7 |
params: |
|
8 |
action: SimpleSystemSetting/list |
|
9 |
type: time_recording_type |
|
10 | 2 |
- parent: productivity |
11 | 3 |
id: productivity_time_recording |
12 | 4 |
name: Time Recording |
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
Revert "Zeiterfassung: SimpleSystemSettings für Typen"
This reverts commit d01aad90ec0e0f0800037e9753acbacccf819a0c.