|
@@ -1,57 +1,26 @@
|
|
|
class App.Macro extends App.Model
|
|
|
- @configure 'Macro', 'name', 'perform', 'ux_flow_next_up', 'note', 'active'
|
|
|
+ @configure 'Macro', 'name', 'perform', 'ux_flow_next_up', 'note', 'group_ids', 'active'
|
|
|
@extend Spine.Model.Ajax
|
|
|
@url: @apiPath + '/macros'
|
|
|
@configure_attributes = [
|
|
|
- {
|
|
|
- name: 'name',
|
|
|
- display: 'Name',
|
|
|
- tag: 'input',
|
|
|
- type: 'text',
|
|
|
- limit: 100,
|
|
|
- null: false
|
|
|
+ { name: 'name', display: 'Name', tag: 'input', type: 'text', limit: 100, null: false },
|
|
|
+ { name: 'perform', display: 'Actions', tag: 'ticket_perform_action', null: true
|
|
|
},
|
|
|
- {
|
|
|
- name: 'perform',
|
|
|
- display: 'Actions',
|
|
|
- tag: 'ticket_perform_action',
|
|
|
- null: true
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'ux_flow_next_up',
|
|
|
- display: 'Once completed...',
|
|
|
- tag: 'select',
|
|
|
- default: 'none',
|
|
|
- options: {
|
|
|
- none: 'Stay on tab',
|
|
|
- next_task: 'Close tab',
|
|
|
- next_from_overview: 'Advance to next ticket from overview'
|
|
|
+ { name: 'ux_flow_next_up', display: 'Once completed...', tag: 'select', default: 'none', options: {
|
|
|
+ none: 'Stay on tab', next_task: 'Close tab', next_from_overview: 'Advance to next ticket from overview'
|
|
|
}
|
|
|
},
|
|
|
- {
|
|
|
- name: 'updated_at',
|
|
|
- display: 'Updated',
|
|
|
- tag: 'datetime',
|
|
|
- readonly: 1
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'note',
|
|
|
- display: 'Note',
|
|
|
- tag: 'textarea',
|
|
|
- limit: 250,
|
|
|
- null: true
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'active',
|
|
|
- display: 'Active',
|
|
|
- tag: 'active',
|
|
|
- default: true
|
|
|
- },
|
|
|
+ { name: 'updated_at', display: 'Updated', tag: 'datetime', readonly: 1 },
|
|
|
+ { name: 'note', display: 'Note', tag: 'textarea', limit: 250, null: true },
|
|
|
+ { name: 'group_ids', display: 'Groups', tag: 'column_select', relation: 'Group', null: true },
|
|
|
+ { name: 'active', display: 'Active', tag: 'active', default: true },
|
|
|
]
|
|
|
@configure_delete = true
|
|
|
@configure_clone = true
|
|
|
@configure_overview = [
|
|
|
'name',
|
|
|
+ 'note',
|
|
|
+ 'group_ids',
|
|
|
]
|
|
|
|
|
|
@description = '''
|