Skip to content

Conversation

@CodeBlastr
Copy link
Contributor

Updated the templates section to include the default formats, which makes it so that you can copy and paste these easier when making customizations.

Updated the templates section to include the default formats, which makes it so that you can copy and paste these easier when making customizations.
@ravage84 ravage84 added this to the 3.x milestone Mar 3, 2016
* ``textarea`` {{name}}, {{attrs}}, {{value}}
A list of the default templates, their default format and the variables they expect are:

* ``button`` : ``<button{{attrs}}>{{text}}</button>``
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this make it much easier for the default templates and docs to get out of sync?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just an FYI... they were out of sync when I made this edit. (I think there
were like two templates missing). So no, I don't think it will be "easier"
to get of sync, because it's already easy :)

Thank you,

Did you know, it takes longer to reply to an email than to write one.
Stop the downward spiral. Read the email charter

http://www.emailcharter.org/.

Richard Kersey

On Thu, Mar 3, 2016 at 2:38 PM, Mark Story notifications@github.com wrote:

In en/views/helpers/form.rst
#3791 (comment):

-* inputContainerError {{type}}, {{required}}, {{content}}, {{error}}
-* inputSubmit {{type}}, {{attrs}}
-* label {{attrs}}, {{text}}, {{hidden}}, {{input}}
-* nestingLabel {{hidden}}, {{attrs}}, {{input}}, {{text}}
-* legend {{text}}
-* option {{value}}, {{attrs}}, {{text}}
-* optgroup {{label}}, {{attrs}}, {{content}}
-* radio {{name}}, {{value}}, {{attrs}}
-* radioWrapper {{input}}, {{label}}
-* select {{name}}, {{attrs}}, {{content}}
-* selectMultiple {{name}}, {{attrs}}, {{content}}
-* submitContainer {{content}}
-* textarea {{name}}, {{attrs}}, {{value}}
+A list of the default templates, their default format and the variables they expect are:
+
+* button : <button{{attrs}}>{{text}}</button>

Doesn't this make it much easier for the default templates and docs to get
out of sync?


Reply to this email directly or view it on GitHub
https://github.com/cakephp/docs/pull/3791/files#r54934965.

markstory added a commit that referenced this pull request Mar 4, 2016
more useful as copy pastable
@markstory markstory merged commit 267e578 into cakephp:3.0 Mar 4, 2016
@ravage84
Copy link
Member

ravage84 commented Mar 4, 2016

How about we just lnk to http://api.cakephp.org/3.2/class-Cake.View.Helper.FormHelper.html#%24_defaultConfig instead?

This way we don't have to keep it up to date.

cake17 added a commit that referenced this pull request Mar 4, 2016
@CodeBlastr
Copy link
Contributor Author

Can you submit a PR for that? IMO much better solution.

Thank you,

Did you know, it takes longer to reply to an email than to write one.
Stop the downward spiral. Read the email charter

http://www.emailcharter.org/.

Richard Kersey

On Fri, Mar 4, 2016 at 5:43 AM, Marc Würth notifications@github.com wrote:

How about we just lnk to
http://api.cakephp.org/3.2/class-Cake.View.Helper.FormHelper.html#%24_defaultConfig
instead?

This way we don't have to keep it up to date.


Reply to this email directly or view it on GitHub
#3791 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants