Permalink
Browse files

[FEATURE] add required attributes to comment fields, add missing tran…

…slation
  • Loading branch information...
1 parent e755473 commit 82175ae06fe4d4e614fe83cf661f62c50e02f38d @fnagel committed Feb 9, 2014
View
3 Resources/Private/Language/de.locallang.xlf
@@ -46,6 +46,9 @@
<trans-unit id="comment.human">
<target>Ich bin ein Mensch</target>
</trans-unit>
+ <trans-unit id="comment.optional">
+ <target>Optional</target>
+ </trans-unit>
<trans-unit id="subscriber.headline">
<target>Liste der Benachrichtigungen für:</target>
View
3 Resources/Private/Language/locallang.xlf
@@ -46,6 +46,9 @@
<trans-unit id="comment.human">
<source>I am not a SPAM bot</source>
</trans-unit>
+ <trans-unit id="comment.optional">
+ <source>optional</source>
+ </trans-unit>
<trans-unit id="subscriber.headline">
<source>Listing for subscriber:</source>
View
10 Resources/Private/Partials/Comment/FormFields.html
@@ -5,7 +5,7 @@
<f:translate key="comment.text" />
</label>
<div class="controls">
- <f:form.textarea class="input-block-level" id="text" property="text" rows="10" cols="10" />
+ <f:form.textarea additionalAttributes="{required: 'required'}" class="input-block-level" id="text" property="text" rows="10" cols="10" />
</div>
</div>
</div>
@@ -15,7 +15,7 @@
<f:translate key="comment.title" />
</label>
<div class="controls">
- <f:form.textfield placeholder="optional" class="input-block-level" id="title" property="title" />
+ <f:form.textfield placeholder="{f:translate(key: 'comment.optional')}" class="input-block-level" id="title" property="title" />
</div>
</div>
@@ -24,7 +24,7 @@
<f:translate key="comment.author" />
</label>
<div class="controls">
- <f:form.textfield class="input-block-level" id="author" property="author" />
+ <f:form.textfield additionalAttributes="{required: 'required'}" class="input-block-level" id="author" property="author" />
</div>
</div>
@@ -33,7 +33,7 @@
<f:translate key="comment.email" />
</label>
<div class="controls">
- <f:form.textfield class="input-block-level" id="email" property="email" />
+ <f:form.textfield additionalAttributes="{required: 'required'}" class="input-block-level" id="email" property="email" />
</div>
</div>
@@ -42,7 +42,7 @@
<f:translate key="comment.website" />
</label>
<div class="controls">
- <f:form.textfield placeholder="optional" class="input-block-level" id="website" property="website" />
+ <f:form.textfield placeholder="{f:translate(key: 'comment.optional')}" class="input-block-level" id="website" property="website" />
</div>
</div>

0 comments on commit 82175ae

Please sign in to comment.