Skip to content

Commit f498daa

Browse files
committed
birthday - inh options + years options added fix
1 parent 0a1d79f commit f498daa

File tree

4 files changed

+19
-5
lines changed

4 files changed

+19
-5
lines changed

reference/forms/types/birthday.rst

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ years ago to the current year.
1818
+----------------------+------------------------------------------------------------------------------------------------------------------------+
1919
| Rendered as | can be three select boxes or a text box, based on the ``widget`` option |
2020
+----------------------+------------------------------------------------------------------------------------------------------------------------+
21-
| Options | - ``widget`` |
22-
| | - ``input`` |
23-
| | - ``years`` |
21+
| Options | - ``years`` |
22+
+----------------------+------------------------------------------------------------------------------------------------------------------------+
23+
| Inherited | - ``widget`` |
24+
| options | - ``input`` |
2425
| | - ``months`` |
2526
| | - ``days`` |
2627
| | - ``format`` |
@@ -36,6 +37,13 @@ years ago to the current year.
3637
Options
3738
-------
3839

40+
.. include:: /reference/forms/types/options/years_birthday.rst.inc
41+
42+
Inherited options
43+
-----------------
44+
45+
These options inherit from the parent dateType class.
46+
3947
* ``widget`` [type: string, default: ``choice``]
4048
Type of widget used for this form type. Can be ``text`` or ``choice``.
4149

@@ -54,8 +62,6 @@ Options
5462
5563
array('month' => 4, 'day' => 21, 'year' => 2011 )
5664
57-
.. include:: /reference/forms/types/options/years.rst.inc
58-
5965
.. include:: /reference/forms/types/options/months.rst.inc
6066

6167
.. include:: /reference/forms/types/options/days.rst.inc

reference/forms/types/checkbox.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ Options
3737
The value that's actually used as the value for the checkbox. This does
3838
not affect the value that's set on your object.
3939

40+
.. include:: /reference/forms/types/options/inherit_expl.rst.inc
41+
4042
.. include:: /reference/forms/types/options/required.rst.inc
4143

4244
.. include:: /reference/forms/types/options/label.rst.inc
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Inherited options
2+
-----------------
3+
4+
These options inherit from the parent fieldType class.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* ``years`` [type: array, default: 120 years ago to the current year ]
2+
List of years available to the year field type. This option is only relevant when the ``widget`` option is set to ``choice``.

0 commit comments

Comments
 (0)