Skip to content

Commit

Permalink
Fix date field template
Browse files Browse the repository at this point in the history
Missing class `input-field` and additional attribute `data-datatype` broke validation.
  • Loading branch information
claussni committed Aug 2, 2018
1 parent 79e0258 commit 827cd05
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions Resources/Private/Partials/DocumentForm/Field.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,18 @@
<f:form.textfield id="inp_{fieldItem.uid}"
property="metadata.{formPageUid}-{formGroupUid}-{groupIndex}-{fieldItem.uid}-{fieldIndex}"
value="{fieldItem.value}"
class="form-control"
class="form-control input-field"
additionalAttributes="{
data-field:fieldItem.uid,
data-index:fieldIndex,
data-mandatory:fieldItem.mandatory,
data-group:formGroupUid,
data-groupindex:groupIndex,
data-default:fieldItem.hasDefaultValue,
data-regexp:fieldItem.validation,
data-label:fieldItem.displayName
}"/>
data-datatype: 'DATE',
data-field:fieldItem.uid,
data-index:fieldIndex,
data-mandatory:fieldItem.mandatory,
data-group:formGroupUid,
data-groupindex:groupIndex,
data-default:fieldItem.hasDefaultValue,
data-regexp:fieldItem.validation,
data-label:fieldItem.displayName
}"/>
</f:then>
<f:else>
<f:form.textfield id="inp_{fieldItem.uid}"
Expand Down

0 comments on commit 827cd05

Please sign in to comment.