From 08f03a75b08281900fc58bd65f4e7b2308b1ca34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 7 Apr 2017 23:06:08 +0200 Subject: [PATCH] add forms - new date picker --- source/development/forms.rst | 31 +++++++++++++++++++++++++++++++ source/development/index.rst | 1 + 2 files changed, 32 insertions(+) create mode 100644 source/development/forms.rst diff --git a/source/development/forms.rst b/source/development/forms.rst new file mode 100644 index 000000000..e71e7bb55 --- /dev/null +++ b/source/development/forms.rst @@ -0,0 +1,31 @@ + +.. Copyright (C) 2014 Champs Libres Cooperative SCRLFS + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU Free Documentation License, Version 1.3 + or any later version published by the Free Software Foundation; + with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. + A copy of the license is included in the section entitled "GNU + Free Documentation License". + +.. _forms: + +Forms and form types +#################### + +Date picker +*********** + +Class + :class:`Chill\MainBundle\Form\Type\ChillDateType` +Extend + :class:`Symfony\Component\Form\Extension\Core\Type\DateType` + + +Usage : + +.. code-block:: php + + use Chill\MainBundle\Form\Type\ChillDateType; + + $builder->add('date' ChillDateType::class); + diff --git a/source/development/index.rst b/source/development/index.rst index f521ef369..b4b6786c2 100644 --- a/source/development/index.rst +++ b/source/development/index.rst @@ -18,6 +18,7 @@ As Chill rely on the `symfony `_ framework, reading the fram Instructions to create a new bundle Routing Menus + Forms Access control model Messages to users Pagination