Development: Field Types: Add MacAddressField and update HostnameField

pull/534/head
Stephan de Wit 4 months ago
parent 858c9f5f79
commit 7bba0a44a5

@ -219,6 +219,8 @@ Check if hostnames are valid, includes the following options:
"HostWildcardAllowed", "Y,N", "Allow :code:`*` for all hostnames"
"FqdnWildcardAllowed", "Y,N", "Allow partial wildcard for fully qualified domain names (e.g. :code:`*.my.top.level.domain`)"
"ZoneRootAllowed", "Y,N", "Allow the zone root marker (:code:`@`)"
"AsList", "Y,N", "Field type should return list items"
"FieldSeparator", ":code:`text`", "Separator character to use"
IntegerField
@ -324,6 +326,22 @@ The following example would read the enabled property from the config xml, which
When functionality migrates to mvc, you can switch the type and supply migration code to load the initial values.
MacAddressField
------------------------------------
Validate if the given value (or multiple values) is a valid MAC address.
.. csv-table:: MacAddressField
:header: "Parameter", "Options", "Purpose"
:widths: 30, 20, 40
"default", ":code:`text`", "Default value for new attributes"
"Required", "Y,N", "Mark field as required"
"ValidationMessage", ":code:`text`", "Error message on validation failure"
"AsList", "Y,N", "Field type should return list items"
"FieldSeparator", ":code:`text`", "Separator character to use"
ModelRelationField
------------------------------------

Loading…
Cancel
Save