Browse code

Use newest 4.8 templates for modifications

Benjamin Roth authored on07/02/2020 12:10:12
Showing21 changed files
1 1
deleted file mode 100644
... ...
@@ -1,30 +0,0 @@
1
-
2
-<!-- indexer::stop -->
3
-<div class="<?= $this->class; ?> <?php echo $this->tableless ? 'tableless' : 'tableform'; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
4
-
5
-  <?php if ($this->headline): ?>
6
-    <<?= $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
7
-  <?php endif; ?>
8
-
9
-  <form<?php if ($this->action): ?> action="<?= $this->action; ?>"<?php endif; ?> id="<?php echo $this->formId; ?>" method="<?php echo $this->method; ?>" enctype="<?php echo $this->enctype; ?>"<?php echo $this->attributes; ?><?php echo $this->novalidate; ?>>
10
-    <div class="formbody">
11
-      <?php if ($this->method != 'get'): ?>
12
-        <input type="hidden" name="FORM_SUBMIT" value="<?= $this->formSubmit; ?>">
13
-        <input type="hidden" name="REQUEST_TOKEN" value="{{request_token}}">
14
-        <?php if ($this->maxFileSize): ?>
15
-          <input type="hidden" name="MAX_FILE_SIZE" value="<?= $this->maxFileSize; ?>">
16
-        <?php endif; ?>
17
-      <?php endif; ?>
18
-      <?= $this->hidden; ?>
19
-      <?php if (!$this->tableless): ?>
20
-        <table>
21
-          <?= $this->fields; ?>
22
-        </table>
23
-      <?php else: ?>
24
-        <?= $this->fields; ?>
25
-      <?php endif; ?>
26
-    </div>
27
-  </form>
28
-
29
-</div>
30
-<!-- indexer::continue -->
... ...
@@ -1,9 +1,6 @@
1 1
 <?php $this->extend('form_row'); ?>
2 2
 
3 3
 <?php $this->block('label'); ?>
4
-<?php if ($this->hasErrors()): ?>
5
-  <span class="errortip" title="<?= htmlspecialchars($this->getErrorsAsString()); ?>" data-tooltip="position: top; offsetY: 10; theme: tooltipster-error; contentAsHTML: true;">?</span>
6
-<?php endif; ?>
7 4
 <?php if ($this->label): ?>
8 5
   <label for="ctrl_<?= $this->id ?>"<?php if ($this->class): ?> class="<?= $this->class ?>"<?php endif; ?>>
9 6
     <span class="invisible"><?= $this->mandatoryField ?> </span><?= $this->label ?><span class="mandatory">*</span>
... ...
@@ -12,8 +9,14 @@
12 9
 <?php $this->endblock(); ?>
13 10
 
14 11
 <?php $this->block('field'); ?>
15
-<input type="text" name="<?= $this->name ?>" id="ctrl_<?= $this->id ?>" class="captcha mandatory<?php if ($this->class) echo ' ' . $this->class; ?>" value="" aria-describedby="captcha_text_<?= $this->id ?>"<?= $this->getAttributes() ?>>
16
-<span id="captcha_text_<?= $this->id ?>" class="captcha_text<?php if ($this->class) echo ' ' . $this->class; ?>"><?= $this->getQuestion() ?></span>
12
+
13
+  <input type="text" name="<?= $this->name ?>" id="ctrl_<?= $this->id ?>" class="captcha mandatory<?php if ($this->class): ?> <?= $this->class ?><?php endif; ?>" value="" aria-describedby="captcha_text_<?= $this->id ?>"<?= $this->getAttributes() ?>>
14
+  <span id="captcha_text_<?= $this->id ?>" class="captcha_text<?php if ($this->class): ?> <?= $this->class ?><?php endif; ?>"><?= $this->getQuestion() ?></span>
15
+  <input type="hidden" name="<?= $this->name ?>_hash" value="<?= $this->getHash() ?>">
16
+
17
+<?php if ($this->hasErrors()): ?>
18
+  <p class="error"><?= $this->getErrorAsString() ?></p>
19
+<?php endif; ?>
17 20
 
18 21
 <?php if (!$this->hasErrors()): ?>
19 22
   <div style="display:none">
... ...
@@ -21,8 +24,15 @@
21 24
     <input type="text" name="<?= $this->name ?>_name" id="ctrl_<?= $this->id ?>_hp" value="">
22 25
   </div>
23 26
   <script>
