|
|
|
@ -23,27 +23,27 @@
|
|
|
|
];
|
|
|
|
];
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<section style="max-width: 720px; margin: 1.5rem auto; padding: 0 1rem;">
|
|
|
|
<section class="page">
|
|
|
|
<h1 style="font-size: 1.4rem; font-weight: 600; margin-bottom: .75rem;">Preferencias de recordatorios</h1>
|
|
|
|
<h1 class="title">Preferencias de recordatorios</h1>
|
|
|
|
|
|
|
|
|
|
|
|
<Card>
|
|
|
|
<Card>
|
|
|
|
<form method="POST" style="display: grid; gap: .75rem;">
|
|
|
|
<form method="POST" class="form">
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<label for="freq" style="display:block; font-weight:600; margin-bottom: 0.25rem;">Frecuencia</label>
|
|
|
|
<label for="freq">Frecuencia</label>
|
|
|
|
<SegmentedControl name="freq" options={options} bind:value={freq} />
|
|
|
|
<SegmentedControl name="freq" options={options} bind:value={freq} />
|
|
|
|
<p style="font-size: 0.9rem; color: var(--color-text-muted); margin-top: 0.25rem;">
|
|
|
|
<p class="help">
|
|
|
|
- Diario: cada día a la hora indicada. - Laborables: solo lunes a viernes. - Semanal: los lunes.
|
|
|
|
- Diario: cada día a la hora indicada. - Laborables: solo lunes a viernes. - Semanal: los lunes.
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<label for="time" style="display:block; font-weight:600; margin-bottom: 0.25rem;">Hora (HH:MM)</label>
|
|
|
|
<label for="time">Hora (HH:MM)</label>
|
|
|
|
<input id="time" name="time" type="time" step="60" bind:value={time} disabled={freq === 'off'} />
|
|
|
|
<input id="time" name="time" type="time" step="60" bind:value={time} disabled={freq === 'off'} />
|
|
|
|
<p style="font-size: 0.9rem; color: var(--color-text-muted); margin-top: 0.25rem;">Zona horaria: {data.tz}</p>
|
|
|
|
<p class="help">Zona horaria: {data.tz}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{#if form?.error}
|
|
|
|
{#if form?.error}
|
|
|
|
<div style="color: var(--color-danger);">{form.error}</div>
|
|
|
|
<div class="error">{form.error}</div>
|
|
|
|
{/if}
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
@ -52,10 +52,21 @@
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
</Card>
|
|
|
|
</Card>
|
|
|
|
|
|
|
|
|
|
|
|
<div style="margin-top: 1rem;">
|
|
|
|
<div class="section">
|
|
|
|
<h2 style="font-size: 1.1rem; font-weight: 600;">Próximo recordatorio</h2>
|
|
|
|
<h2 class="subtitle">Próximo recordatorio</h2>
|
|
|
|
<ul>
|
|
|
|
<ul>
|
|
|
|
<li>Servidor: {data.next ?? '—'}</li>
|
|
|
|
<li>Servidor: {data.next ?? '—'}</li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
|
|
.page { max-width: 720px; margin: 1.5rem auto; padding: 0 1rem; }
|
|
|
|
|
|
|
|
.title { font-size: 1.4rem; font-weight: 600; margin-bottom: .75rem; }
|
|
|
|
|
|
|
|
.form { display: grid; gap: .75rem; }
|
|
|
|
|
|
|
|
label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
|
|
|
|
|
|
|
|
.help { font-size: 0.9rem; color: var(--color-text-muted); margin-top: 0.25rem; }
|
|
|
|
|
|
|
|
.error { color: var(--color-danger); }
|
|
|
|
|
|
|
|
.section { margin-top: 1rem; }
|
|
|
|
|
|
|
|
.subtitle { font-size: 1.1rem; font-weight: 600; }
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|