Save segunda brancha as backup

This commit is contained in:
fjrodriguez
2023-01-20 10:20:45 -06:00
parent 35798c5304
commit 2e432ae674
10 changed files with 164 additions and 8 deletions

View File

@@ -0,0 +1,13 @@
{% extends 'base.html' %}
{% block title %}
{{object}} | Sistemas
{% endblock title %}
{% block content %}
<h1>{{object.cliente}}</h1>
{{object.id_sistema}} <br>
{{object.num_licencias}}
{% endblock content %}

View File

@@ -0,0 +1,36 @@
{% extends "base.html" %}
{% block title %}
Sistemas Lista
{% endblock title %}
{% block content %}
<table class="table">
<thead class="thead-dark">
<tr>
<th scope="col">#</th>
<th scope="col">Sistema</th>
<th scope="col">Cliente</th>
<th scope="col">No. Licencias</th>
<th></th>
</tr>
</thead>
<tbody>
{% for row in object_list %}
<tr>
<th scope="row">{{row.id}}</th>
<td>{{row.id_sistema}}</td>
<td>{{row.cliente}}</td>
<td>{{row.num_licencias}}</td>
<td><a href="{% url 'detail_sistemas' row.id %}" class="btn btn-info">Detalles</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock content %}

View File

@@ -39,8 +39,11 @@
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
{% endcomment %}
<li class="nav-item">
<a class="nav-link" href="/sistemas" target="_blank">Sistemas</a>
</li>
{% if request.user.is_superuser %}
<li class="nav-item">
<a class="nav-link" href="/admin" target="_blank">Admin site</a>