24
-    document.getElementById('ctrl_<?= $this->id ?>').parentNode.style.display = 'none';
25
-    document.getElementById('ctrl_<?= $this->id ?>').value = '<?= $this->getSum() ?>';
27
+    var e = document.getElementById('ctrl_<?= $this->id ?>'),
28
+      p = e.parentNode, f = p.parentNode;
29
+
30
+    if ('fieldset' === f.nodeName.toLowerCase() && 1 === f.children.length) {
31
+      p = f;
32
+    }
33
+
34
+    p.style.display = 'none';
35
+    e.value = '<?= $this->getSum() ?>';
26 36
   </script>
27 37
 <?php endif ?>
28 38
 
... ...
@@ -1,26 +1,38 @@
1 1
 <?php $this->extend('form_row'); ?>
2 2
 
3 3
 <?php $this->block('field'); ?>
4
-<?php if ($this->hasErrors()): ?>
5
-  <span class="errortip" title="<?= htmlspecialchars($this->getErrorsAsString()); ?>" data-tooltip="position: top; offsetY: 10; theme: tooltipster-error; contentAsHTML: true;">?</span>
6
-<?php endif; ?>
7
-  <fieldset id="ctrl_<?= $this->id; ?>" class="checkbox_container<?php if ($this->class) echo ' ' . $this->class; ?>">
4
+  <fieldset id="ctrl_<?= $this->id ?>" class="checkbox_container<?php if ($this->class): ?> <?= $this->class ?><?php endif; ?>">
8 5
 
9 6
     <?php if ($this->label): ?>
10 7
       <legend>
11 8
         <?php if ($this->mandatory): ?>
12
-          <span class="invisible"><?= $this->mandatoryField; ?></span> <?php echo $this->label; ?><span class="mandatory">*</span>
9
+          <span class="invisible"><?= $this->mandatoryField ?> </span><?= $this->label ?><span class="mandatory">*</span>
13 10
         <?php else: ?>
14
-          <?= $this->label; ?>
11
+          <?= $this->label ?>
15 12
         <?php endif; ?>
16 13
       </legend>
17 14
     <?php endif; ?>
18 15
 
19
-    <input type="hidden" name="<?= $this->name; ?>" value="">
16
+    <input type="hidden" name="<?= $this->name ?>" value="">
20 17
 
21 18
     <?php foreach ($this->getOptions() as $option): ?>
22
-      <span><input type="checkbox" name="<?= $option['name']; ?>" id="opt_<?php echo $option['id']; ?>" class="checkbox" value="<?php echo $option['value']; ?>"<?php echo $option['checked']; ?><?php echo $option['attributes']; ?>> <label id="lbl_<?php echo $option['id']; ?>" for="opt_<?php echo $option['id']; ?>"><?php echo $option['label']; ?></label></span>
19
+      <?php if ('group_start' == $option['type']): ?>
20
+        <fieldset>
21
+        <legend><?= $option['label'] ?></legend>
22
+      <?php endif; ?>
23
+
24
+      <?php if ('option' == $option['type']): ?>
25
+        <span><input type="checkbox" name="<?= $option['name'] ?>" id="opt_<?= $option['id'] ?>" class="checkbox" value="<?= $option['value'] ?>"<?= $option['checked'] ?><?= $option['attributes'] ?>> <label id="lbl_<?= $option['id'] ?>" for="opt_<?= $option['id'] ?>"><?= $option['label'] ?></label></span>
26
+      <?php endif; ?>
27
+
28
+      <?php if ('group_end' == $option['type']): ?>
29
+        </fieldset>
30
+      <?php endif; ?>
23 31
     <?php endforeach; ?>
24 32
 
33
+    <?php if ($this->hasErrors()): ?>
34
+      <p class="error"><?= $this->getErrorAsString() ?></p>
35
+    <?php endif; ?>
36
+
25 37
   </fieldset>
26 38
 <?php $this->endblock(); ?>
... ...
@@ -1,14 +1,4 @@
1 1
 
