... | ... |
@@ -2,24 +2,24 @@ |
2 | 2 |
|
3 | 3 |
<?php $this->block('field'); ?> |
4 | 4 |
<?php if ($this->hasErrors()): ?> |
5 |
- <span class="errortip" title="<?php echo htmlspecialchars($this->getErrorsAsString()); ?>" data-tooltip="position: top; offsetY: 10; theme: tooltipster-error; contentAsHTML: true;">?</span> |
|
5 |
+ <span class="errortip" title="<?= htmlspecialchars($this->getErrorsAsString()); ?>" data-tooltip="position: top; offsetY: 10; theme: tooltipster-error; contentAsHTML: true;">?</span> |
|
6 | 6 |
<?php endif; ?> |
7 |
- <fieldset id="ctrl_<?php echo $this->id; ?>" class="checkbox_container<?php if ($this->class) echo ' ' . $this->class; ?>"> |
|
7 |
+ <fieldset id="ctrl_<?= $this->id; ?>" class="checkbox_container<?php if ($this->class) echo ' ' . $this->class; ?>"> |
|
8 | 8 |
|
9 | 9 |
<?php if ($this->label): ?> |
10 | 10 |
<legend> |
11 | 11 |
<?php if ($this->mandatory): ?> |
12 |
- <span class="invisible"><?php echo $this->mandatoryField; ?></span> <?php echo $this->label; ?><span class="mandatory">*</span> |
|
12 |
+ <span class="invisible"><?= $this->mandatoryField; ?></span> <?php echo $this->label; ?><span class="mandatory">*</span> |
|
13 | 13 |
<?php else: ?> |
14 |
- <?php echo $this->label; ?> |
|
14 |
+ <?= $this->label; ?> |
|
15 | 15 |
<?php endif; ?> |
16 | 16 |
</legend> |
17 | 17 |
<?php endif; ?> |
18 | 18 |
|
19 |
- <input type="hidden" name="<?php echo $this->name; ?>" value=""> |
|
19 |
+ <input type="hidden" name="<?= $this->name; ?>" value=""> |
|
20 | 20 |
|
21 | 21 |
<?php foreach ($this->getOptions() as $option): ?> |
22 |
- <span><input type="checkbox" name="<?php echo $option['name']; ?>" id="opt_<?php echo $option['id']; ?>" class="checkbox" value="<?php echo $option['value']; ?>"<?php echo $option['checked']; ?><?php echo $option['attributes']; ?>> <label id="lbl_<?php echo $option['id']; ?>" for="opt_<?php echo $option['id']; ?>"><?php echo $option['label']; ?></label></span> |
|
22 |
+ <span><input type="checkbox" name="<?= $option['name']; ?>" id="opt_<?php echo $option['id']; ?>" class="checkbox" value="<?php echo $option['value']; ?>"<?php echo $option['checked']; ?><?php echo $option['attributes']; ?>> <label id="lbl_<?php echo $option['id']; ?>" for="opt_<?php echo $option['id']; ?>"><?php echo $option['label']; ?></label></span> |
|
23 | 23 |
<?php endforeach; ?> |
24 | 24 |
|
25 | 25 |
</fieldset> |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,26 @@ |
1 |
+<?php $this->extend('form_row'); ?> |
|
2 |
+ |
|
3 |
+<?php $this->block('field'); ?> |
|
4 |
+<?php if ($this->hasErrors()): ?> |
|
5 |
+ <span class="errortip" title="<?php echo htmlspecialchars($this->getErrorsAsString()); ?>" data-tooltip="position: top; offsetY: 10; theme: tooltipster-error; contentAsHTML: true;">?</span> |
|
6 |
+<?php endif; ?> |
|
7 |
+ <fieldset id="ctrl_<?php echo $this->id; ?>" class="checkbox_container<?php if ($this->class) echo ' ' . $this->class; ?>"> |
|
8 |
+ |
|
9 |
+ <?php if ($this->label): ?> |
|
10 |
+ <legend> |
|
11 |
+ <?php if ($this->mandatory): ?> |
|
12 |
+ <span class="invisible"><?php echo $this->mandatoryField; ?></span> <?php echo $this->label; ?><span class="mandatory">*</span> |
|
13 |
+ <?php else: ?> |
|
14 |
+ <?php echo $this->label; ?> |
|
15 |
+ <?php endif; ?> |
|
16 |
+ </legend> |
|
17 |
+ <?php endif; ?> |
|
18 |
+ |
|
19 |
+ <input type="hidden" name="<?php echo $this->name; ?>" value=""> |
|
20 |
+ |
|
21 |
+ <?php foreach ($this->getOptions() as $option): ?> |
|
22 |
+ <span><input type="checkbox" name="<?php echo $option['name']; ?>" id="opt_<?php echo $option['id']; ?>" class="checkbox" value="<?php echo $option['value']; ?>"<?php echo $option['checked']; ?><?php echo $option['attributes']; ?>> <label id="lbl_<?php echo $option['id']; ?>" for="opt_<?php echo $option['id']; ?>"><?php echo $option['label']; ?></label></span> |
|
23 |
+ <?php endforeach; ?> |
|
24 |
+ |
|
25 |
+ </fieldset> |
|
26 |
+<?php $this->endblock(); ?> |