完善Activity页面类型
This commit is contained in:
parent
a72ae0f66d
commit
849291e50f
@ -9,7 +9,16 @@
|
||||
"column_break_a6n7",
|
||||
"activity_type",
|
||||
"section_break_tauu",
|
||||
"content"
|
||||
"content",
|
||||
"reference_section",
|
||||
"reference_pagetype",
|
||||
"column_break_ref",
|
||||
"reference_name",
|
||||
"assignment_section",
|
||||
"assigned_to",
|
||||
"column_break_assign",
|
||||
"due_date",
|
||||
"priority"
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
@ -28,16 +37,78 @@
|
||||
{
|
||||
"fieldname": "activity_type",
|
||||
"fieldtype": "Select",
|
||||
"label": "Activity Type"
|
||||
"in_list_view": 1,
|
||||
"in_standard_filter": 1,
|
||||
"label": "Activity Type",
|
||||
"options": "Call\nEmail\nMeeting\nNote\nTask\nReminder\nFollow-up\nMilestone\nDecision\nUpdate\nIssue\nFeedback",
|
||||
"default": "Note",
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "section_break_tauu",
|
||||
"fieldtype": "Section Break"
|
||||
"fieldtype": "Section Break",
|
||||
"label": "Details"
|
||||
},
|
||||
{
|
||||
"fieldname": "content",
|
||||
"fieldtype": "Jeditor",
|
||||
"label": "Content"
|
||||
},
|
||||
{
|
||||
"fieldname": "reference_section",
|
||||
"fieldtype": "Section Break",
|
||||
"label": "Reference",
|
||||
"collapsible": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "reference_pagetype",
|
||||
"fieldtype": "Link",
|
||||
"label": "Reference Document Type",
|
||||
"options": "PageType",
|
||||
"search_index": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "column_break_ref",
|
||||
"fieldtype": "Column Break"
|
||||
},
|
||||
{
|
||||
"fieldname": "reference_name",
|
||||
"fieldtype": "Dynamic Link",
|
||||
"label": "Reference Name",
|
||||
"options": "reference_pagetype",
|
||||
"search_index": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "assignment_section",
|
||||
"fieldtype": "Section Break",
|
||||
"label": "Assignment",
|
||||
"collapsible": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "assigned_to",
|
||||
"fieldtype": "Link",
|
||||
"in_standard_filter": 1,
|
||||
"label": "Assigned To",
|
||||
"options": "User"
|
||||
},
|
||||
{
|
||||
"fieldname": "column_break_assign",
|
||||
"fieldtype": "Column Break"
|
||||
},
|
||||
{
|
||||
"fieldname": "due_date",
|
||||
"fieldtype": "Date",
|
||||
"in_list_view": 1,
|
||||
"in_standard_filter": 1,
|
||||
"label": "Due Date"
|
||||
},
|
||||
{
|
||||
"fieldname": "priority",
|
||||
"fieldtype": "Select",
|
||||
"in_standard_filter": 1,
|
||||
"label": "Priority",
|
||||
"options": "Low\nMedium\nHigh\nUrgent",
|
||||
"default": "Medium"
|
||||
}
|
||||
],
|
||||
"grid_page_length": 50,
|
||||
@ -66,5 +137,7 @@
|
||||
"row_format": "Dynamic",
|
||||
"sort_field": "modified",
|
||||
"sort_order": "DESC",
|
||||
"states": []
|
||||
"states": [],
|
||||
"title_field": "title",
|
||||
"search_fields": "title, activity_type"
|
||||
}
|
||||
@ -14,7 +14,17 @@ class Activity(Page):
|
||||
if TYPE_CHECKING:
|
||||
from jingrow.types import DF
|
||||
|
||||
activity_type: DF.Literal[None]
|
||||
activity_type: DF.Literal[
|
||||
"Call", "Email", "Meeting", "Note", "Task",
|
||||
"Reminder", "Follow-up", "Milestone", "Decision",
|
||||
"Update", "Issue", "Feedback"
|
||||
]
|
||||
assigned_to: DF.Link | None
|
||||
content: DF.Jeditor | None
|
||||
due_date: DF.Date | None
|
||||
priority: DF.Literal["Low", "Medium", "High", "Urgent"]
|
||||
reference_name: DF.DynamicLink | None
|
||||
reference_pagetype: DF.Link | None
|
||||
title: DF.Data
|
||||
# end: auto-generated types
|
||||
pass
|
||||
|
||||
@ -35676,4 +35676,27 @@ msgstr "确定要清除所有错误日志吗?此操作无法撤销。"
|
||||
msgid "Failed to clear error logs"
|
||||
msgstr "清除错误日志失败"
|
||||
|
||||
# Activity Type options
|
||||
msgid "Call"
|
||||
msgstr "通话"
|
||||
|
||||
msgid "Follow-up"
|
||||
msgstr "跟进"
|
||||
|
||||
msgid "Milestone"
|
||||
msgstr "里程碑"
|
||||
|
||||
msgid "Decision"
|
||||
msgstr "决策"
|
||||
|
||||
msgid "Feedback"
|
||||
msgstr "反馈"
|
||||
|
||||
# Activity Status options
|
||||
msgid "In Progress"
|
||||
msgstr "进行中"
|
||||
|
||||
# Activity Priority options
|
||||
msgid "Urgent"
|
||||
msgstr "紧急"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user