Browse code

Progress

Benjamin Roth authored on21/02/2023 19:42:19
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,53 @@
1
+<?php $this->extend('block_unsearchable'); ?>
2
+
3
+<?php $this->block('content'); ?>
4
+
5
+<?php if (is_array($this->steps) && count($this->steps)): ?>
6
+<div class="steps block">
7
+<ul class="level_1 steps<?php echo count($this->steps); ?>">
8
+<?php foreach( $this->steps as $index => $step ): ?>
9
+<li class="<?php echo $step['class']; ?>">
10
+<span class="counter <?php echo $step['class']; ?>"><?= $index+1 ?></span>
11
+<?php if (strlen($step['href'])): ?>
12
+<a class="label <?php echo $step['class']; ?>" href="<?php echo $step['href']; ?>" title="<?php echo $step['title']; ?>"><?php echo $step['link']; ?></a>
13
+<?php else: ?>
14
+<span class="label <?php echo $step['class']; ?>"><?php if($step['isActive']): ?><span class="invisible"><?php echo $this->activeStep; ?></span><?php endif; ?><?php echo $step['link']; ?></span>
15
+<?php endif; ?>
16
+</li>
17
+<?php endforeach; ?>
18
+</ul>
19
+</div>
20
+<?php endif; ?>
21
+
22
+<?php if (strlen($this->message)): ?>
23
+<p class="messagebox <?php echo $this->mtype; ?> message"><?php echo $this->message; ?></p>
24
+<?php endif; ?>
25
+
26
+<?php if ($this->showForm): ?>
27
+<form action="<?php echo $this->action; ?>" id="<?php echo $this->formId; ?>" method="post" enctype="<?php echo $this->enctype; ?>" novalidate="novalidate">
28
+<div class="formbody">
29
+<input type="hidden" name="FORM_SUBMIT" value="<?php echo $this->formSubmit; ?>">
30
+<input type="hidden" name="REQUEST_TOKEN" value="{{request_token}}">
31
+<?php echo $this->hidden; ?>
32
+<?php endif; ?>
33
+<?php foreach ($this->fields as $field): ?>
34
+<div class="<?php echo $field['class']; ?>">
35
+<?php echo $field['html']; ?>
36
+</div>
37
+<?php endforeach; ?>
38
+<?php if ($this->showForm): ?>
39
+</div>
40
+<?php if ($this->showPrevious || $this->showNext): ?>
41
+    <div class="submit_container">
42
+      <?php if ($this->showPrevious): ?><div class="previous"><button type="submit" class="submit previous button" name="previousStep" value="<?php echo $this->previousLabel; ?>"><?php echo $this->previousLabel; ?></button></div><?php endif; ?>
43
+      <?php if ($this->showNext): ?><div class="<?php echo $this->nextClass; ?>"><button type="submit" class="submit <?php echo $this->nextClass; ?> button" name="nextStep" value="<?php echo $this->nextLabel; ?>"><?php echo $this->nextLabel; ?></button></div><?php endif; ?>
44
+    </div>
45
+<?php endif; ?>
46
+</form>
47
+<?php endif; ?>
48
+
49
+<script>
50
+    Isotope.checkoutButton(document.getElementById('<?php echo $this->formId; ?>'));
51
+</script>
52
+
53
+<?php $this->endblock(); ?>