From 2d9f20f2c516d8797c9191dca98a60659ff2e222 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 17 Sep 2015 08:37:41 +0200 Subject: [PATCH] Introduce form class DashletForm refs #5600 --- application/forms/Navigation/DashletForm.php | 34 ++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 application/forms/Navigation/DashletForm.php diff --git a/application/forms/Navigation/DashletForm.php b/application/forms/Navigation/DashletForm.php new file mode 100644 index 000000000..dc9a02803 --- /dev/null +++ b/application/forms/Navigation/DashletForm.php @@ -0,0 +1,34 @@ +addElement( + 'text', + 'pane', + array( + 'required' => true, + 'label' => $this->translate('Pane'), + 'description' => $this->translate('The name of the dashboard pane in which to display this dashlet') + ) + ); + $this->addElement( + 'text', + 'url', + array( + 'required' => true, + 'label' => $this->translate('Url'), + 'description' => $this->translate('The url to load in the dashlet') + ) + ); + } +}