migrate custom field management to filament

fix xss
This commit is contained in:
NekoCH
2025-12-28 22:36:52 +08:00
parent f18fa80eac
commit 00ec3d5e8d
11 changed files with 235 additions and 10 deletions

View File

@@ -0,0 +1,12 @@
<?php
return [
'type' => [
'text' => 'Short text',
'textarea' => 'Long text',
'radio' => 'Horizontal single select',
'checkbox' => 'Horizontal multiple select',
'select' => 'Vertical single select',
'image' => 'Image',
],
];

View File

@@ -456,4 +456,18 @@ Note: In 1.8, the 'searchbox_name' part can be omitted, i.e. the rule is 'pic/ca
'select_section' => 'Selections',
'select_section_help' => "If a selection is not defined, all options from the selection are allowed for the rule. At least one selection should be defined.",
],
'field' => [
'label' => 'Custom field',
'name' => 'Name',
'name_help' => 'Only allow digit, alphabet, underline',
'field_label' => 'Display label',
'type' => 'Type',
'required' => 'Required',
'mod_only' => 'Mod only',
'help' => 'Help text',
'options' => 'Options',
'options_help' => 'Required when type is radio, checkbox, select. One line, one option, format: value|display text',
'is_single_row' => 'Display on a single row',
'display' => 'Custom display',
]
];

View File

@@ -0,0 +1,12 @@
<?php
return [
'type' => [
'text' => '短文本',
'textarea' => '长文本',
'radio' => '横向单选',
'checkbox' => '横向多选',
'select' => '下拉单选',
'image' => '图片',
],
];

View File

@@ -498,4 +498,18 @@ return [
'select_section' => '选择',
'select_section_help' => "如果某个选择未指定,其所有选项都符合此规则。必须至少指定一个选择。",
],
'field' => [
'label' => '自定义字段',
'name' => '名称',
'name_help' => '仅允许数字、字母、下划线',
'field_label' => '显示标签',
'type' => '类型',
'required' => '不能为空',
'mod_only' => '仅管理组可见',
'help' => '辅助说明',
'options' => '选项',
'options_help' => '类型为单选、多选、下拉时必填,一行一个,格式:选项值|选项描述文本',
'is_single_row' => '展示时单独一行',
'display' => '自定义展示',
]
];