Commit Graph

66 Commits

Author SHA1 Message Date
nathan
6ab9915e91 Fix vfs custom fields with no extension could get renamed on save
Also disabled vfs-select customfields when there's no app ID since there's no server handling
2024-10-28 11:54:32 -06:00
nathan
e3c7831bc5 Api: Fix browser cached VFS customfield icon, so it looked like it wasn't changing when you choose a different file 2024-10-25 11:42:07 -06:00
nathan
1612ddb030 Fix vfs customfield for single file did not replace when you chose a different file from VFS 2024-10-24 11:37:04 -06:00
nathan
4448d39bfa Et2Link fixes
- fix Vfs customfield with multiple didn't update UI after linking files
- fix Vfs customfield without multiple didn't link, broken by 65caab5
2024-10-23 10:43:03 -06:00
nathan
4333429602 Fix wrong ID in VFS select customfield handler 2024-10-22 10:49:48 -06:00
nathan
74fa7e6912 Fix single vfs select link customfield did not show files, used wrong filename 2024-10-16 09:19:41 -06:00
ralf
f58e2a0ace * All apps: fix private custom-fields were shown independent of entry type-filter, if user was allowed to see the field 2024-10-14 17:07:11 +02:00
ralf
1789b6be6f fix customfield with specified tab was also displayed in the default CF tab and therefore not storing its value 2024-08-29 16:16:00 +02:00
nathan
97e4cd7c22 Fix header customfield did not get extra options set 2024-08-12 08:54:20 -06:00
nathan
f7bf94404e Fix label customfield did not get extra options set 2024-08-08 10:57:32 -06:00
nathan
02e35d609f Api: Remove disused ajax-select customfield type 2024-06-25 15:14:32 -06:00
nathan
989f974da0 Api: Filemanager customfield improvements
- Fix links from VFS did not work
- Update list after linking to VFS
- Add noUpload option
2024-06-25 14:58:12 -06:00
nathan
27dc77feb3 Fix customfields were not shown if customfield taboption was not set 2024-06-24 15:50:14 -06:00
ralf
ffca28dd1d fix one more case (empty AB and PM lists) after performance fix for custom fields 2024-05-04 08:10:36 +02:00
ralf
335b66612c fix empty customfields tab after performance fix 2024-05-03 11:50:41 +02:00
nathan
d60d667bd3 Performance improvements for customfields where we have just 1 field, not the whole list 2024-04-29 13:57:06 -06:00
ralf
834e4f7824 fix changing entry-type (with automatic submit) did not change custom-field tabs and displayed fields 2024-04-23 09:45:30 +02:00
ralf
cb5665acd0 * All apps: new custom-field type serial allowing to generate incremented serial number with a given format e.g. "RE2024-0001"
WIP allow to place custom-fields in tabs:
2024-03-30 11:37:34 +02:00
ralf
a63aaad8e9 WIP allow to place custom-fields in tabs: add noVfsSelect option to filemanager custom-field and some docu tooltip for filemanager options 2024-03-27 17:44:57 +02:00
ralf
254fdc0fa3 WIP allow to place custom-fields in tabs: 2 new custom-field types:
- header: (like label with a bigger font and bold)
- serial: auto-incremented serial number
2024-03-27 17:07:02 +02:00
ralf
44db5c68b5 WIP allow to place custom-fields in tabs: fix automatic extension and use name not label
name for filename type cf is a relative path, optionally ending in a / to create a directory with all files the user uploads preserving their name
2024-03-27 14:53:08 +02:00
ralf
25b343be7c WIP allow to place custom-fields in tabs:
- set size of cf name in all apps to 65 chars (calendar, resources, projectmanager had only 40)
- allow units like K or MB for integer values e.g. et2_files max_file_size
- allow to pass accept, mime and max_file_size from Filemanager custom-field to vfs-upload
- allow to use name of "app:$cont[id]:relative-path/" as name for Filemanager custom-field
ToDo/Missing: automatic saving of uploads for not yet saved entries via Api\Storage class
2024-03-26 12:40:51 +02:00
ralf
fd77467b9c WIP allow to place custom-fields in tabs: fix type-filter was not used 2024-03-25 19:52:21 +02:00
ralf
e3b3078066 WIP allow to place custom-fields in tabs: fix (excluded) cfs in regular template always show all exclude cfs, not just the given one 2024-03-25 18:00:22 +02:00
ralf
dedaa29204 WIP allow to place custom-fields in tabs: cfExclude option to et2-tabs to exclude cfs from the tabs e.g. to place them separate into the template 2024-03-25 17:01:51 +02:00
ralf
2e37f9bd34 WIP allow to place custom-fields in specified tabs and automatic tab generation
- no more need to add custom-field tabs to the template, if a et2-tabs is used
- new custom-field options for et2-tabs:
  + cfTypeFilter propagated to type_filter of customfields widget
  + cfPrivateTab use an extra tab for private cfs
  + cfPrepend where to add cf tabs, default before history tab or at the end, if no history tab
