Add support for a "bool" type to Maniphest's default field extensions
Summary: - On the edit view, this is represented as a checkbox. - On the detail view, it renders with a user-selectable string. Test Plan: Added a bool field to my local install, checked and unchecked it. Reviewers: zeeg, jungejason, btrahan Reviewed By: jungejason CC: aran, jungejason Differential Revision: https://secure.phabricator.com/D1277
This commit is contained in:
@@ -44,11 +44,15 @@ Each array key must be unique, and is used to organize the internal storage of
|
||||
the field. These options are available:
|
||||
|
||||
- **label**: Display label for the field on the edit and detail interfaces.
|
||||
- **type**: Field type, one of **int**, **string** or **select**.
|
||||
- **type**: Field type, one of **int**, **string**, **bool** or **select**.
|
||||
- **caption**: A caption to display underneath the field (optional).
|
||||
- **required**: True if the user should be required to provide a value.
|
||||
- **options**: If type is set to **select**, provide options for the dropdown
|
||||
as a dictionary.
|
||||
- **checkbox-label**: If type is set to **bool**, an optional string to
|
||||
show next to the checkbox.
|
||||
- **checkbox-value**: If type is set to **bool**, the value to show on
|
||||
the detail view when the checkbox is selected.
|
||||
|
||||
= Advanced Field Customization =
|
||||
|
||||
|
||||
Reference in New Issue
Block a user