2
-<?php if ($this->tableless): ?>
3
-
4
-  <div class="<?= $this->prefix; ?> explanation<?php if ($this->eSM_fl_width): ?> w<?php echo $this->eSM_fl_width; ?><?php endif; ?><?php if ($this->eSM_fl_clear): ?> clr<?php endif; ?>">
5
-    <?= $this->generate(); ?>
6
-  </div>
7
-
8
-<?php else: ?>
9
-
10
-  <tr class="<?= $this->rowClass; ?>">
11
-    <td colspan="2" class="colspan explanation"><?= $this->generate(); ?></td>
12
-  </tr>
13
-
14
-<?php endif; ?>
2
+<div class="<?= $this->prefix ?> explanation<?php if ($this->class): ?> <?= $this->class ?><?php endif; ?><?php if ($this->eSM_fl_width): ?> w<?= $this->eSM_fl_width; ?><?php endif; ?><?php if ($this->eSM_fl_clear): ?> clr<?php endif; ?><?php if ($this->eSM_fl_class): ?> <?= $this->eSM_fl_class; ?><?php endif; ?>">
3
+  <?= $this->generate() ?>
4
+</div>
15 5
deleted file mode 100644
... ...
@@ -1,13 +0,0 @@
1
-
2
-<?php if ($this->fsType == 'fsStart'): ?>
3
-
4
-  <fieldset<?php if ($this->class): ?> class="<?= $this->class; ?>"<?php endif; ?>>
5
-  <?php if ($this->label): ?>
6
-    <legend><?= $this->label; ?></legend>
7
-  <?php endif; ?>
8
-
9
-<?php else: ?>
10
-
11
-  </fieldset>
12
-
13
-<?php endif; ?>
14 0
new file mode 100644
... ...
@@ -0,0 +1,6 @@
1
+
2
+<fieldset class="<?php if ($this->class): ?><?= $this->class ?><?php endif; ?><?php if ($this->eSM_fl_width): ?> w<?= $this->eSM_fl_width; ?><?php endif; ?><?php if ($this->eSM_fl_clear): ?> clr<?php endif; ?><?php if ($this->eSM_fl_class): ?> <?= $this->eSM_fl_class; ?><?php endif; ?>">
3
+
4
+  <?php if ($this->label): ?>
5
+    <legend><?= $this->label ?></legend>
6
+  <?php endif; ?>
0 7
deleted file mode 100644
... ...
@@ -1,14 +0,0 @@
1
-
2
-<?php if ($this->tableless): ?>
3
-
4
-  <div class="<?= $this->prefix; ?> headline w100">
5
-    <?= $this->generate(); ?>
6
-  </div>
7
-
8
-<?php else: ?>
9
-
10
-  <tr class="<?= $this->rowClass; ?>">
11
-    <td colspan="2" class="colspan headline"><?= $this->generate(); ?></td>
12
-  </tr>
13
-
14
-<?php endif; ?>
15 0
deleted file mode 100644
... ...
@@ -1,2 +0,0 @@
1
-
2
-<input type="hidden" name="<?= $this->name; ?>" value="<?php echo $this->value; ?>">
3 0
deleted file mode 100644
... ...
@@ -1,2 +0,0 @@
1
-
2
-<?= $this->html; ?>
... ...
@@ -1,14 +1,4 @@
1 1
 
2
-<?php if ($this->tableless): ?>
3
-
4
-  <div class="<?= $this->class; ?>">
5
-    <?= $this->message; ?>
6
-  </div>
7
-
8
-<?php else: ?>
9
-
10
-  <tr class="<?= $this->class; ?>">
11
-    <td colspan="2"><div class="colspan"><?= $this->message; ?></div></td>
12
-  </tr>
13
-
14
-<?php endif; ?>
2
+<div class="<?= $this->class ?> w100 clr">
3
+  <?= $this->message ?>
4
+</div>
... ...
@@ -1,41 +1,38 @@
1 1
 <?php $this->extend('form_row_double'); ?>
2 2
 
3 3
 <?php $this->block('label'); ?>
4
-  <?php if ($this->hasErrors()): ?>
5
-    <span class="errortip" title="<?= htmlspecialchars($this->getErrorsAsString()); ?>" data-tooltip="position: top; offsetY: 10; theme: tooltipster-error; contentAsHTML: true;">?</span>
6
-  <?php endif; ?>
7
-
8 4
   <?php if ($this->label): ?>
9
-    <label for="ctrl_<?= $this->id; ?>"<?php if ($this->class): ?> class="<?php echo $this->class; ?>"<?php endif; ?>>
5
+    <label for="ctrl_<?= $this->id ?>"<?php if ($this->class): ?> class="<?= $this->class ?>"<?php endif; ?>>
10 6
       <?php if ($this->mandatory): ?>
11
-        <span class="invisible"><?= $this->mandatoryField; ?></span> <?php echo $this->label; ?><span class="mandatory">*</span>
7
+        <span class="invisible"><?= $this->mandatoryField ?> </span><?= $this->label ?><span class="mandatory">*</span>
12 8
       <?php else: ?>
