From dc63dfd338000e21dd2cd02e2453c52a5f028a7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=BCrth?= Date: Sat, 5 Mar 2016 21:54:33 +0100 Subject: [PATCH] Replace default templates with link to API Refs: https://github.com/cakephp/docs/pull/3791#issuecomment-192228516 --- en/views/helpers/form.rst | 35 +++-------------------------------- 1 file changed, 3 insertions(+), 32 deletions(-) diff --git a/en/views/helpers/form.rst b/en/views/helpers/form.rst index 8699ce0f43..891a093969 100644 --- a/en/views/helpers/form.rst +++ b/en/views/helpers/form.rst @@ -1606,38 +1606,9 @@ You can also change the templates at runtime using the ``templates()`` method:: List of Templates ----------------- -A list of the default templates, their default format and the variables they -expect are: - -* ``button`` : ``{{text}}`` -* ``checkbox`` : ```` -* ``checkboxFormGroup`` : ``{{label}}`` -* ``checkboxWrapper`` : ``
{{label}}
`` -* ``dateWidget`` : ``{{year}}{{month}}{{day}}{{hour}}{{minute}}{{second}}{{meridian}}`` -* ``error`` : ``
{{content}}
`` -* ``errorList`` : ```` -* ``errorItem`` : ``
  • {{text}}
  • `` -* ``file`` : ```` -* ``fieldset`` : ``{{content}}`` -* ``formStart`` : ```` -* ``formEnd`` : ```` -* ``formGroup`` : ``{{label}}{{input}}`` -* ``hiddenBlock`` : ``
    {{content}}
    `` -* ``input`` : ```` -* ``inputSubmit`` : ```` -* ``inputContainer`` : ``
    {{content}}
    `` -* ``inputContainerError`` : ``
    {{content}}{{error}}
    `` -* ``label`` : ``{{text}}`` -* ``nestingLabel`` : ``{{hidden}}{{input}}{{text}}`` -* ``legend`` : ``{{text}}`` -* ``option`` : ```` -* ``optgroup`` : ``{{content}}`` -* ``select`` : ```` -* ``selectMultiple`` : ```` -* ``radio`` : ```` -* ``radioWrapper`` : ``{{label}}`` -* ``textarea`` : ```` -* ``submitContainer`` : ``
    {{content}}
    `` +The list of default templates, their default format and the variables they +expect can be found at the +`FormHelper API documentation `_. In addition to these templates, the ``input()`` method will attempt to use distinct templates for each input container. For example, when creating