Skip to content

Commit 888be84

Browse files
committed
Fix adding parts on edit of wood
1 parent bdb2493 commit 888be84

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

templates/pages/wood/form.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424

2525
<p>
2626
<form action="/wood/document">
27-
<?php if (isset($parts)): ?>
28-
<?php foreach ($parts as $part): ?>
29-
<?= $this->insert('pages/wood/part-input', $part) ?>
30-
<?php endforeach ?>
31-
<?php else: ?>
32-
<div id="wood-form">
27+
<div id="wood-form">
28+
<?php if (isset($parts)): ?>
29+
<?php foreach ($parts as $part): ?>
30+
<?= $this->insert('pages/wood/part-input', $part) ?>
31+
<?php endforeach ?>
32+
<?php else: ?>
3333
<?= $this->insert('pages/wood/part-input') ?>
34-
</div>
35-
<?php endif ?>
34+
<?php endif ?>
35+
</div>
3636

3737
<table width="100%">
3838
<tr>

0 commit comments

Comments
 (0)