13
-        <?= $this->label; ?>
9
+        <?= $this->label ?>
14 10
       <?php endif; ?>
15 11
     </label>
16 12
   <?php endif; ?>
17 13
 <?php $this->endblock(); ?>
18 14
 
19 15
 <?php $this->block('field'); ?>
20
-  <input type="password" name="<?= $this->name; ?>" id="ctrl_<?php echo $this->id; ?>" class="text password<?php if ($this->class) echo ' ' . $this->class; ?>" value=""<?php echo $this->getAttributes(); ?>>
16
+  <input type="password" name="<?= $this->name ?>" id="ctrl_<?= $this->id ?>" class="text password<?php if ($this->class): ?> <?= $this->class ?><?php endif; ?>" value=""<?= $this->getAttributes() ?>>
21 17
 
22
-  <?php if ($this->addSubmit): ?>
23
-    <input type="submit" id="ctrl_<?= $this->id; ?>_submit" class="submit" value="<?php echo $this->slabel; ?>">
18
+  <?php if ($this->hasErrors()): ?>
19
+    <p class="error"><?= $this->getErrorAsString() ?></p>
24 20
   <?php endif; ?>
21
+
25 22
 <?php $this->endblock(); ?>
26 23
 
27 24
 <?php $this->block('label2'); ?>
28 25
   <?php if ($this->confirmLabel): ?>
29
-    <label for="ctrl_<?= $this->id; ?>_confirm" class="confirm<?php if ($this->class) echo ' ' . $this->class; ?>">
26
+    <label for="ctrl_<?= $this->id ?>_confirm" class="confirm<?php if ($this->class): ?> <?= $this->class ?><?php endif; ?>">
30 27
       <?php if ($this->mandatory): ?>
31
-        <span class="invisible"><?= $this->mandatoryField; ?></span> <?php echo $this->confirmLabel; ?><span class="mandatory">*</span>
28
+        <span class="invisible"><?= $this->mandatoryField ?> </span><?= $this->confirmLabel ?><span class="mandatory">*</span>
32 29
       <?php else: ?>
33
-        <?= $this->confirmLabel; ?>
30
+        <?= $this->confirmLabel ?>
34 31
       <?php endif; ?>
35 32
     </label>
36 33
   <?php endif; ?>
37 34
 <?php $this->endblock(); ?>
38 35
 
39 36
 <?php $this->block('field2'); ?>
40
-  <input type="password" name="<?= $this->name; ?>_confirm" id="ctrl_<?php echo $this->id; ?>_confirm" class="text password<?php if ($this->class) echo ' ' . $this->class; ?>" value=""<?php echo $this->getAttributes(); ?>>
37
+  <input type="password" name="<?= $this->name ?>_confirm" id="ctrl_<?= $this->id ?>_confirm" class="text password<?php if ($this->class): ?> <?= $this->class ?><?php endif; ?>" value=""<?= $this->getAttributes() ?>>
41 38
 <?php $this->endblock(); ?>
... ...
@@ -1,24 +1,36 @@
1 1
 <?php $this->extend('form_row'); ?>
2 2
 
3 3
 <?php $this->block('field'); ?>
4
-  <?php if ($this->hasErrors()): ?>
5
-  <span class="errortip" title="<?= htmlspecialchars($this->getErrorsAsString()); ?>" data-tooltip="position: top; offsetY: 10; theme: tooltipster-error; contentAsHTML: true;">?</span>
6
-  <?php endif; ?>
7
-  <fieldset id="ctrl_<?= $this->id; ?>" class="radio_container<?php if ($this->class) echo ' ' . $this->class; ?>">
4
+  <fieldset id="ctrl_<?= $this->id ?>" class="radio_container<?php if ($this->class): ?> <?= $this->class ?><?php endif; ?>">
8 5
 
9 6
     <?php if ($this->label): ?>
10 7
       <legend>
11 8
         <?php if ($this->mandatory): ?>
12
-          <span class="invisible"><?= $this->mandatoryField; ?></span> <?php echo $this->label; ?><span class="mandatory">*</span>
9
+          <span class="invisible"><?= $this->mandatoryField ?> </span><?= $this->label ?><span class="mandatory">*</span>
13 10
         <?php else: ?>
14
-          <?= $this->label; ?>
11
+          <?= $this->label ?>
15 12
         <?php endif; ?>
16 13
       </legend>
17 14
     <?php endif; ?>
18 15
 
