2020-01-17 08:22:16 -06:00
|
|
|
## Possible Choices:
|
|
|
|
## type:
|
|
|
|
## - text
|
|
|
|
## - integer
|
|
|
|
## - boolean
|
|
|
|
## - date
|
|
|
|
## - url
|
|
|
|
## - select
|
|
|
|
## filter_logic:
|
|
|
|
## - disabled
|
|
|
|
## - loose
|
|
|
|
## - exact
|
|
|
|
##
|
|
|
|
## Examples:
|
|
|
|
|
2018-02-16 03:25:26 -06: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
|
2018-10-16 06:26:23 -05:00
|
|
|
# - dcim.models.Site
|
|
|
|
# - dcim.models.DeviceType
|
2018-02-16 03:25:26 -06:00
|
|
|
# - 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 12:04:29 -05:00
|
|
|
# filter_logic: loose
|
2018-02-16 03:25:26 -06:00
|
|
|
# weight: 10
|
|
|
|
# on_objects:
|
|
|
|
# - tenancy.models.Tenant
|
2020-10-17 14:51:38 -05:00
|
|
|
# select_field:
|
|
|
|
# type: select
|
|
|
|
# label: Choose between items
|
|
|
|
# required: false
|
|
|
|
# filter_logic: exact
|
|
|
|
# weight: 30
|
|
|
|
# default: First Item
|
|
|
|
# on_objects:
|
|
|
|
# - dcim.models.Device
|
|
|
|
# choices:
|
|
|
|
# - First Item
|
|
|
|
# - Second Item
|
|
|
|
# - Third Item
|
|
|
|
# - Fifth Item
|
|
|
|
# - Fourth Item
|
2020-12-14 15:09:08 -06:00
|
|
|
# select_field_legacy_format:
|
2021-02-08 04:59:33 -06:00
|
|
|
# type: select
|
|
|
|
# label: Choose between items
|
|
|
|
# required: false
|
|
|
|
# filter_logic: loose
|
|
|
|
# weight: 30
|
|
|
|
# on_objects:
|
|
|
|
# - dcim.models.Device
|
|
|
|
# choices:
|
|
|
|
# - value: A # this is the deprecated format.
|
|
|
|
# - value: B # we only use it for the tests.
|
|
|
|
# - value: C # please see above for the new format.
|
|
|
|
# - value: "D like deprecated"
|
|
|
|
# weight: 999
|
|
|
|
# - value: E
|
2018-02-16 03:25:26 -06:00
|
|
|
# boolean_field:
|
|
|
|
# type: boolean
|
|
|
|
# label: Yes Or No?
|
|
|
|
# required: true
|
2018-04-18 12:04:29 -05:00
|
|
|
# filter_logic: loose
|
2020-10-17 14:51:38 -05:00
|
|
|
# default: "false" # important: put "false" in quotes!
|
2018-02-16 03:25:26 -06:00
|
|
|
# weight: 90
|
|
|
|
# on_objects:
|
|
|
|
# - dcim.models.Device
|
|
|
|
# url_field:
|
|
|
|
# type: url
|
|
|
|
# label: Hyperlink
|
|
|
|
# description: Link to something nice.
|
|
|
|
# required: true
|
2018-04-18 12:04:29 -05:00
|
|
|
# filter_logic: disabled
|
2018-02-16 03:25:26 -06:00
|
|
|
# on_objects:
|
|
|
|
# - tenancy.models.Tenant
|
|
|
|
# date_field:
|
|
|
|
# type: date
|
|
|
|
# label: Important Date
|
|
|
|
# required: false
|
2018-04-18 12:04:29 -05:00
|
|
|
# filter_logic: disabled
|
2018-02-16 03:25:26 -06:00
|
|
|
# on_objects:
|
|
|
|
# - dcim.models.Device
|