Author: Pedro Lucas Porcellis <pedrolucasporcellis@gmail.com>
Add umbo tables
core/templates/cycle.html | 22 +++++++++++-----------
diff --git a/core/templates/cycle.html b/core/templates/cycle.html index c851f4b0ac48d0b4941b058f2fcc226ceb86c76b..1717498bed9b1cfbd7ceb6b6f2c88f0ca9e96fdf 100644 --- a/core/templates/cycle.html +++ b/core/templates/cycle.html @@ -17,29 +17,29 @@ <section class="products pb-5"> <form action="{{url_for('orders.update', id = current_order.id)}}" method="POST"> - <table> + <table class="umbo-table"> <thead> <tr> - <th></th> - <th>Nome do Produto</th> - <th>Grupo</th> - <th>Categoria</th> - <th>Preço</th> + <th class="umbo-table-header"></th> + <th class="umbo-table-header">Nome do Produto</th> + <th class="umbo-table-header">Grupo</th> + <th class="umbo-table-header">Categoria</th> + <th class="umbo-table-header umbo-table-header-numeric">Preço</th> </tr> </thead> <tbody> {% with selected_product_ids = current_order.selected_product_ids() if current_order else [] %} {% for product in products %} <tr> - <td> + <td class="umbo-table-cell mt-5"> {% if current_order %} <input type="checkbox" name="product_ids" {{ 'checked' if product.id in selected_product_ids }} {{ 'disabled' if current_order.status.value == 'confirmed' }} value="{{product.id}}"> {% endif %} </td> - <td> {{ product.title }} </td> - <td> {{ product.group.name }} </td> - <td> {{ product.category.name }}</td> - <td> {{ product.price_on(cycle) | as_currency }} </td> + <td class="umbo-table-cell"> {{ product.title }} </td> + <td class="umbo-table-cell"> {{ product.group.name }} </td> + <td class="umbo-table-cell"> {{ product.category.name }}</td> + <td class="umbo-table-cell umbo-table-cell-numeric"> {{ product.price_on(cycle) | as_currency }} </td> </tr> {% endfor %} {% endwith %}