update
This commit is contained in:
5
LICENSE
5
LICENSE
@@ -1,5 +0,0 @@
|
||||
Copyright (C) 2022 by Scossa
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
@@ -326,8 +326,8 @@ if os.path.exists('rubrica.txt') and os.path.exists('./DATI_RUBRICA'):
|
||||
if wr.upper() in ['YES', 'Y', 'SI', 'S']:
|
||||
print( '\n', os.listdir('./DATI_RUBRICA'), '\n')
|
||||
|
||||
scelta = input("Scegli un numero esistente o premi Enter per metterre un link: ")
|
||||
#scelta = '1'
|
||||
#scelta = input("Scegli un numero esistente o premi Enter per metterre un link: ")
|
||||
scelta = '1'
|
||||
parserdarubrica()
|
||||
|
||||
else:
|
||||
|
||||
@@ -1,25 +1,50 @@
|
||||
<html>
|
||||
<body>
|
||||
<head>
|
||||
<!-- <link rel="stylesheet" type="text/css" href="main.css" /> -->
|
||||
<style>
|
||||
|
||||
.container {
|
||||
display: grid;
|
||||
grid-template-columns: auto auto auto;
|
||||
padding: 10px;
|
||||
}
|
||||
.grid-item {
|
||||
/* background-color: rgba(255, 255, 255, 0.8); */
|
||||
border: 1px solid #ff8d1a;
|
||||
padding: 20px;
|
||||
/* font-size: 30px; */
|
||||
text-align: center;
|
||||
/* grid-column-start: 1;
|
||||
grid-column-end: 3; */
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<body style="background-color: black; color: white">
|
||||
<h1 style='text-align: center; color: #ff8d1a'>{{ nrist }} </h1>
|
||||
|
||||
<!-- <form id="usernameForm">
|
||||
<input type="text" id="prodottiAggiunti" placeholder="Enter your username" />
|
||||
<button type="button" onclick="addUser()">Add User</button> -->
|
||||
</form>
|
||||
<button type="button" onclick="addUser()">Add User</button>
|
||||
</form> -->
|
||||
</head>
|
||||
<br><br>
|
||||
|
||||
<ul>
|
||||
<div class="container">
|
||||
{% for index in range(nome|length) %}
|
||||
<div class="grid-item">
|
||||
<h2 style='text-align: center;'>{{ nome[index] }}</h2>
|
||||
|
||||
<div class="spazio">
|
||||
<p style='text-align: center;'>{{ desc[index] }}</p>
|
||||
</div>
|
||||
|
||||
<p style='text-align: center;'>Npezzi: {{ npezzi[index] }}</p>
|
||||
<p style='text-align: center;'>{{ prezzoN[index] }}€</p>
|
||||
<div style='text-align: center;'><button style='font-size: 1.2em;' onclick="aggiungiProdotto('{{ nome[index] }}', '{{ prezzoN[index] }}')">+1</button></div>
|
||||
<br><br>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<br><hr><h2>Prodotti aggiunti</h2>
|
||||
<div id="prodottiAggiunti"></div>
|
||||
|
||||
Reference in New Issue
Block a user