Skip to content

Commit ba626dc

Browse files
resolved #291
1 parent 7b444ac commit ba626dc

File tree

4 files changed

+456
-207
lines changed

4 files changed

+456
-207
lines changed

reference/forms/types/birthday.rst

Lines changed: 74 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,95 @@
11
.. index::
22
single: Forms; Fields; birthday
33

4-
birthday Field Type
5-
===================
6-
7-
A :doc:`date</reference/forms/types/date>` field that specializes in handling
8-
birthdate data.
9-
10-
Can be rendered as a single text box, three text boxes (month, day, and year),
11-
or three select boxes.
12-
13-
This type is essentially the same as the :doc:`date</reference/forms/types/date>`
14-
type, but with a more appropriate default for the `years`_ option. The `years`_
15-
option defaults to 120 years ago to the current year.
16-
17-
+----------------------+------------------------------------------------------------------------------------------------------------------------+
18-
| Underlying Data Type | can be ``DateTime``, ``string``, ``timestamp``, or ``array`` (see the :ref:`input option <form-reference-date-input>`) |
19-
+----------------------+------------------------------------------------------------------------------------------------------------------------+
20-
| Rendered as | can be three select boxes or 1 or 3 text boxes, based on the `widget`_ option |
21-
+----------------------+------------------------------------------------------------------------------------------------------------------------+
22-
| Options | - `years`_ |
23-
+----------------------+------------------------------------------------------------------------------------------------------------------------+
24-
| Inherited | - `widget`_ |
25-
| options | - `input`_ |
26-
| | - `months`_ |
27-
| | - `days`_ |
28-
| | - `format`_ |
29-
| | - `pattern`_ |
30-
| | - `data_timezone`_ |
31-
| | - `user_timezone`_ |
32-
+----------------------+------------------------------------------------------------------------------------------------------------------------+
33-
| Parent type | :doc:`date</reference/forms/types/date>` |
34-
+----------------------+------------------------------------------------------------------------------------------------------------------------+
35-
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\BirthdayType` |
36-
+----------------------+------------------------------------------------------------------------------------------------------------------------+
37-
38-
Field Options
39-
-------------
4+
.. note::
5+
6+
* 対象バージョン:2.3+
7+
* 翻訳更新日:2014/04/23
8+
9+
birthday フィールドタイプ
10+
=========================
11+
12+
:doc:`date </reference/forms/types/date>` フィールドは誕生日のデータを取り扱うことに特化しています。
13+
14+
1つのテキストボックス、または、3つ(年月日)のテキストボックス、または、3つのセレクトボックスとして表示されます。
15+
16+
このタイプは :doc:`date </reference/forms/types/date>` タイプと基本的に同じですが、より適切なデフォルトを `years`_ オプションにもちます。
17+
`years`_ オプションにはデフォルトで 120年前から今年まで(の選択肢が入ります)。
18+
19+
+------------------------+-------------------------------------------------------------------------------------------+
20+
| 対応するデータ型 | ``DateTime``, ``string``, ``timestamp``, ``array`` |
21+
| | (参照 :ref:`input option <form-reference-date-input>`) |
22+
+------------------------+-------------------------------------------------------------------------------------------+
23+
| 対応するタグ | `widget`_ オプションに基づいた3つのセレクトボックス、または、1つか3つのテキストボックス |
24+
+------------------------+-------------------------------------------------------------------------------------------+
25+
| 上書きされたオプション | - `years`_ |
26+
+------------------------+-------------------------------------------------------------------------------------------+
27+
| 継承されたオプション | - `widget`_ |
28+
| | - `input`_ |
29+
| | - `empty_value`_ |
30+
| | - `months`_ |
31+
| | - `days`_ |
32+
| | - `format`_ |
33+
| | - `model_timezone`_ |
34+
| | - `view_timezone`_ |
35+
| | - `data`_ |
36+
| | - `invalid_message`_ |
37+
| | - `invalid_message_parameters`_ |
38+
| | - `read_only`_ |
39+
| | - `disabled`_ |
40+
| | - `mapped`_ |
41+
| | - `inherit_data`_ |
42+
+------------------------+-------------------------------------------------------------------------------------------+
43+
| 親タイプ | :doc:`date </reference/forms/types/date>` |
44+
+------------------------+-------------------------------------------------------------------------------------------+
45+
| クラス | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\BirthdayType` |
46+
+------------------------+-------------------------------------------------------------------------------------------+
47+
48+
上書きされたオプション
49+
----------------------
4050

4151
years
4252
~~~~~
4353

44-
**type**: ``array`` **default**: 120 years ago to the current year
54+
**データ型**: ``array`` **デフォルト**: 120年前から今年まで
4555

46-
List of years available to the year field type. This option is only
47-
relevant when the ``widget`` option is set to ``choice``.
56+
``year`` フィールドタイプで使用可能な年のリストです。このオプションは ``widget`` オプションが ``choice`` のときにのみ関連があります。
4857

49-
Inherited options
50-
-----------------
58+
継承されたオプション
59+
--------------------
5160

52-
These options inherit from the :doc:`date</reference/forms/types/date>` type:
61+
以下のオプションは :doc:`date </reference/forms/types/date>` タイプを継承しています:
5362

5463
.. include:: /reference/forms/types/options/date_widget.rst.inc
55-
64+
5665
.. include:: /reference/forms/types/options/date_input.rst.inc
5766

67+
.. include:: /reference/forms/types/options/empty_value.rst.inc
68+
5869
.. include:: /reference/forms/types/options/months.rst.inc
5970

6071
.. include:: /reference/forms/types/options/days.rst.inc
6172

6273
.. include:: /reference/forms/types/options/date_format.rst.inc
63-
64-
.. include:: /reference/forms/types/options/date_pattern.rst.inc
6574

66-
.. include:: /reference/forms/types/options/data_timezone.rst.inc
75+
.. include:: /reference/forms/types/options/model_timezone.rst.inc
76+
77+
.. include:: /reference/forms/types/options/view_timezone.rst.inc
78+
79+
以下のオプションは :doc:`form </reference/forms/types/form>` タイプを継承しています:
80+
81+
.. include:: /reference/forms/types/options/data.rst.inc
82+
83+
.. include:: /reference/forms/types/options/invalid_message.rst.inc
84+
85+
.. include:: /reference/forms/types/options/invalid_message_parameters.rst.inc
86+
87+
.. include:: /reference/forms/types/options/read_only.rst.inc
88+
89+
.. include:: /reference/forms/types/options/disabled.rst.inc
90+
91+
.. include:: /reference/forms/types/options/mapped.rst.inc
92+
93+
.. include:: /reference/forms/types/options/inherit_data.rst.inc
6794

68-
.. include:: /reference/forms/types/options/user_timezone.rst.inc
95+
.. 2014/04/23 yositani2002 d49d12eaf265a5d6d32ac660c62f385d57261475

0 commit comments

Comments
 (0)