... | ... |
@@ -2,7 +2,7 @@ |
2 | 2 |
|
3 | 3 |
<?php $this->block('label'); ?> |
4 | 4 |
<?php if ($this->label) : ?> |
5 |
- <label for="ctrl_<?= $this->id ?>" class="form-label <?php if ($this->class) : ?> <?= $this->class ?><?php endif; ?>"> |
|
5 |
+ <label for="ctrl_<?= $this->id ?>" class="form-label invisible <?php if ($this->class) : ?> <?= $this->class ?><?php endif; ?>"> |
|
6 | 6 |
<?php if ($this->mandatory) : ?> |
7 | 7 |
<span class="invisible"><?= $this->mandatoryField ?> </span><?= $this->label ?><span class="mandatory">*</span> |
8 | 8 |
<?php else : ?> |
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->label) : ?> |
|
5 |
+ <label for="ctrl_<?= $this->id ?>" class="form-label <?php if ($this->class) : ?> <?= $this->class ?><?php endif; ?>"> |
|
6 |
+ <?php if ($this->mandatory) : ?> |
|
7 |
+ <span class="invisible"><?= $this->mandatoryField ?> </span><?= $this->label ?><span class="mandatory">*</span> |
|
8 |
+ <?php else : ?> |
|
9 |
+ <?= $this->label ?> |
|
10 |
+ <?php endif; ?> |
|
11 |
+ </label> |
|
12 |
+<?php endif; ?> |
|
13 |
+<?php $this->endblock(); ?> |
|
14 |
+ |
|
15 |
+<?php $this->block('field'); ?> |
|
16 |
+<input type="file" name="<?= $this->name ?>" id="ctrl_<?= $this->id ?>" class="form-control upload<?php if ($this->class) : ?> <?= $this->class ?><?php endif; ?>" <?= $this->getAttributes() ?>> |
|
17 |
+<?php if ($this->hasErrors()) : ?> |
|
18 |
+ <p class="error"><?= $this->getErrorAsString() ?></p> |
|
19 |
+<?php endif; ?> |
|
20 |
+<?php $this->endblock(); ?> |
|
0 | 21 |
\ No newline at end of file |