Moved "edit price" button to each entry
This commit is contained in:
@@ -9,7 +9,6 @@
|
|||||||
<body>
|
<body>
|
||||||
<button onclick="listPizze()">Lista</button>
|
<button onclick="listPizze()">Lista</button>
|
||||||
<button onclick="location.href='add.html'">Aggiungi</button>
|
<button onclick="location.href='add.html'">Aggiungi</button>
|
||||||
<button onclick="location.href='edit.html'">Modifica prezzo</button>
|
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
<div id="tabellaPizze"></div>
|
<div id="tabellaPizze"></div>
|
||||||
|
|||||||
@@ -32,7 +32,8 @@ function listPizze(){
|
|||||||
<td>${pizza.id}</td>
|
<td>${pizza.id}</td>
|
||||||
<td>${pizza.nome}</td>
|
<td>${pizza.nome}</td>
|
||||||
<td>${pizza.prezzo}€</td>
|
<td>${pizza.prezzo}€</td>
|
||||||
<td><button onclick="deletePizza({pizza.id})">Elimina</button></td>
|
<td><button onclick="alert('WIP')">Modifica</button>
|
||||||
|
<button onclick="deletePizza({pizza.id})">X</button></td>
|
||||||
</tr>`;
|
</tr>`;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user