From e567e9e095a78f082b6423d59395509bcb7c3ed1 Mon Sep 17 00:00:00 2001 From: Ken Stanley Date: Tue, 9 Oct 2018 15:58:10 -0400 Subject: [PATCH 1/2] Add docs for symbol option of PercentType https://github.com/symfony/symfony/issues/28796 --- reference/forms/types/percent.rst | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/reference/forms/types/percent.rst b/reference/forms/types/percent.rst index 8d823c34272..8d93d03a3de 100644 --- a/reference/forms/types/percent.rst +++ b/reference/forms/types/percent.rst @@ -9,12 +9,13 @@ percentage data. If your percentage data is stored as a decimal (e.g. ``.95``), you can use this field out-of-the-box. If you store your data as a number (e.g. ``95``), you should set the ``type`` option to ``integer``. -This field adds a percentage sign "``%``" after the input box. +When ``symbol`` is true, the field will add a percentage sign "``%``" after the input box. +-------------+-----------------------------------------------------------------------+ | Rendered as | ``input`` ``text`` field | +-------------+-----------------------------------------------------------------------+ | Options | - `scale`_ | +| | - `symbol`_ | | | - `type`_ | +-------------+-----------------------------------------------------------------------+ | Overridden | - `compound`_ | @@ -50,6 +51,15 @@ scale By default, the input numbers are rounded. To allow for more decimal places, use this option. +symbol +~~~~~ + +**type**: ``boolean`` **default**: ``true`` + +By default, fields are rendered with a percentage sign "`%`" after the input +box. Setting this value to ``false`` will disable the percentage sign from +being displayed. + type ~~~~ From 16080ca70f6fb5619040909f4808b873c408ef15 Mon Sep 17 00:00:00 2001 From: Ken Stanley Date: Tue, 9 Oct 2018 16:10:35 -0400 Subject: [PATCH 2/2] Address title underline being too short #10464 --- reference/forms/types/percent.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/forms/types/percent.rst b/reference/forms/types/percent.rst index 8d93d03a3de..5ffba18af43 100644 --- a/reference/forms/types/percent.rst +++ b/reference/forms/types/percent.rst @@ -52,7 +52,7 @@ By default, the input numbers are rounded. To allow for more decimal places, use this option. symbol -~~~~~ +~~~~~~ **type**: ``boolean`` **default**: ``true`` pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy