mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-28 11:26:26 -06:00
Add initializers for custom_fields and manufacturers
This commit is contained in:
parent
58ae0f317d
commit
8aab425b45
@ -1,82 +1,11 @@
|
|||||||
# text_field:
|
sf_id:
|
||||||
# type: text
|
type: text
|
||||||
# label: Custom Text
|
label: Salesforce ID
|
||||||
# description: Enter text in a text field.
|
description: Salesforce Record ID
|
||||||
# required: false
|
required: false
|
||||||
# weight: 0
|
weight: 0
|
||||||
# on_objects:
|
filter_logic: exact
|
||||||
# - dcim.models.Device
|
on_objects:
|
||||||
# - dcim.models.Rack
|
- dcim.models.Site
|
||||||
# - dcim.models.Site
|
- dcim.models.Region
|
||||||
# - dcim.models.DeviceType
|
- dcim.models.Device
|
||||||
# - 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
|
|
||||||
# filter_logic: loose
|
|
||||||
# weight: 10
|
|
||||||
# on_objects:
|
|
||||||
# - tenancy.models.Tenant
|
|
||||||
# selection_field:
|
|
||||||
# type: selection
|
|
||||||
# label: Choose between items
|
|
||||||
# required: false
|
|
||||||
# filter_logic: exact
|
|
||||||
# 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
|
|
||||||
# selection_field_auto_weight:
|
|
||||||
# type: selection
|
|
||||||
# label: Choose between items
|
|
||||||
# required: false
|
|
||||||
# filter_logic: loose
|
|
||||||
# weight: 30
|
|
||||||
# on_objects:
|
|
||||||
# - dcim.models.Device
|
|
||||||
# choices:
|
|
||||||
# - value: A
|
|
||||||
# - value: B
|
|
||||||
# - value: C
|
|
||||||
# - value: "D like deprecated"
|
|
||||||
# weight: 999
|
|
||||||
# - value: E
|
|
||||||
# boolean_field:
|
|
||||||
# type: boolean
|
|
||||||
# label: Yes Or No?
|
|
||||||
# required: true
|
|
||||||
# filter_logic: loose
|
|
||||||
# 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
|
|
||||||
# filter_logic: disabled
|
|
||||||
# on_objects:
|
|
||||||
# - tenancy.models.Tenant
|
|
||||||
# date_field:
|
|
||||||
# type: date
|
|
||||||
# label: Important Date
|
|
||||||
# required: false
|
|
||||||
# filter_logic: disabled
|
|
||||||
# on_objects:
|
|
||||||
# - dcim.models.Device
|
|
||||||
|
@ -16,3 +16,5 @@
|
|||||||
slug: ubiquiti-networks-inc
|
slug: ubiquiti-networks-inc
|
||||||
- name: Vapor, IO
|
- name: Vapor, IO
|
||||||
slug: vapor
|
slug: vapor
|
||||||
|
- name: Rittal Inc
|
||||||
|
slug: rittal-inc
|
||||||
|
Loading…
Reference in New Issue
Block a user