Browse code

Initial commit

Benjamin Roth authored on16/03/2023 20:22:35
Showing1 changed files
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 ?>" <?php if ($this->class) : ?> 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="<?= $this->type ?>" name="<?= $this->name ?>" id="ctrl_<?= $this->id ?>" class="form-control text<?php if ($this->hideInput) : ?> password<?php endif; ?><?php if ($this->class) : ?> <?= $this->class ?><?php endif; ?>" value="<?= Contao\StringUtil::specialchars($this->value) ?>" <?= $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