Browse code

Templates now use php short open tags

Benjamin Roth authored on17/08/2015 17:19:47
Showing1 changed files
... ...
@@ -2,40 +2,40 @@
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
 
8 8
   <?php if ($this->label): ?>
9
-    <label for="ctrl_<?php echo $this->id; ?>"<?php if ($this->class): ?> class="<?php echo $this->class; ?>"<?php endif; ?>>
9
+    <label for="ctrl_<?= $this->id; ?>"<?php if ($this->class): ?> class="<?php echo $this->class; ?>"<?php endif; ?>>
10 10
       <?php if ($this->mandatory): ?>
11
-        <span class="invisible"><?php echo $this->mandatoryField; ?></span> <?php echo $this->label; ?><span class="mandatory">*</span>
11
+        <span class="invisible"><?= $this->mandatoryField; ?></span> <?php echo $this->label; ?><span class="mandatory">*</span>
12 12
       <?php else: ?>
13
-        <?php echo $this->label; ?>
13
+        <?= $this->label; ?>
14 14
       <?php endif; ?>
15 15
     </label>
16 16
   <?php endif; ?>
17 17
 <?php $this->endblock(); ?>
18 18
 
19 19
 <?php $this->block('field'); ?>
20
-  <input type="password" name="<?php echo $this->name; ?>" id="ctrl_<?php echo $this->id; ?>" class="text password<?php if ($this->class) echo ' ' . $this->class; ?>" value=""<?php echo $this->getAttributes(); ?>>
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(); ?>>
21 21
 
22 22
   <?php if ($this->addSubmit): ?>
23
-    <input type="submit" id="ctrl_<?php echo $this->id; ?>_submit" class="submit" value="<?php echo $this->slabel; ?>">
23
+    <input type="submit" id="ctrl_<?= $this->id; ?>_submit" class="submit" value="<?php echo $this->slabel; ?>">
24 24
   <?php endif; ?>
25 25
 <?php $this->endblock(); ?>
26 26
 
27 27
 <?php $this->block('label2'); ?>
28 28
   <?php if ($this->confirmLabel): ?>
29
-    <label for="ctrl_<?php echo $this->id; ?>_confirm" class="confirm<?php if ($this->class) echo ' ' . $this->class; ?>">
29
+    <label for="ctrl_<?= $this->id; ?>_confirm" class="confirm<?php if ($this->class) echo ' ' . $this->class; ?>">
30 30
       <?php if ($this->mandatory): ?>
31
-        <span class="invisible"><?php echo $this->mandatoryField; ?></span> <?php echo $this->confirmLabel; ?><span class="mandatory">*</span>
31
+        <span class="invisible"><?= $this->mandatoryField; ?></span> <?php echo $this->confirmLabel; ?><span class="mandatory">*</span>
32 32
       <?php else: ?>
33
-        <?php echo $this->confirmLabel; ?>
33
+        <?= $this->confirmLabel; ?>
34 34
       <?php endif; ?>
35 35
     </label>
36 36
   <?php endif; ?>
37 37
 <?php $this->endblock(); ?>
38 38
 
39 39
 <?php $this->block('field2'); ?>
40
-  <input type="password" name="<?php echo $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(); ?>>
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(); ?>>
41 41
 <?php $this->endblock(); ?>
Browse code

Initial commit

Benjamin Roth authored on27/03/2015 10:45:40
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,41 @@
1
+<?php $this->extend('form_row_double'); ?>
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
+
8
+  <?php if ($this->label): ?>
9
+    <label for="ctrl_<?php echo $this->id; ?>"<?php if ($this->class): ?> class="<?php echo $this->class; ?>"<?php endif; ?>>
10
+      <?php if ($this->mandatory): ?>
11
+        <span class="invisible"><?php echo $this->mandatoryField; ?></span> <?php echo $this->label; ?><span class="mandatory">*</span>
12
+      <?php else: ?>
13
+        <?php echo $this->label; ?>
14
+      <?php endif; ?>
15
+    </label>
16
+  <?php endif; ?>
17
+<?php $this->endblock(); ?>
18
+
19
+<?php $this->block('field'); ?>
20
+  <input type="password" name="<?php echo $this->name; ?>" id="ctrl_<?php echo $this->id; ?>" class="text password<?php if ($this->class) echo ' ' . $this->class; ?>" value=""<?php echo $this->getAttributes(); ?>>
21
+
22
+  <?php if ($this->addSubmit): ?>
23
+    <input type="submit" id="ctrl_<?php echo $this->id; ?>_submit" class="submit" value="<?php echo $this->slabel; ?>">
24
+  <?php endif; ?>
25
+<?php $this->endblock(); ?>
26
+
27
+<?php $this->block('label2'); ?>
28
+  <?php if ($this->confirmLabel): ?>
29
+    <label for="ctrl_<?php echo $this->id; ?>_confirm" class="confirm<?php if ($this->class) echo ' ' . $this->class; ?>">
30
+      <?php if ($this->mandatory): ?>
31
+        <span class="invisible"><?php echo $this->mandatoryField; ?></span> <?php echo $this->confirmLabel; ?><span class="mandatory">*</span>
32
+      <?php else: ?>
33
+        <?php echo $this->confirmLabel; ?>
34
+      <?php endif; ?>
35
+    </label>
36
+  <?php endif; ?>
37
+<?php $this->endblock(); ?>
38
+
39
+<?php $this->block('field2'); ?>
40
+  <input type="password" name="<?php echo $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(); ?>>
41
+<?php $this->endblock(); ?>