removed cake categories
This commit is contained in:
parent
b3a5c0b19e
commit
d382de4236
10 changed files with 12 additions and 106 deletions
|
|
@ -17,25 +17,9 @@ Ciasto {{if .ID}}#{{.ID}}{{else}}nowe{{end}}
|
|||
<input class="form-input" type="text" name="name" value="{{.Name}}" placeholder="Nazwa ciasta">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Cena (gr) *</label>
|
||||
<label>Cena</label>
|
||||
<input class="form-input" type="number" name="price" min="0" value="{{.Price}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Kategoria</label>
|
||||
<select class="form-input" name="category">
|
||||
<option {{if eq .Category "common"}}selected{{end}} value="common">Zwykłe</option>
|
||||
<option {{if eq .Category "christmas"}}selected{{end}} value="christmas">Bożonarodzeniowe</option>
|
||||
<option {{if eq .Category "easter"}}selected{{end}} value="easter">Wielkanocne</option>
|
||||
<option {{if eq .Category "donuts"}}selected{{end}} value="donuts">Pączki</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Dostępność</label>
|
||||
<select class="form-input" name="availability">
|
||||
<option {{if eq .Availability "available"}}selected{{end}} value="available">Dostępne</option>
|
||||
<option {{if eq .Availability "unavailable"}}selected{{end}} value="unavailable">Niedostępne</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<a href="/cakes" class="btn btn-outline">Anuluj</a>
|
||||
<button type="submit" class="btn btn-primary">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue