{namespace k=TYPO3\Kickstart\ViewHelpers}<![CDATA[<f:layout name="Default" />

<f:section name="Title">]]>New {modelName -> k:inflect.humanizeCamelCase(lowercase: true)}<![CDATA[</f:section>

<f:section name="Content">]]>
	<p>Just fill out the following form to create a new {modelName -> k:inflect.humanizeCamelCase(lowercase: true)}:</p>

	<![CDATA[<f:form action="create"]]> objectName="new{modelName -> k:format.ucfirst()}">
		<ol><f:for each="{properties}" as="property" key="propertyName">
			<li>
				<label for="{propertyName}">{modelName -> k:inflect.humanizeCamelCase()}</label>
				<f:if condition="{0: property.type} == {0: 'DateTime'}"><f:then><![CDATA[<f:form.textfield]]> type="datetime" value="<![CDATA[{f:format.date(date: 'now', format: 'Y-m-d\TH:i:sP')}]]>" property="{propertyName}" id="{propertyName}" /></f:then><f:else><![CDATA[<f:form.textfield]]> property="{propertyName}" id="{propertyName}" /></f:else></f:if>
			</li>
		</f:for>
			<li>
				<![CDATA[<f:form.submit value="Create" />
			</li>
		</ol>
	</f:form>]]>
<![CDATA[</f:section>]]>
{namespace k=TYPO3\Kickstart\ViewHelpers}<![CDATA[<f:layout name="Default" />

<f:section name="Title">]]>New {modelName -> k:inflect.humanizeCamelCase(lowercase: true)}<![CDATA[</f:section>

<f:section name="Content">]]>
	<p>Just fill out the following form to create a new {modelName -> k:inflect.humanizeCamelCase(lowercase: true)}:</p>

	<![CDATA[<f:form action="create"]]> objectName="new{modelName -> k:format.ucfirst()}">
		<ol><f:for each="{properties}" as="property" key="propertyName">
			<li>
				<label for="{propertyName}">{propertyName -> k:inflect.humanizeCamelCase()}</label>
				<f:if condition="{0: property.type} == {0: 'DateTime'}"><f:then><![CDATA[<f:form.textfield]]> type="datetime" value="<![CDATA[{f:format.date(date: 'now', format: 'Y-m-d\TH:i:sP')}]]>" property="{propertyName}" id="{propertyName}" /></f:then><f:else><![CDATA[<f:form.textfield]]> property="{propertyName}" id="{propertyName}" /></f:else></f:if>
			</li>
		</f:for>
			<li>
				<![CDATA[<f:form.submit value="Create" />
			</li>
		</ol>
	</f:form>]]>
<![CDATA[</f:section>]]>
Use propertyName instead of modelName for form labels
[BUGFIX] Use propertyName instead of modelName for form labels

The NewTemplate used the ``modelName`` for each property as label
instead of the ``propertyName``, this commit fixes that to be in
line with the EditTemplate.

Kudos for finding and fixing to Guido.

Change-Id: Ie966acd1f1cfa3aa4d7c1eb5640d29e158a9685a
Releases: master, 3.0, 2.3, 2.2
Original-Commit-Hash: a100b42d92dd5a6ec33cdd60b202154ad209460d
