| ... | ... |
@@ -2,19 +2,19 @@ |
| 2 | 2 |
|
| 3 | 3 |
<?php $this->block('label'); ?>
|
| 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 | 7 |
<?php if ($this->label): ?> |
| 8 |
- <label for="ctrl_<?php echo $this->id; ?>"<?php if ($this->class): ?> class="<?php echo $this->class; ?>"<?php endif; ?>> |
|
| 8 |
+ <label for="ctrl_<?= $this->id; ?>"<?php if ($this->class): ?> class="<?php echo $this->class; ?>"<?php endif; ?>> |
|
| 9 | 9 |
<?php if ($this->mandatory): ?> |
| 10 |
- <span class="invisible"><?php echo $this->mandatoryField; ?></span> <?php echo $this->label; ?><span class="mandatory">*</span> |
|
| 10 |
+ <span class="invisible"><?= $this->mandatoryField; ?></span> <?php echo $this->label; ?><span class="mandatory">*</span> |
|
| 11 | 11 |
<?php else: ?> |
| 12 |
- <?php echo $this->label; ?> |
|
| 12 |
+ <?= $this->label; ?> |
|
| 13 | 13 |
<?php endif; ?> |
| 14 | 14 |
</label> |
| 15 | 15 |
<?php endif; ?> |
| 16 | 16 |
<?php $this->endblock(); ?> |
| 17 | 17 |
|
| 18 | 18 |
<?php $this->block('field'); ?>
|
| 19 |
- <textarea name="<?php echo $this->name; ?>" id="ctrl_<?php echo $this->id; ?>" class="textarea<?php if ($this->class) echo ' ' . $this->class; ?>" rows="<?php echo $this->rows; ?>" cols="<?php echo $this->cols; ?>"<?php echo $this->getAttributes(); ?>><?php echo $this->value; ?></textarea> |
|
| 19 |
+ <textarea name="<?= $this->name; ?>" id="ctrl_<?php echo $this->id; ?>" class="textarea<?php if ($this->class) echo ' ' . $this->class; ?>" rows="<?php echo $this->rows; ?>" cols="<?php echo $this->cols; ?>"<?php echo $this->getAttributes(); ?>><?php echo $this->value; ?></textarea> |
|
| 20 | 20 |
<?php $this->endblock(); ?> |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,20 @@ |
| 1 |
+<?php $this->extend('form_row'); ?>
|
|
| 2 |
+ |
|
| 3 |
+<?php $this->block('label'); ?>
|
|
| 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 |
+ <?php if ($this->label): ?> |
|
| 8 |
+ <label for="ctrl_<?php echo $this->id; ?>"<?php if ($this->class): ?> class="<?php echo $this->class; ?>"<?php endif; ?>> |
|
| 9 |
+ <?php if ($this->mandatory): ?> |
|
| 10 |
+ <span class="invisible"><?php echo $this->mandatoryField; ?></span> <?php echo $this->label; ?><span class="mandatory">*</span> |
|
| 11 |
+ <?php else: ?> |
|
| 12 |
+ <?php echo $this->label; ?> |
|
| 13 |
+ <?php endif; ?> |
|
| 14 |
+ </label> |
|
| 15 |
+ <?php endif; ?> |
|
| 16 |
+<?php $this->endblock(); ?> |
|
| 17 |
+ |
|
| 18 |
+<?php $this->block('field'); ?>
|
|
| 19 |
+ <textarea name="<?php echo $this->name; ?>" id="ctrl_<?php echo $this->id; ?>" class="textarea<?php if ($this->class) echo ' ' . $this->class; ?>" rows="<?php echo $this->rows; ?>" cols="<?php echo $this->cols; ?>"<?php echo $this->getAttributes(); ?>><?php echo $this->value; ?></textarea> |
|
| 20 |
+<?php $this->endblock(); ?> |