+ /*
+ * Add additional input fields in the tools.
+ * A field is an array containing:
+ * [
+ * 'form-attribute-1' => 'form attribute 1 value',
+ * 'form-attribute-2' => 'form attribute 2 value',
+ * 'inputs' => [
+ * [
+ * 'input-1-attribute-1 => 'input 1 attribute 1 value',
+ * 'input-1-attribute-2 => 'input 1 attribute 2 value',
+ * ],
+ * [
+ * 'input-2-attribute-1 => 'input 2 attribute 1 value',
+ * ],
+ * ],
+ * ]
+ * This example renders as:
+ * <form form-attribute-1="form attribute 1 value" form-attribute-2="form attribute 2 value">
+ * <input input-1-attribute-1="input 1 attribute 1 value" input-1-attribute-2="input 1 attribute 2 value">
+ * <input input-2-attribute-1="input 2 attribute 1 value">
+ * </form>
+ */
+ $form = [
+ 'attr' => [
+ 'method' => 'GET',
+ 'action' => $data['_BASE_PATH_'] . '/',
+ 'class' => 'addform',
+ ],
+ 'inputs' => [
+ [
+ 'type' => 'text',
+ 'name' => 'demo',
+ 'placeholder' => 'demo',
+ ]
+ ]
+ ];
+ $data['fields_toolbar'][] = $form;