Compare commits
2 Commits
32133a0d05
...
78f25fdfd3
Author | SHA1 | Date |
---|---|---|
tracer | 78f25fdfd3 | |
tracer | e2da6000b3 |
|
@ -25,10 +25,10 @@
|
||||||
<td><input type="text" id="city_<?= $id ?>" value="<?= $address->getCity(); ?>" disabled></td>
|
<td><input type="text" id="city_<?= $id ?>" value="<?= $address->getCity(); ?>" disabled></td>
|
||||||
<td><input type="text" id="phone_<?= $id ?>" value="<?= $address->getPhone(); ?>" disabled></td>
|
<td><input type="text" id="phone_<?= $id ?>" value="<?= $address->getPhone(); ?>" disabled></td>
|
||||||
<td>
|
<td>
|
||||||
<input type="button" value="Edit" id="edit_button_<?= $id ?>" onclick="editAddress(<?= $id ?>)">
|
<input type="button" value="Edit" id="edit_button_<?= $id ?>" onclick="editAddress('<?= $id ?>')">
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="button" value="Delete" onclick="deleteAddress(<?= $id ?>)">
|
<input type="button" value="Delete" onclick="deleteAddress('<?= $id ?>')">
|
||||||
<input type="hidden" id="owner_<?= $id ?>" value="<?= $id ?>">
|
<input type="hidden" id="owner_<?= $id ?>" value="<?= $id ?>">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -44,11 +44,10 @@
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<!-- TODO why is the route not found? $addPath = $router->path('/address/add'); -->
|
<?php $addAddress = $router->path('address_add'); ?>
|
||||||
<input type="button" value="Add Address" onclick="addAddress('address/add')">
|
<input type="button" value="Add Address" onclick="addAddress('<?= $addAddress ?>')">
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
Your addresses wil be listed soon …
|
Your addresses will be listed soon …
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
|
||||||
<?php include '_footer.html.php' ?>
|
<?php include '_footer.html.php' ?>
|
||||||
|
|
Loading…
Reference in New Issue