2024-03-25 16:03:48 +02:00
nathan
f4146d6b72 * Api: Required numeric customfields were not displayed as required 2024-03-21 08:42:43 -06:00
ralf
5352972e2a WIP allowing to speard custom fields optionally to dynamic generated tabs 2024-03-21 10:28:27 +02:00
ralf
7e9b2f3687 WIP allow to specify an optional tab-name for a cf, to create additional tab(s) and show the cfs in them
currently an extra namespace prevents storing and reading these cfs
2024-03-20 21:49:09 +02:00
nathan
559099ee05 Fix filemanager customfield was not handling required properly, blocking submit 2024-02-29 14:32:58 -07:00
nathan
11f9196b42 Use new VFS Select in customfield type application-filemanager 2024-02-26 14:26:14 -07:00
ralf
782bbec4cf allow to pass a JSON filter object to application-type custom-fields:
adressbook: '{"owner":5,"cat_id":[1,3]}' will only return contacts from personal AB of user #5 with either cat_id 1 or 2
2024-02-08 22:26:26 +02:00
nathan
136c302c15 Fix cf customised setting check if there's no ID 2023-10-13 10:01:24 -06:00
Nathan Gray
e323cd1d79
Feature/shoelace 2.4 upgrade (#135)
Update shoelace to 2.9.0
2023-09-13 11:55:33 -06:00
nathan
0f77eca5c4 Api: Fix custom date & datetime fields with data format set caused a JS error
TypeError: Cannot set property format of #<Et2DateTime> which has only a getter
2023-09-13 09:08:00 -06:00
nathan
d80078893e Api: Fix customfield with no data sent breaks entire customfield tab 2023-09-08 08:41:54 -06:00
nathan
afdca98629 Fix up password customfield
- passwd->et2-password custom field type
- passwordToggle attribute (changed name, icon didn't change)
2023-08-02 15:05:33 -06:00
ralf
d071757bb9 fix TypeError: Cannot read properties of null (reading 'trim') 2023-07-26 14:20:13 +02:00
nathan
edcc260b7b WIP on caching static option file and searching it client-side
Get it working in nextmatch
2023-07-24 15:13:28 -06:00
nathan
f0be2fcdca WIP on caching static option file and searching it client-side
Still needs file caching & passing correct URL
2023-07-21 16:40:29 -06:00
nathan
85cc2a33cd If customfields has a label and only 1 field, use the label for the widget
This lets us use " " as label to hide the custom field's label
2023-06-29 10:52:20 -06:00
nathan
181546cdb5 Fix customfield selects so if rows > 1, we set multiple=true 2022-09-26 11:38:36 -06:00
nathan
446b51d74a Customfields: Explicitly use description widget for readonly text fields 2022-08-30 13:28:15 -06:00
nathan
aee54e5f45 Fix text customfield with rows set did not result in multi-line textarea 2022-08-29 09:21:49 -06:00
ralf
dfba1bba9c fix strange (wrong height and styled) textboxes in CF's 2022-08-24 08:47:53 +02:00
nathan
b7623cb284 Fix missing link entry title in readonly customfield list 2022-07-18 15:24:10 -06:00
nathan
a513bb26f6 Convert customfields to use webcomponents when available 2022-07-08 09:40:16 -06:00
ralf
dc784800b7 loading new Et2Date* instead of dropped et2_date* widget, thought r/o variants in nextmatch are still not working 2022-05-02 13:53:24 +02:00
Ralf Becker
f91bca83e1 got et2 mostly working: timesheet.edit renders 2021-06-07 17:33:53 +02:00
nathangray
be34aa1834 Etemplate: Change r/o URLs to use label as link text 2021-06-04 10:50:23 -06:00