final final final final final version (version 1.5)

This commit is contained in:
2024-10-25 08:59:35 +02:00
parent e27aba1cd1
commit d4fa6b8c6e
5 changed files with 23 additions and 17 deletions

View File

@@ -7,10 +7,11 @@
{% load static %}
{% block content %}
{% if user.is_authenticated %}
{% if bundle.product_type == "Computer" %}
<a href="/import/serials" class="pure-button pure-button-primary add-button">Importa Computer</a>
{% endif %}
<div class="detail-content">
{% if bundle.product_type == "Computer" %}
<a href="/import/serials" class="pure-button pure-button-primary add-button">Importa Computer</a>
{% endif %}
<table class="pure-table pure-table-horizontal width-100">
<thead>
<tr>

View File

@@ -12,16 +12,16 @@
<p>{{ err_str }}</p>
</div>
{% endif %}
<h3>Stai modificando: </h3>
<h3>Stai modificando lo studente {{ id }}:</h3>
<form action="/edit/student/{{ id }}" method="post" enctype="multipart/form-data" class="pure-form pure-form-2 pure-form-stacked">
{% csrf_token %}
<div class="from-content width-100">
{{ form }}
</div>
<div class="form-buttons">
<button type="submit" class="pure-button pure-button-primary">Modifica</button>
<button type="reset" class="pure-button button-warning">Reset</button>
</div>
</div>
<div class="form-buttons">
<button type="submit" class="pure-button pure-button-primary">Modifica</button>
<button type="reset" class="pure-button button-warning">Reset</button>
</div>
</form>
{% endif %}
{% endblock %}