From ec19924bea69f955898093b5cad9449f10cfc6ea Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 23 Aug 2016 15:52:34 -0700 Subject: [PATCH] Custom field types --- resources/macros/macros.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/resources/macros/macros.php b/resources/macros/macros.php index 2ad17c618f..5c7f5cdb9e 100644 --- a/resources/macros/macros.php +++ b/resources/macros/macros.php @@ -472,3 +472,24 @@ Form::macro('username_format', function ($name = "username_format", $selected = return $select; }); + + +Form::macro('customfield_elements', function ($name = "customfield_elements", $selected = null, $class = null) { + + $formats = array( + 'text' => 'Text Box', + 'listbox' => 'List Box', + 'checkbox' => 'Checkbox', + 'radio' => 'Radio Buttons', + ); + + $select = ''; + + return $select; + +});