File size: 2,271 Bytes
b6154b2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!doctype html>
<html lang="es">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Inventario Hogar</title>
    <link rel="stylesheet" href="/static/styles.css" />
    <script type="module" src="/static/app.js" defer></script>
  </head>
  <body>
    <main class="layout">
      <section class="hero">
        <div>
          <p class="eyebrow">Python Async + Whisper Local</p>
          <h1>Inventario del hogar</h1>
          <p class="lead">SQLite es la base principal. Google Sheets es respaldo. Telegram es el canal operativo.</p>
        </div>
      </section>
      <section class="grid">
        <article class="panel">
          <h2>Registrar producto</h2>
          <form id="product-form">
            <label>Producto<input name="producto" required /></label>
            <label>Precio<input name="precio" type="number" min="0" step="0.01" required /></label>
            <label>Cantidad<input name="cantidad" type="number" min="0.01" step="0.01" required /></label>
            <label>Unidad<input name="unidad" value="unidad" required /></label>
            <label>Fecha caducidad<input name="fechaCaducidad" type="date" required /></label>
            <label>Fecha ingreso<input name="fechaIngreso" type="date" required /></label>
            <label>Fecha produccion<input name="fechaProduccion" type="date" required /></label>
            <label>Notas<textarea name="notas" rows="3"></textarea></label>
            <button type="submit">Guardar</button>
          </form>
          <pre id="product-result" class="result"></pre>
        </article>
        <article class="panel">
          <h2>Consumir producto</h2>
          <form id="consume-form">
            <label>Producto<input name="producto" required /></label>
            <label>Cantidad<input name="cantidad" type="number" min="0.01" step="0.01" required /></label>
            <label>Unidad<input name="unidad" value="unidad" required /></label>
            <label>Notas<textarea name="notas" rows="3"></textarea></label>
            <button type="submit">Descontar</button>
          </form>
          <pre id="consume-result" class="result"></pre>
        </article>
      </section>
    </main>
  </body>
</html>