From 1c57c065703309b1f566d4d84f8126348d131af0 Mon Sep 17 00:00:00 2001 From: Guite Date: Wed, 24 Jan 2018 16:52:38 +0100 Subject: [PATCH] added missing readonly attribute to field form type options, fixed #1179 --- .../zclassic/controller/formtype/SharedFormTypeFields.xtend | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bundles/org.zikula.modulestudio.generator/src/org/zikula/modulestudio/generator/cartridges/zclassic/controller/formtype/SharedFormTypeFields.xtend b/bundles/org.zikula.modulestudio.generator/src/org/zikula/modulestudio/generator/cartridges/zclassic/controller/formtype/SharedFormTypeFields.xtend index 13ba4a0c5..882fa229b 100644 --- a/bundles/org.zikula.modulestudio.generator/src/org/zikula/modulestudio/generator/cartridges/zclassic/controller/formtype/SharedFormTypeFields.xtend +++ b/bundles/org.zikula.modulestudio.generator/src/org/zikula/modulestudio/generator/cartridges/zclassic/controller/formtype/SharedFormTypeFields.xtend @@ -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»,