diff options
Diffstat (limited to 'src/main/kotlin/pl')
8 files changed, 10 insertions, 10 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/form/check/CheckInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/check/CheckInput.kt index 7c67c957..9e0c1fa9 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/check/CheckInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/check/CheckInput.kt @@ -111,13 +111,13 @@ open class CheckInput( val sn = super.getSnAttrs().toMutableList() sn.add("type" to type.type) if (startValue) { - sn.add("checked" to "true") + sn.add("checked" to "checked") } name?.let { sn.add("name" to it) } if (disabled) { - sn.add("disabled" to "true") + sn.add("disabled" to "disabled") } extraValue?.let { sn.add("value" to it) diff --git a/src/main/kotlin/pl/treksoft/kvision/form/select/SelectInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/select/SelectInput.kt index b0b7f4b3..dd8fcabd 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/select/SelectInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/select/SelectInput.kt @@ -245,7 +245,7 @@ open class SelectInput( sn.add("name" to it) } if (multiple) { - sn.add("multiple" to "true") + sn.add("multiple" to "multiple") } maxOptions?.let { sn.add("data-max-options" to "" + it) @@ -262,7 +262,7 @@ open class SelectInput( } } if (disabled) { - sn.add("disabled" to "true") + sn.add("disabled" to "disabled") } val btnStyle = style?.className ?: "btn-default" when (size) { diff --git a/src/main/kotlin/pl/treksoft/kvision/form/select/SelectOptGroup.kt b/src/main/kotlin/pl/treksoft/kvision/form/select/SelectOptGroup.kt index 95d8f178..3b523314 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/select/SelectOptGroup.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/select/SelectOptGroup.kt @@ -84,7 +84,7 @@ open class SelectOptGroup( sn.add("data-max-options" to "" + it) } if (disabled) { - sn.add("disabled" to "true") + sn.add("disabled" to "disabled") } return sn } diff --git a/src/main/kotlin/pl/treksoft/kvision/form/select/SelectOption.kt b/src/main/kotlin/pl/treksoft/kvision/form/select/SelectOption.kt index 141eff28..5cd23582 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/select/SelectOption.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/select/SelectOption.kt @@ -93,7 +93,7 @@ open class SelectOption( } } if (disabled) { - sn.add("disabled" to "true") + sn.add("disabled" to "disabled") } } else { sn.add("data-divider" to "true") diff --git a/src/main/kotlin/pl/treksoft/kvision/form/spinner/SpinnerInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/spinner/SpinnerInput.kt index a5565d2a..23c48a80 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/spinner/SpinnerInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/spinner/SpinnerInput.kt @@ -191,7 +191,7 @@ open class SpinnerInput( } } if (disabled) { - sn.add("disabled" to "true") + sn.add("disabled" to "disabled") value?.let { sn.add("value" to it.toString()) } diff --git a/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractTextInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractTextInput.kt index 8467dab8..c43f94ba 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractTextInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractTextInput.kt @@ -117,7 +117,7 @@ abstract class AbstractTextInput( } } if (disabled) { - sn.add("disabled" to "true") + sn.add("disabled" to "disabled") } return sn } diff --git a/src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt index 9e6e61b0..de8bb320 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt @@ -57,7 +57,7 @@ open class RichTextInput(value: String? = null, classes: Set<String> = setOf()) } } if (disabled) { - sn.add("disabled" to "true") + sn.add("disabled" to "disabled") } return sn } diff --git a/src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt index 6004b320..9fa87195 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt @@ -150,7 +150,7 @@ open class DateTimeInput( } } if (disabled) { - sn.add("disabled" to "true") + sn.add("disabled" to "disabled") value?.let { sn.add("value" to it.toStringF(format)) } |