19 16
     <?php foreach ($this->getOptions() as $option): ?>
20
-      <span><input type="radio" name="<?= $option['name']; ?>" id="opt_<?php echo $option['id']; ?>" class="radio" value="<?php echo $option['value']; ?>"<?php echo $option['checked']; ?><?php echo $option['attributes']; ?>> <label id="lbl_<?php echo $option['id']; ?>" for="opt_<?php echo $option['id']; ?>"><?php echo $option['label']; ?></label></span>
17
+      <?php if ('group_start' == $option['type']): ?>
18
+        <fieldset>
19
+        <legend><?= $option['label'] ?></legend>
20
+      <?php endif; ?>
21
+
22
+      <?php if ('option' == $option['type']): ?>
23
+        <span><input type="radio" name="<?= $option['name'] ?>" id="opt_<?= $option['id'] ?>" class="radio" value="<?= $option['value'] ?>"<?= $option['checked'] ?><?= $option['attributes'] ?>> <label id="lbl_<?= $option['id'] ?>" for="opt_<?= $option['id'] ?>"><?= $option['label'] ?></label></span>
24
+      <?php endif; ?>
25
+
26
+      <?php if ('group_end' == $option['type']): ?>
27
+        </fieldset>
28
+      <?php endif; ?>
21 29
     <?php endforeach; ?>
22 30
 
31
+    <?php if ($this->hasErrors()): ?>
32
+      <p class="error"><?= $this->getErrorAsString() ?></p>
33
+    <?php endif; ?>
34
+
23 35
   </fieldset>
24 36
 <?php $this->endblock(); ?>
... ...
@@ -1,5 +1,5 @@
1 1
 
2
-<div class="<?= $this->prefix; ?><?php if ($this->class) echo ' ' . $this->class; ?><?php if ($this->eSM_fl_width): ?> w<?php echo $this->eSM_fl_width; ?><?php endif; ?><?php if ($this->eSM_fl_clear): ?> clr<?php endif; ?><?php if ($this->eSM_fl_class): ?> <?php echo $this->eSM_fl_class; ?><?php endif; ?>">
2
+<div class="<?= $this->prefix ?><?php if ($this->class): ?> <?= $this->class ?><?php endif; ?><?php if ($this->eSM_fl_width): ?> w<?= $this->eSM_fl_width; ?><?php endif; ?><?php if ($this->eSM_fl_clear): ?> clr<?php endif; ?><?php if ($this->eSM_fl_class): ?> <?= $this->eSM_fl_class; ?><?php endif; ?>">
3 3
   <?php $this->block('label'); ?>
4 4
   <?php $this->endblock(); ?>
5 5
 
... ...
@@ -1,5 +1,5 @@
1 1
 
2
-<div class="<?= $this->prefix; ?><?php if ($this->class) echo ' ' . $this->class; ?><?php if ($this->eSM_fl_width): ?> w<?php echo $this->eSM_fl_width; ?><?php endif; ?><?php if ($this->eSM_fl_clear): ?> clr<?php endif; ?><?php if ($this->eSM_fl_class): ?> <?php echo $this->eSM_fl_class; ?><?php endif; ?>">
2
+<div class="<?= $this->prefix ?><?php if ($this->class): ?> <?= $this->class ?><?php endif; ?><?php if ($this->eSM_fl_width): ?> w<?= $this->eSM_fl_width; ?><?php endif; ?><?php if ($this->eSM_fl_clear): ?> clr<?php endif; ?><?php if ($this->eSM_fl_class): ?> <?= $this->eSM_fl_class; ?><?php endif; ?>">
3 3
   <?php $this->block('label'); ?>
4 4
   <?php $this->endblock(); ?>
5 5
 
... ...
@@ -7,7 +7,7 @@
7 7
   <?php $this->endblock(); ?>
8 8
 </div>
9 9
 
10
-<div class="<?= $this->prefix; ?> confirm<?php if ($this->class) echo ' ' . $this->class; ?><?php if ($this->eSM_fl_width): ?> w<?php echo $this->eSM_fl_width; ?><?php endif; ?><?php if ($this->eSM_fl_class): ?> <?php echo $this->eSM_fl_class; ?><?php endif; ?>">
10
+<div class="<?= $this->prefix ?> confirm<?php if ($this->class): ?> <?= $this->class ?><?php endif; ?><?php if ($this->eSM_fl_width): ?> w<?= $this->eSM_fl_width; ?><?php endif; ?><?php if ($this->eSM_fl_clear): ?> clr<?php endif; ?><?php if ($this->eSM_fl_class): ?> <?= $this->eSM_fl_class; ?><?php endif; ?>">
11 11
   <?php $this->block('label2'); ?>
