final final version

This commit is contained in:
2024-10-24 09:07:17 +02:00
parent e44bb5677d
commit b762b57ec3
14 changed files with 164 additions and 78 deletions

View File

@@ -15,6 +15,8 @@
<div class="benvenuto">
<h3>Stai aggiungendo un seriale al bundle</h3>
</div>
<a href="/import/serials" class="pure-button pure-button-primary add-button">Importa Seriali</a>
<a href="/storage" class="pure-button pure-button-primary add-button">Ritorna al Magazzino</a>
<form action="/add/serial" method="post" class="pure-form pure-form-2 pure-form-stacked">
{% csrf_token %}
<div class="form-content width-100">

View File

@@ -20,12 +20,12 @@
<div class="pure-menu pure-menu-horizontal">
<a href="/" class="pure-menu-heading pure-menu-link"><img src="{% static 'images/xlogo-itsaltoadriatico.svg' %}" width="150px"></a>
<ul class="pure-menu-list">
<li class="pure-menu-item">
<a href="/storage" class="pure-menu-link">Magazzino</a>
</li>
<li class="pure-menu-item">
<a href="/suppliers" class="pure-menu-link">Fornitori</a>
</li>
<li class="pure-menu-item">
<a href="/storage" class="pure-menu-link">Magazzino</a>
</li>
<li class="pure-menu-item">
<a href="/courses" class="pure-menu-link">Corsi</a>
</li>

View File

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

View File

@@ -0,0 +1,28 @@
<!-- Copyright (C) 2024 Nastro_ -->
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at https://mozilla.org/MPL/2.0/. -->
{% extends "gestionale/base.html" %}
{% load static %}
{% block content %}
{% if user.is_authenticated %}
{% if err == True %}
<div>
{{ e }}
</div>
{% endif %}
<div class="import-card">
<div>
<form action="/import/courses" method="post" enctype="multipart/form-data" class="pure-form pure-form-stacked">
{% csrf_token %}
<div class="form-content">
{{ form }}
</div>
<button type="submit" class="pure-button pure-button-primary">Carica</button>
<button type="reset" class="pure-button button-warning">Reset</button>
</form>
</div>
</div>
{% endif %}
{% endblock %}

View File

@@ -0,0 +1,28 @@
<!-- Copyright (C) 2024 Nastro_ -->
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at https://mozilla.org/MPL/2.0/. -->
{% extends "gestionale/base.html" %}
{% load static %}
{% block content %}
{% if user.is_authenticated %}
{% if err == True %}
<div>
{{ e }}
</div>
{% endif %}
<div class="import-card">
<div>
<form action="/import/serials" method="post" enctype="multipart/form-data" class="pure-form pure-form-stacked">
{% csrf_token %}
<div class="form-content">
{{ form }}
</div>
<button type="submit" class="pure-button pure-button-primary">Carica</button>
<button type="reset" class="pure-button button-warning">Reset</button>
</form>
</div>
</div>
{% endif %}
{% endblock %}

View File

@@ -9,6 +9,8 @@
{% block content %}
{% if user.is_authenticated %}
<a href="/add/course" class="pure-button pure-button-primary add-button">Aggiungi Corso</a>
<a href="/import/courses" class="pure-button pure-button-primary add-button">Importa Corsi</a>
<table class="pure-table pure-table-horizontal width-100">
<thead>
<tr>