-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b198b8c
commit 82eb3ec
Showing
1 changed file
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
<?php $this->extend('form_row'); ?> | ||
|
||
<?php $this->block('field'); ?> | ||
<label><?php echo $this->label; ?><?php if ($this->mandatory): ?><span class="mandatory">*</span><?php endif; ?></label> | ||
<?php echo $this->generateWithError(); ?><br> | ||
<fieldset id="ctrl_<?= $this->id ?>" class="checkbox_container<?php if ($this->class) echo ' ' . $this->class; ?>"> | ||
<?php if ($this->label): ?> | ||
<legend> | ||
<?php if ($this->mandatory): ?> | ||
<span class="invisible"><?= $this->mandatoryField ?> </span><?= $this->label ?><span class="mandatory">*</span> | ||
<?php else: ?> | ||
<?= $this->label ?> | ||
<?php endif; ?> | ||
</legend> | ||
<?php endif; ?> | ||
|
||
<?php if ($this->hasErrors()): ?> | ||
<p class="error"><?= $this->getErrorAsString() ?></p> | ||
<?php endif; ?> | ||
|
||
<?php echo $this->generateWithError(); ?> | ||
</fieldset> | ||
<?php $this->endblock(); ?> |