style: alteração icones e fixação barra nav

This commit is contained in:
2025-01-07 19:16:29 -03:00
parent 3a6d214356
commit c0e93980ac
15 changed files with 114 additions and 24 deletions

View File

@@ -17,7 +17,7 @@ Produtos
{% block 'body' %}
<body><br>
<body>
<div class="grid-container">
<div class="grid-top">
<button style="
@@ -47,7 +47,12 @@ Produtos
<td id="category-{{product.id}}" >{{product.category.name}}</td>
<td>
<div class="grid-buttons">
<h2 onclick="editProduct({{product.id}})" style="cursor: pointer;" >📝</h2>
<img
src="{% static 'midia/icons/edit.svg' %}"
style=" width: 35px; height: 35px; cursor: pointer;"
onclick="editProduct({{product.id}})" >
</img>
<input type="hidden" id="h-category-{{product.id}}" value="{{ product.category.id }}">
<input type="hidden" id="description-{{product.id}}" value="{{ product.description }}">
@@ -56,9 +61,21 @@ Produtos
<input type="hidden" name="id-product" id="id-{{product.id}}" value="{{ product.id }}">
{% if product.active == True %}
<button style="background-color: rgba(255, 0, 0, 0);"></button>
<button style="background-color: rgba(255, 0, 0, 0); padding: 0px;">
<img
src="{% static 'midia/icons/toggle-on.svg' %}"
style=" width: 35px; height: 35px; cursor: pointer;"
>
</img>
</button>
{% else %}
<button style="background-color: rgba(0, 128, 0, 0);" >🚫</button>
<button style="background-color: rgba(0, 128, 0, 0); padding: 0px;" >
<img
src="{% static 'midia/icons/toggle-off.svg' %}"
style=" width: 35px; height: 35px; cursor: pointer;"
>
</img>
</button>
{% endif %}