I am using Semantic-ui and on a page I load a table, which in the last two cells of each row, I place two icons that should behave as links to two other processes such as: edit the record, or delete it. Now... according to the semantic-ui people's documentation they say that you could load each row of the table in the following way:
<tr>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td class="center aligned">
<i class="eye icon"></i>
</td>
<td class="center aligned">
<i class="delete icon"></i>
</td>
</tr>
Now, I implement each row as follows inside a PHP while loop
<tbody>
<?php while($row = $resultado->fetch_array(MYSQLI_ASSOC)) { ?>
<tr>
<td><?php echo $row['id']; ?></td>
<td><?php echo $row['nombre']; ?></td>
<td><?php echo $row['usuario']; ?></td>
<td><?php echo $row['correo']; ?></td>
<td><?php echo $row['last_session']; ?></td>
<td class="center aligned">
<i class="eye icon">
<a href="modificar.php?id=<?php echo $row['id']; ?>"><p>Ver</p></a>
</i>
</td>
<td class="center aligned">
<i class="delete icon">
<a href="eliminar.php?id=<?php echo $row['id']; ?>"><p>Borrar</p></a>
</i>
</td>
</tr>
<?php } ?>
</tbody>
There I had to make a weird trick to put a "see" to have a link since I don't know how to make the icon become a "button"... or finally place a button in that cell... I don't know... Can someone who has experience with semantic-ui give me a hand? Thank you very much already !!!
How about putting the icons inside the links?