12 12
   <?php $this->endblock(); ?>
13 13
 
... ...
@@ -1,35 +1,41 @@
1 1
 <?php $this->extend('form_row'); ?>
2 2
 
3 3
 <?php $this->block('label'); ?>
4
-  <?php if ($this->hasErrors()): ?>
5
-    <span class="errortip" title="<?= htmlspecialchars($this->getErrorsAsString()); ?>" data-tooltip="position: top; offsetY: 10; theme: tooltipster-error; contentAsHTML: true;">?</span>
6
-  <?php endif; ?>
7
-
8 4
   <?php if ($this->label): ?>
9
-    <label for="ctrl_<?= $this->id; ?>"<?php if ($this->class): ?> class="<?php echo $this->class; ?>"<?php endif; ?>>
5
+    <label for="ctrl_<?= $this->id ?>"<?php if ($this->class): ?> class="<?= $this->class ?>"<?php endif; ?>>
10 6
       <?php if ($this->mandatory): ?>
11
-        <span class="invisible"><?= $this->mandatoryField; ?></span> <?php echo $this->label; ?><span class="mandatory">*</span>
7
+        <span class="invisible"><?= $this->mandatoryField ?> </span><?= $this->label ?><span class="mandatory">*</span>
12 8
       <?php else: ?>
13
-        <?= $this->label; ?>
9
+        <?= $this->label ?>
14 10
       <?php endif; ?>
15 11
     </label>
16 12
   <?php endif; ?>
17 13
 <?php $this->endblock(); ?>
18 14
 
19 15
 <?php $this->block('field'); ?>
20
-  <select name="<?= $this->name; ?>" id="ctrl_<?php echo $this->id; ?>" class="<?php echo $this->class; ?>"<?php echo $this->getAttributes(); ?>>
16
+
17
+  <?php if ($this->multiple): ?>
18
+    <input type="hidden" name="<?= rtrim($this->name, '[]') ?>" value="">
19
+  <?php endif; ?>
20
+
21
+  <select name="<?= $this->name ?>" id="ctrl_<?= $this->id ?>" class="<?= $this->class ?>"<?= $this->getAttributes() ?>>
21 22
     <?php foreach ($this->getOptions() as $option): ?>
22
-      <?php if ($option['type'] == 'group_start'): ?>
23
-        <optgroup label="<?= $option['label']; ?>">
23
+      <?php if ('group_start' == $option['type']): ?>
24
+        <optgroup label="<?= $option['label'] ?>">
24 25
       <?php endif; ?>
25 26
 
26
-      <?php if ($option['type'] == 'option'): ?>
27
-        <option value="<?= $option['value']; ?>"<?php echo $option['selected']; ?>><?php echo $option['label']; ?></option>
27
+      <?php if ('option' == $option['type']): ?>
28
+        <option value="<?= $option['value'] ?>"<?= $option['selected'] ?>><?= $option['label'] ?></option>
28 29
       <?php endif; ?>
29 30
 
30
-      <?php if ($option['type'] == 'group_end'): ?>
31
+      <?php if ('group_end' == $option['type']): ?>
31 32
         </optgroup>
32 33
       <?php endif; ?>
33 34
     <?php endforeach; ?>
34 35
   </select>
36
+
37
+  <?php if ($this->hasErrors()): ?>
38
+    <p class="error"><?= $this->getErrorAsString() ?></p>
39
+  <?php endif; ?>
40
+
35 41
 <?php $this->endblock(); ?>
36 42
deleted file mode 100644
... ...
@@ -1,7 +0,0 @@
1
-<div class="submit_container widget<?php if ($this->class) echo ' ' . $this->class; ?><?php if ($this->eSM_fl_width): ?> w<?= $this->eSM_fl_width; ?><?php endif; ?><?php if ($this->eSM_fl_clear): ?> clr<?php endif; ?><?php if ($this->eSM_fl_class): ?> <?php echo $this->eSM_fl_class; ?><?php endif; ?><?php if ($this->eSM_fl_lblpadding): ?> lblp<?php endif; ?><?php if ($this->eSM_fl_alignment): ?> <?php echo $this->eSM_fl_alignment; ?><?php endif; ?>">
2
-  <?php if ($this->src): ?>
3
-    <input type="image" src="<?= $this->src; ?>" id="ctrl_<?php echo $this->id; ?>" class="submit<?php if ($this->class) echo ' ' . $this->class; ?>" title="<?php echo specialchars($this->slabel); ?>" alt="<?php echo specialchars($this->slabel); ?>"<?php echo $this->getAttributes(); ?>>
4
-  <?php else: ?>
5
-    <button type="submit" id="ctrl_<?= $this->id; ?>" class="submit<?php if ($this->class) echo ' ' . $this->class; ?>"<?php echo $this->getAttributes(); ?>><?php echo specialchars($this->slabel); ?></button>
6
-  <?php endif; ?>
7
-</div>
... ...
@@ -1,20 +1,22 @@
1 1
 <?php $this->extend('form_row'); ?>
