2018-02-16 10:25:26 +01:00
|
|
|
# text_field:
|
|
|
|
# type: text
|
|
|
|
# label: Custom Text
|
|
|
|
# description: Enter text in a text field.
|
|
|
|
# required: false
|
|
|
|
# weight: 0
|
|
|
|
# on_objects:
|
|
|
|
# - dcim.models.Device
|
|
|
|
# - dcim.models.Rack
|
|
|
|
# - ipam.models.IPAddress
|
|
|
|
# - ipam.models.Prefix
|
|
|
|
# - tenancy.models.Tenant
|
|
|
|
# - virtualization.models.VirtualMachine
|
|
|
|
# integer_field:
|
|
|
|
# type: integer
|
|
|
|
# label: Custom Number
|
|
|
|
# description: Enter numbers into an integer field.
|
|
|
|
# required: true
|
2018-04-18 19:04:29 +02:00
|
|
|
# filter_logic: loose
|
2018-02-16 10:25:26 +01:00
|
|
|
# weight: 10
|
|
|
|
# on_objects:
|
|
|
|
# - tenancy.models.Tenant
|
|
|
|
# selection_field:
|
|
|
|
# type: selection
|
|
|
|
# label: Choose between items
|
|
|
|
# required: false
|
2018-04-18 19:04:29 +02:00
|
|
|
# filter_logic: exact
|
2018-02-16 10:25:26 +01:00
|
|
|
# weight: 30
|
|
|
|
# on_objects:
|
|
|
|
# - dcim.models.Device
|
|
|
|
# choices:
|
|
|
|
# - value: First Item
|
|
|
|
# weight: 10
|
|
|
|
# - value: Second Item
|
|
|
|
# weight: 20
|
|
|
|
# - value: Third Item
|
|
|
|
# weight: 30
|
|
|
|
# - value: Fifth Item
|
|
|
|
# weight: 50
|
|
|
|
# - value: Fourth Item
|
|
|
|
# weight: 40
|
2018-04-18 18:51:04 +02:00
|
|
|
# selection_field_auto_weight:
|
|
|
|
# type: selection
|
|
|
|
# label: Choose between items
|
|
|
|
# required: false
|
2018-06-28 09:28:07 +02:00
|
|
|
# filter_logic: loose
|
2018-04-18 18:51:04 +02:00
|
|
|
# weight: 30
|
|
|
|
# on_objects:
|
|
|
|
# - dcim.models.Device
|
|
|
|
# choices:
|
|
|
|
# - value: A
|
|
|
|
# - value: B
|
|
|
|
# - value: C
|
|
|
|
# - value: "D like deprecated"
|
|
|
|
# weight: 999
|
|
|
|
# - value: E
|
2018-02-16 10:25:26 +01:00
|
|
|
# boolean_field:
|
|
|
|
# type: boolean
|
|
|
|
# label: Yes Or No?
|
|
|
|
# required: true
|
2018-04-18 19:04:29 +02:00
|
|
|
# filter_logic: loose
|
2018-02-16 10:25:26 +01:00
|
|
|
# default: "false" # important: but "false" in quotes!
|
|
|
|
# weight: 90
|
|
|
|
# on_objects:
|
|
|
|
# - dcim.models.Device
|
|
|
|
# url_field:
|
|
|
|
# type: url
|
|
|
|
# label: Hyperlink
|
|
|
|
# description: Link to something nice.
|
|
|
|
# required: true
|
2018-04-18 19:04:29 +02:00
|
|
|
# filter_logic: disabled
|
2018-02-16 10:25:26 +01:00
|
|
|
# on_objects:
|
|
|
|
# - tenancy.models.Tenant
|
|
|
|
# date_field:
|
|
|
|
# type: date
|
|
|
|
# label: Important Date
|
|
|
|
# required: false
|
2018-04-18 19:04:29 +02:00
|
|
|
# filter_logic: disabled
|
2018-02-16 10:25:26 +01:00
|
|
|
# on_objects:
|
|
|
|
# - dcim.models.Device
|