{% extends "base.html" %}
{% load static %}
{% block content %}
<form action="/nuovo_matr/" method="post"> {% csrf_token %}<button type="submit">Nuovo</button></form>
<form action="/cerca_mat" method="post"> {% csrf_token %}<button type="submit">Cerca</button></form>
<div id= "taba">
<table>
<tr class="prima">
<th>ID</th> <th><a href="/ordina/matricola">Matricola</th> <th><a href="/ordina/descrizione">Descrizione</th> <th><a href="/ordina/disegno">Disegno</th> <th><a href="/ordina/peso">Peso in Kg</th><th><a href="/ordina/codiceforn">Matricola Fornitore</th>
<th><a href="/ordina/qta">Quantità</th><th><a href="/ordina/prezzo">Prezzo</th>
</tr>
{% for dati in tutti %}
<tr class={% cycle 'odd' 'even' %}>
<td>{{ dati.idmateriale }}</td> <td>{{ dati.matricola }}</td> <td>{{ dati.descrizione }}</td> <td><a href="/scarica_disegno/{{ dati.disegno }}">{{ dati.disegno }}</td> <td>{{ dati.peso }}</td><td>{{ dati.codiceforn }}</td>
<td contenteditable='true' name="qta"></td><td contenteditable='true' name="prezzo"></td>
</tr>
{% endfor %}
</table>
{{ frase }}
<form action="/crea_rfq_auto" method="post"> {% csrf_token %}<button type="submit">Crea RFQ</button></form></td>
</div>
{% endblock %}