desing pruning

This commit is contained in:
bronkuu 2026-06-15 19:48:40 +02:00
parent b8cf13b7d5
commit be80307bde
7 changed files with 159 additions and 367 deletions

View file

@ -1,23 +1,20 @@
package templates
templ Nav() {
<button type="button" class="collapse-btn" onclick="toggleSidebar()" title="Zwiń / Rozwiń">
<span class="material-symbols-outlined">menu</span>
</button>
<a href="/order" class="cta" hx-get="/order" hx-target="#main" hx-swap="outerHTML" hx-push-url="true">
<span class="material-symbols-outlined">add</span>
<span>Nowe zamówienie</span>
</a>
<nav>
<a href="/orders" class="link" hx-get="/orders" hx-target="#main" hx-swap="outerHTML" hx-push-url="true">
<a href="/orders" hx-get="/orders" hx-target="#main" hx-swap="outerHTML" hx-push-url="true">
<span class="material-symbols-outlined">dashboard</span>
<span>Panel główny</span>
</a>
<a href="/cakes" class="link" hx-get="/cakes" hx-target="#main" hx-swap="outerHTML" hx-push-url="true">
<a href="/cakes" hx-get="/cakes" hx-target="#main" hx-swap="outerHTML" hx-push-url="true">
<span class="material-symbols-outlined">inventory_2</span>
<span>Katalog</span>
</a>
<a href="/blocked" class="link" hx-get="/blocked" hx-target="#main" hx-swap="outerHTML" hx-push-url="true">
<a href="/blocked" hx-get="/blocked" hx-target="#main" hx-swap="outerHTML" hx-push-url="true">
<span class="material-symbols-outlined">event_busy</span>
<span>Terminy zablokowane</span>
</a>

View file

@ -52,10 +52,7 @@ templ OrderForm(order models.Order, catalogue []models.Cake, allTags []models.Ta
<label>Zaliczka</label>
<input type="number" name="paid" min="0" step="0.01" value={ order.Paid.String() } oninput={ templ.JSFuncCall("updatePrepaid") }/>
</div>
<div class="col-span-2">
<label>Uwagi</label>
<input type="text" placeholder="Alergie, specjalne życzenia..."/>
</div>
</div>
</div>
</section>

View file

@ -20,38 +20,35 @@ templ SpecialCakeOverlay(allTags []models.Tag) {
</button>
</header>
<div class="overlay-body">
<div>
<label>Nazwa *</label>
<input type="text" id="sc-name" placeholder="Nazwa tortu"/>
<label>Cena *</label>
<input type="number" id="sc-price" min="0" step="0.01" placeholder="0.00"/>
<label>Wielkość</label>
<input type="text" id="sc-size" placeholder="np. 20cm, 30x40"/>
<label>Kształt</label>
<select id="sc-shape">
<option value="">—</option>
<option value="round">Okrągły</option>
<option value="square">Kwadrat</option>
</select>
<label>Smak</label>
<input type="text" id="sc-flavour" placeholder="np. czekoladowy"/>
<label>Notatki</label>
<input type="text" id="sc-notes" placeholder="Dodatkowe informacje"/>
if len(allTags) > 0 {
<label>Tagi</label>
<div class="tag-grid" id="sc-overlay-tags">
for _, t := range allTags {
<label class="tag-chip">
<input type="checkbox" class="sc-tag-cb" value={ strconv.Itoa(t.ID) }/>
{ t.Name }
</label>
}
</div>
<div class="horizontal-group">
<input type="text" id="sc-new-tag" placeholder="Nowy tag..."/>
</div>
}
</div>
<label>Nazwa *</label>
<input type="text" id="sc-name" placeholder="Nazwa tortu"/>
<label>Cena *</label>
<input type="number" id="sc-price" min="0" step="0.01" placeholder="0.00"/>
<label>Wielkość</label>
<input type="text" id="sc-size" placeholder="np. 20cm, 30x40"/>
<label>Kształt</label>
<select id="sc-shape">
<option value="">—</option>
<option value="round">Okrągły</option>
<option value="square">Kwadrat</option>
</select>
<label>Smak</label>
<input type="text" id="sc-flavour" placeholder="np. czekoladowy"/>
<label>Notatki</label>
<input type="text" id="sc-notes" placeholder="Dodatkowe informacje"/>
if len(allTags) > 0 {
<label>Tagi</label>
<div class="tag-grid" id="sc-overlay-tags">
for _, t := range allTags {
<label class="tag-chip">
<input type="checkbox" class="sc-tag-cb" value={ strconv.Itoa(t.ID) }/>
{ t.Name }
</label>
}
</div>
<label>Nowy tag</label>
<input type="text" id="sc-new-tag" placeholder="Nowy tag..."/>
}
</div>
<footer>
<button type="button" class="btn btn-outline" onclick="closeSpecialCakeOverlay()">Anuluj</button>