diff --git a/css/styles.scss b/css/styles.scss
index b429dddcd..76d432288 100644
--- a/css/styles.scss
+++ b/css/styles.scss
@@ -320,6 +320,15 @@ form#plugin_formcreator_form {
padding: initial;
padding-left: 40px;
}
+
+ .label-radio {
+ display: inline;
+ margin-bottom: 0.2em;
+ }
+
+ .radio {
+ padding-bottom: 1em;
+ }
}
}
diff --git a/inc/field/checkboxesfield.class.php b/inc/field/checkboxesfield.class.php
index 33fe1bae8..0287b1171 100644
--- a/inc/field/checkboxesfield.class.php
+++ b/inc/field/checkboxesfield.class.php
@@ -100,6 +100,7 @@ public function getRenderedHtml($domain, $canEdit = true): string {
foreach ($values as $value) {
if ((trim($value) != '')) {
$i++;
+ $translated_value = __($value, $domain);
$html .= "
";
$html .= Html::getCheckbox([
'title' => htmlentities($value, ENT_QUOTES),
@@ -109,8 +110,8 @@ public function getRenderedHtml($domain, $canEdit = true): string {
'zero_on_empty' => false,
'checked' => in_array($value, $this->value)
]);
- $html .= '
";
}
diff --git a/inc/field/radiosfield.class.php b/inc/field/radiosfield.class.php
index 07ec0daa1..ff3d4ca82 100644
--- a/inc/field/radiosfield.class.php
+++ b/inc/field/radiosfield.class.php
@@ -85,14 +85,13 @@ public function getRenderedHtml($domain, $canEdit = true): string {
'id' => $domId . '_' . $i,
'value' => $value
] + $checked);
- $html .= '';
+ $translated_value = __($value, $domain);
+ $html .= '';
$html .= '';
$html .= '';
+ $html .= ' ' . $translated_value;
$html .= '';
$html .= '';
- $html .= '';
- $html .= ' ' . __($value, $domain);
- $html .= '';
$html .= '';
}
}