Skip to content

Commit 14ac22c

Browse files
committed
v 1.2.3
1 parent 715b2ea commit 14ac22c

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

elements/rfformcheckboxes_item/element.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"render": "./templates/template.php",
77
"content": "./templates/content.php"
88
},
9+
"defaults": {
10+
"value": "check"
11+
},
912
"fields": {
1013
"label": {
1114
"label": "Label",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<label class="uk-flex uk-flex-middle"><input class="uk-checkbox rf-checkbox <?php echo $props['css_classes'] ?> <?php echo $props['checkbox_required']?"required":"" ?>" type="checkbox" name="<?php echo $element['field_name'] ?>[]" value="<?php echo $props['value'] ?>"><div class="uk-margin-small-left"><?php echo $props['label'] ?></div></label>
1+
<label class="uk-flex uk-flex-middle"><input class="uk-checkbox rf-checkbox <?php echo $props['css_classes'] ?> <?php echo $props['checkbox_required']?"required":"" ?>" type="checkbox" name="<?php echo $element['field_name'] ?>[]" value="<?php echo empty($props['value'])?"1":$props['value'] ?>"><div class="uk-margin-small-left"><?php echo $props['label'] ?></div></label>

elements/rfformradio/templates/template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
?>
3232
<div class="<?= $class ?>>">
3333
<?php foreach ($children as $child) : ?>
34-
<?= $builder->render($child, ['element' => $props]) ?>
34+
<?= $builder->render($child, ['element' => $props, 'i' => $i]) ?>
3535
<?php $i++ ?>
3636
<?php endforeach ?>
3737
</div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<label class="uk-flex uk-flex-middle"><input class="uk-radio rf-radio" type="radio" name="<?php echo $element['field_name'] ?>" value="<?php echo $props['value'] ?>" <?php echo $element['radio_required']?"required": ""; ?>> <div class="uk-margin-small-left"><?php echo $props['label'] ?></div></label>
1+
<label class="uk-flex uk-flex-middle"><input class="uk-radio rf-radio" type="radio" name="<?php echo $element['field_name'] ?>" value="<?php echo empty($props['value'])?$i:$props['value'] ?>" <?php echo $element['radio_required']?"required": ""; ?>> <div class="uk-margin-small-left"><?php echo $props['label'] ?></div></label>

radicalform_elements.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<extension version="3.8" type="plugin" method="upgrade" group="system">
33
<name>PLG_RFE_FORM</name>
44
<author>Tsymbal and Progreccor</author>
5-
<creationDate>11.08.2021</creationDate>
6-
<copyright>Copyright (C) 2005 - 2021 Open Source Matters. All rights reserved.</copyright>
5+
<creationDate>22.08.2021</creationDate>
6+
<copyright>Copyright © 2021 Delo Design. All rights reserved.</copyright>
77
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
88
<authorEmail>boss@delo-design.ru</authorEmail>
99
<authorUrl>https://delo-design.ru</authorUrl>
10-
<version>1.2.2</version>
10+
<version>1.2.3</version>
1111
<description>PLG_RFE_FORM_XML_DESCRIPTION</description>
1212
<scriptfile>script.php</scriptfile>
1313

0 commit comments

Comments
 (0)