Skip to content

Instantly share code, notes, and snippets.

Created September 4, 2019 19:03
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
<!DOCTYPE html>
<html lang="es" xmlns:th=""
<main layout:fragment="contenido">
<div class="col-12">
<div th:classappend="'alert-' + (${clase != null} ? ${clase} : info)" th:if="${mensaje != null}"
<a class="btn btn-success mb-2" th:href="@{/productos/agregar}">Agregar</a>
<div class="table-responsive">
<table class="table table-bordered">
<tr th:each="producto : ${productos}">
<td th:text="${producto.nombre}"></td>
<td th:text="${producto.codigo}"></td>
<td th:text="${producto.precio}"></td>
<td th:text="${producto.existencia}"></td>
<a class="btn btn-warning" th:href="@{/productos/editar/} + ${}">Editar <i
class="fa fa-edit"></i></a>
<form th:action="@{/productos/eliminar}" method="post">
<input type="hidden" name="id" th:value="${}"/>
<button type="submit" class="btn btn-danger">Eliminar <i class="fa fa-trash"></i>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment