Skip to content

Commit 4427305

Browse files
committed
Added edit and delete buttons
1 parent 021b6dc commit 4427305

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/views/countries/index.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
<th>Hoofdstad</th>
99
<th>Continent</th>
1010
<th>Aantal inwoners</th>
11+
<th></th>
12+
<th></th>
1113
</tr>
1214
</thead>
1315
<tbody>
@@ -20,6 +22,12 @@
2022
<td>{$country->capitalCity}</td>
2123
<td>{$country->continent}</td>
2224
<td>{$country->population}</td>
25+
<td><a href='./countries/edit?id={$country->id}'>
26+
Edit
27+
</a></td>
28+
<td><a href='./countries/delete?id={$country->id}'>
29+
Delete
30+
</a></td>
2331
</tr>
2432
";
2533
}

0 commit comments

Comments
 (0)