Skip to content

Commit 00ae24b

Browse files
committed
Merge branch '2.8' into 3.4
* 2.8: [Form] Removed Integer scale option Minor fixes Update swiftmailer.rst
2 parents 350a9d9 + cba7e6a commit 00ae24b

File tree

4 files changed

+28
-14
lines changed

4 files changed

+28
-14
lines changed

reference/configuration/swiftmailer.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Configuration
2222
* `transport`_
2323
* `username`_
2424
* `password`_
25+
* `command`_
2526
* `host`_
2627
* `port`_
2728
* `timeout`_
@@ -77,6 +78,13 @@ password
7778

7879
The password when using ``smtp`` as the transport.
7980

81+
command
82+
~~~~~~~~
83+
84+
**type**: ``string`` **default**: ``/usr/sbin/sendmail -bs``
85+
86+
Command to be executed by ``sendmail`` transport.
87+
8088
host
8189
~~~~
8290

reference/forms/types/integer.rst

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@ integers. By default, all non-integer values (e.g. 6.78) will round down
1717
| Rendered as | ``input`` ``number`` field |
1818
+-------------+-----------------------------------------------------------------------+
1919
| Options | - `grouping`_ |
20-
| | - `scale`_ |
2120
| | - `rounding_mode`_ |
2221
+-------------+-----------------------------------------------------------------------+
2322
| Overridden | - `compound`_ |
24-
| options | |
23+
| options | - `scale`_ |
2524
+-------------+-----------------------------------------------------------------------+
2625
| Inherited | - `data`_ |
2726
| options | - `disabled`_ |
@@ -46,8 +45,6 @@ Field Options
4645

4746
.. include:: /reference/forms/types/options/grouping.rst.inc
4847

49-
.. include:: /reference/forms/types/options/scale.rst.inc
50-
5148
rounding_mode
5249
~~~~~~~~~~~~~
5350

@@ -82,6 +79,16 @@ Overridden Options
8279

8380
.. include:: /reference/forms/types/options/compound_type.rst.inc
8481

82+
scale
83+
~~~~~
84+
85+
**type**: ``integer`` **default**: ``0``
86+
87+
This specifies how many decimals will be allowed until the field rounds the
88+
submitted value (via ``rounding_mode``). This option inherits from
89+
:doc:`number </reference/forms/types/number>` type and is overriden to ``0`` for
90+
``IntegerType``.
91+
8592
Inherited Options
8693
-----------------
8794

reference/forms/types/number.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,15 @@ Field Options
4141

4242
.. include:: /reference/forms/types/options/grouping.rst.inc
4343

44-
.. include:: /reference/forms/types/options/scale.rst.inc
44+
scale
45+
~~~~~
46+
47+
**type**: ``integer`` **default**: Locale-specific (usually around ``3``)
48+
49+
This specifies how many decimals will be allowed until the field rounds
50+
the submitted value (via ``rounding_mode``). For example, if ``scale`` is set
51+
to ``2``, a submitted value of ``20.123`` will be rounded to, for example,
52+
``20.12`` (depending on your `rounding_mode`_).
4553

4654
.. include:: /reference/forms/types/options/rounding_mode.rst.inc
4755

reference/forms/types/options/scale.rst.inc

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)