Skip to content

Commit 57efbca

Browse files
Update 1
1 parent 4e66273 commit 57efbca

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

Creando_nuestro_primer_listado_en_django/.idea/workspace.xml

+1-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Creando_nuestro_primer_listado_en_django/core/erp/templates/category/list.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ <h3 class="card-title">
2424
<td> {{ c.id }}<td>
2525
<td> {{ c.name }}<td>
2626
<td>
27-
<button type="button" class="btn btn-primary"></button>
28-
<button type="button" class="btn btn-primary"></button>
27+
<button type="button" class="btn btn-primary btn-xs"><i class="fas fa-edit"></i></button>
28+
<button type="button" class="btn btn-danger btn-xs"><i class="far fa-trash-alt"></i></button>
2929
<td>
3030
</td>
3131
{% endfor %}

Creando_nuestro_primer_listado_en_django/core/erp/views/category/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
def category_list(request):
44
data = {
55
'title':'Listado de Categorias',
6-
'categorias': Category.objects.all()
6+
'categorias': category.objects.all()
77
}
88
return render(request, 'category/list.html', data)

0 commit comments

Comments
 (0)