Skip to content

Commit

Permalink
added missing readonly attribute to field form type options, fixed #1179
Browse files Browse the repository at this point in the history
  • Loading branch information
Guite committed Jan 24, 2018
1 parent 1b2ac04 commit 1c57c06
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ class SharedFormTypeFields {
'attr' => [
«additionalAttributes»
'class' => '«validationHelper.fieldValidationCssClass(it)»',
«IF readonly»
'readonly' => 'readonly',
«ENDIF»
«IF it instanceof IntegerField && (it as IntegerField).range»
'min' => «(it as IntegerField).minValue»,
'max' => «(it as IntegerField).maxValue»,
Expand Down

0 comments on commit 1c57c06

Please sign in to comment.