Revert "Zeiterfassung: SimpleSystemSettings für Typen"
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Mon, 28 Dec 2020 16:49:34 +0000 (17:49 +0100)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Wed, 5 May 2021 15:25:03 +0000 (17:25 +0200)
This reverts commit d01aad90ec0e0f0800037e9753acbacccf819a0c.

 Conflicts:
menus/user/10-time-recording.yaml

SL/Controller/SimpleSystemSetting.pm
menus/user/10-time-recording.yaml
templates/webpages/simple_system_setting/_time_recording_type_form.html [deleted file]

index 640414d..f8dd4bc 100644 (file)
@@ -268,21 +268,6 @@ my %supported_types = (
     ],
   },
 
-  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 = (
index 59817a0..dfa1d53 100644 (file)
@@ -1,12 +1,4 @@
 ---
-- parent: system
-  id: system_time_recording_types
-  name: Time Recording Types
-  order: 2370
-  access: config
-  params:
-    action: SimpleSystemSetting/list
-    type: time_recording_type
 - parent: productivity
   id: productivity_time_recording
   name: Time Recording
diff --git a/templates/webpages/simple_system_setting/_time_recording_type_form.html b/templates/webpages/simple_system_setting/_time_recording_type_form.html
deleted file mode 100644 (file)
index aa136f3..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-[%- 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>