Skip to content

Commit

Permalink
#2 #5
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbarkowsky committed Feb 20, 2019
1 parent b198b8c commit 82eb3ec
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions templates/form_widget_extended_checkbox.html5
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(); ?>

0 comments on commit 82eb3ec

Please sign in to comment.