Permalink
Browse files

Merge pull request #166 from pflannery/Duplicate-Field-Group-Labels

Duplicate field group label Ids
  • Loading branch information...
2 parents be00a51 + b75df0b commit 0c146a17e13d7b9d5797ffbf2805ce482cbddd9b @mobywhale-chan mobywhale-chan committed Sep 26, 2013
@@ -59,7 +59,7 @@
{{#ffield}}
{{#flabel "" "fieldLabel"}}Your email addresses{{/flabel}}
{{#fgroup}}
- {{#repeat 2 "inputblock"}}
+ {{#repeat 2 "emailInputblock"}}
{{#fgroupitem "ftext" @indexStr "" ""}}Email address {{@index}}{{/fgroupitem}}
{{/repeat}}
{{/fgroup}}
@@ -72,7 +72,7 @@
{{#ffield}}
{{#flabel "" "fieldLabel"}}Select your options{{/flabel}}
{{#fgroup}}
- {{#repeat 2 "inputblock"}}
+ {{#repeat 2 "selectInputblock"}}
{{#fgroupitem "fselect" @indexStr "" "" "" "" "" 2}}Option {{@index}}{{/fgroupitem}}
{{/repeat}}
{{/fgroup}}
@@ -69,8 +69,8 @@
<p>Add class <code>labelLeft</code> to <code>label</code>.</p>
{{#formpres "" "" "htmlcode"}}
{{#ffield}}
- {{#flabel "text1" "labelLeft fieldLabel"}}Label on the left{{/flabel}}
- {{#ftext "text1"}}{{/ftext}}
+ {{#flabel "singleLabelText1" "labelLeft fieldLabel"}}Label on the left{{/flabel}}
+ {{#ftext "singleLabelText1"}}{{/ftext}}
{{/ffield}}
{{/formpres}}
<h5>Multiple fields with label on left</h5>
@@ -140,7 +140,8 @@ var Handlebars,
max = max*1; // parseint
for (var i = start; i <= max; i++) {
data.index = i;
- data.indexStr = indexPrefix;
+ /* appends index to the indexStr so it's unique */
+ data.indexStr = indexPrefix + i;
str.push(options.fn(this, {data: data}));
}
return str.join('');

0 comments on commit 0c146a1

Please sign in to comment.