Skip to content

Commit ea6262f

Browse files
committed
#204 - removing id attribute to allow multiple time fields per form and table rows
1 parent bbf9857 commit ea6262f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/groovy/au/org/ala/ecodata/forms/EditModelWidgetRenderer.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public class EditModelWidgetRenderer implements ModelWidgetRenderer {
122122
String validation = context.validationAttr ?: ''
123123

124124
// programmatic conversion of the old gsp (_timeDataTypeEditModelTemplate.gsp)
125-
context.writer << """<div class="timefield input-append" style="position:relative"><input ${attrString} id="${context.source}TimeField" data-bind='${databindString}' ${validation} type='text' /></div>"""
125+
context.writer << """<div class="timefield input-append" style="position:relative"><input ${attrString} data-source="${context.source}TimeField" data-bind='${databindString}' ${validation} type='text' /></div>"""
126126
}
127127

128128
@Override

0 commit comments

Comments
 (0)