2 2
 
3 3
 <?php $this->block('label'); ?>
4
-  <?php if ($this->hasErrors()): ?>
5
-    <span class="errortip" title="<?= htmlspecialchars($this->getErrorsAsString()); ?>" data-tooltip="position: top; offsetY: 10; theme: tooltipster-error; contentAsHTML: true;">?</span>
6
-  <?php endif; ?>
7 4
   <?php if ($this->label): ?>
8
-    <label for="ctrl_<?= $this->id; ?>"<?php if ($this->class): ?> class="<?php echo $this->class; ?>"<?php endif; ?>>
5
+    <label for="ctrl_<?= $this->id ?>"<?php if ($this->class): ?> class="<?= $this->class ?>"<?php endif; ?>>
9 6
       <?php if ($this->mandatory): ?>
10
-        <span class="invisible"><?= $this->mandatoryField; ?></span> <?php echo $this->label; ?><span class="mandatory">*</span>
7
+        <span class="invisible"><?= $this->mandatoryField ?> </span><?= $this->label ?><span class="mandatory">*</span>
11 8
       <?php else: ?>
12
-        <?= $this->label; ?>
9
+        <?= $this->label ?>
13 10
       <?php endif; ?>
14 11
     </label>
15 12
   <?php endif; ?>
16 13
 <?php $this->endblock(); ?>
17 14
 
18 15
 <?php $this->block('field'); ?>
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>
16
+  <textarea name="<?= $this->name ?>" id="ctrl_<?= $this->id ?>" class="textarea<?php if ($this->class): ?> <?= $this->class ?><?php endif; ?>" rows="<?= $this->rows ?>" cols="<?= $this->cols ?>"<?= $this->getAttributes() ?>><?= $this->value ?></textarea>
17
+
18
+  <?php if ($this->hasErrors()): ?>
19
+    <p class="error"><?= $this->getErrorAsString() ?></p>
20
+  <?php endif; ?>
21
+
20 22
 <?php $this->endblock(); ?>
... ...
@@ -1,20 +1,21 @@
1 1
 <?php $this->extend('form_row'); ?>
2 2
 
3 3
 <?php $this->block('label'); ?>
4
-  <?php if ($this->hasErrors()): ?>
5
-    <span class="errortip" title="<?= htmlspecialchars($this->getErrorsAsString()); ?>" data-tooltip="position: top; offsetY: 10; theme: tooltipster-error; contentAsHTML: true;">?</span>
6
-  <?php endif; ?>
7 4
   <?php if ($this->label): ?>
8
-    <label for="ctrl_<?= $this->id; ?>"<?php if ($this->class): ?> class="<?php echo $this->class; ?>"<?php endif; ?>>
5
+    <label for="ctrl_<?= $this->id ?>"<?php if ($this->class): ?> class="<?= $this->class ?>"<?php endif; ?>>
9 6
       <?php if ($this->mandatory): ?>
10
-        <span class="invisible"><?= $this->mandatoryField; ?></span> <?php echo $this->label; ?><span class="mandatory">*</span>
7
+        <span class="invisible"><?= $this->mandatoryField ?> </span><?= $this->label ?><span class="mandatory">*</span>
11 8
       <?php else: ?>
12
-        <?= $this->label; ?>
9
+        <?= $this->label ?>
13 10
       <?php endif; ?>
14 11
     </label>
15 12
   <?php endif; ?>
16 13
 <?php $this->endblock(); ?>
17 14
 
18 15
 <?php $this->block('field'); ?>
