Compare commits

...

2 Commits

Author SHA1 Message Date
tracer 78f25fdfd3 removed some PPHPStorm warnings. 2022-10-26 11:13:04 +02:00
tracer e2da6000b3 fixed a bug while generating the addAddress route. 2022-10-26 11:11:58 +02:00
1 changed files with 5 additions and 6 deletions

View File

@ -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' ?>