forked from symfony/symfony-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 2.8: [symfony#5472] Minor tweak and adding code example [symfony#5453] Minor tweaks - mostly thanks to Javier Reword Fix moving the mapped down as per @xabbuh Fix caching Fix build Fix the rendering issue Fix issues reported by @snoek09 . Thank you. Added a tip about hashing the result of nextBytes() Make the necessary changes mentioned by @xabbuh and add example for form rework the quick tour's big picture fix for Symfony 2.7 Fix after install URL and new photo since AcmeDemoBundle is not part of 2.7 Starting with range documentation Improve travis build speed
- Loading branch information
Showing
9 changed files
with
110 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
language: python | ||
|
||
python: | ||
- "2.7" | ||
python: "2.7" | ||
|
||
sudo: false | ||
|
||
install: | ||
- "pip install -q -r requirements.txt --use-mirrors" | ||
cache: | ||
directories: | ||
- $HOME/.cache/pip | ||
- _build | ||
|
||
install: pip install sphinx==1.1.3 | ||
|
||
script: sphinx-build -nW -b html -d _build/doctrees . _build/html | ||
|
||
branches: | ||
except: | ||
- github-comments | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ Form Types Reference | |
types/percent | ||
types/search | ||
types/url | ||
types/range | ||
|
||
types/choice | ||
types/entity | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
.. index:: | ||
single: Forms; Fields; range | ||
|
||
range Field Type | ||
================ | ||
|
||
The ``range`` field is a slider that is rendered using the HTML5 | ||
``<input type="range" />`` tag. | ||
|
||
+-------------+---------------------------------------------------------------------+ | ||
| Rendered as | ``input`` ``range`` field (slider in HTML5 supported browser) | | ||
+-------------+---------------------------------------------------------------------+ | ||
| Inherited | - `attr`_ | | ||
| options | - `data`_ | | ||
| | - `disabled`_ | | ||
| | - `empty_data`_ | | ||
| | - `error_bubbling`_ | | ||
| | - `error_mapping`_ | | ||
| | - `label`_ | | ||
| | - `label_attr`_ | | ||
| | - `mapped`_ | | ||
| | - `required`_ | | ||
| | - `trim`_ | | ||
+-------------+---------------------------------------------------------------------+ | ||
| Parent type | :doc:`text </reference/forms/types/text>` | | ||
+-------------+---------------------------------------------------------------------+ | ||
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\RangeType` | | ||
+-------------+---------------------------------------------------------------------+ | ||
|
||
Basic Usage | ||
----------- | ||
|
||
.. code-block:: php | ||
$builder->add('name', 'range', array( | ||
'attr' => array( | ||
'min' => 5, | ||
'max' => 50 | ||
) | ||
)); | ||
Inherited Options | ||
----------------- | ||
|
||
These options inherit from the :doc:`form </reference/forms/types/form>` | ||
type: | ||
|
||
.. include:: /reference/forms/types/options/attr.rst.inc | ||
|
||
.. include:: /reference/forms/types/options/data.rst.inc | ||
|
||
.. include:: /reference/forms/types/options/disabled.rst.inc | ||
|
||
.. include:: /reference/forms/types/options/empty_data.rst.inc | ||
:end-before: DEFAULT_PLACEHOLDER | ||
|
||
The default value is ``''`` (the empty string). | ||
|
||
.. include:: /reference/forms/types/options/empty_data.rst.inc | ||
:start-after: DEFAULT_PLACEHOLDER | ||
|
||
.. include:: /reference/forms/types/options/error_bubbling.rst.inc | ||
|
||
.. include:: /reference/forms/types/options/error_mapping.rst.inc | ||
|
||
.. include:: /reference/forms/types/options/label.rst.inc | ||
|
||
.. include:: /reference/forms/types/options/label_attr.rst.inc | ||
|
||
.. include:: /reference/forms/types/options/mapped.rst.inc | ||
|
||
.. include:: /reference/forms/types/options/required.rst.inc | ||
|
||
.. include:: /reference/forms/types/options/trim.rst.inc |
This file was deleted.
Oops, something went wrong.