19
-  <input type="<?= $this->type; ?>" name="<?php echo $this->name; ?>" id="ctrl_<?php echo $this->id; ?>" class="text<?php if ($this->hideInput) echo ' password'; ?><?php if ($this->class) echo ' ' . $this->class; ?>" value="<?php echo specialchars($this->value); ?>"<?php echo $this->getAttributes(); ?>>
16
+  <?php if ($this->hasErrors()): ?>
17
+    <p class="error"><?= $this->getErrorAsString() ?></p>
18
+  <?php endif; ?>
19
+
20
+  <input type="<?= $this->type ?>" name="<?= $this->name ?>" id="ctrl_<?= $this->id ?>" class="text<?php if ($this->hideInput): ?> password<?php endif; ?><?php if ($this->class): ?> <?= $this->class ?><?php endif; ?>" value="<?= Contao\StringUtil::specialchars($this->value) ?>"<?= $this->getAttributes() ?>>
20 21
 <?php $this->endblock(); ?>
... ...
@@ -1,21 +1,22 @@
1 1
 <?php $this->extend('form_row'); ?>
2 2
 
3 3
 <?php $this->block('label'); ?>
4
-  <?php if ($this->hasErrors()): ?>
5
-    <span class="errortip" title="<?= htmlspecialchars($this->getErrorsAsString()); ?>" data-tooltip="position: top; offsetY: 10; theme: tooltipster-error; contentAsHTML: true;">?</span>
6
-  <?php endif; ?>
7
-
8 4
   <?php if ($this->label): ?>
9
-    <label for="ctrl_<?= $this->id; ?>"<?php if ($this->class): ?> class="<?php echo $this->class; ?>"<?php endif; ?>>
5
+    <label for="ctrl_<?= $this->id ?>"<?php if ($this->class): ?> class="<?= $this->class ?>"<?php endif; ?>>
10 6
       <?php if ($this->mandatory): ?>
11
-        <span class="invisible"><?= $this->mandatoryField; ?></span> <?php echo $this->label; ?><span class="mandatory">*</span>
7
+        <span class="invisible"><?= $this->mandatoryField ?> </span><?= $this->label ?><span class="mandatory">*</span>
12 8
       <?php else: ?>
13
-        <?= $this->label; ?>
9
+        <?= $this->label ?>
14 10
       <?php endif; ?>
15 11
     </label>
16 12
   <?php endif; ?>
17 13
 <?php $this->endblock(); ?>
18 14
 
19 15
 <?php $this->block('field'); ?>
20
-  <input type="file" name="<?= $this->name; ?>" id="ctrl_<?php echo $this->id; ?>" class="upload<?php if ($this->class) echo ' ' . $this->class; ?>"<?php echo $this->getAttributes(); ?>>
16
+  <input type="file" name="<?= $this->name ?>" id="ctrl_<?= $this->id ?>" class="upload<?php if ($this->class): ?> <?= $this->class ?><?php endif; ?>"<?= $this->getAttributes() ?>>
17
+
18
+  <?php if ($this->hasErrors()): ?>
19
+    <p class="error"><?= $this->getErrorAsString() ?></p>
20
+  <?php endif; ?>
21
+
21 22
 <?php $this->endblock(); ?>
22 23
deleted file mode 100644
... ...
@@ -1,9 +0,0 @@
1
-<?php if (!$this->tableless): ?>
2
-  <tr class="<?= $this->rowClass; ?>">
3
-    <td class="col_0 col_first"><?= $this->generateLabel(); ?></td>
4
-    <td class="col_1 col_last"><?= $this->generateWithError(); ?></td>
5
-  </tr>
6
-<?php else: ?>
7
-  <?= $this->generateLabel(); ?>
8
-  <?= $this->generateWithError(); ?><br>
9
-<?php endif; ?>
10 0
\ No newline at end of file
11 1
deleted file mode 100644
... ...
@@ -1,17 +0,0 @@
1
-<?= '<?'; ?>xml version="1.0" encoding="<?php echo $this->charset; ?>" standalone="yes" ?>
2
-<!DOCTYPE form [
3
-  <!ELEMENT form (field)+>
4
-  <!ELEMENT field (name, value+)>
5
-  <!ELEMENT name (#PCDATA)>
6
-  <!ELEMENT value (#PCDATA)>
7
-]>
8
-<form>
9
-  <?php foreach ($this->fields as $field): ?>
10
-    <field>
11
-      <name><?= $field['name']; ?></name>
12
-      <?php foreach ($field['values'] as $value): ?>
13
-        <value><?= $value; ?></value>
14
-      <?php endforeach; ?>
15
-    </field>
16
-  <?php endforeach; ?>
17
-</form>
18 0
\ No newline at end of file