trying to fix price
This commit is contained in:
parent
7feee7f8a3
commit
8194cea85e
10 changed files with 145 additions and 54 deletions
|
|
@ -24,14 +24,14 @@ templ CakeForm(cake models.Cake) {
|
|||
</h2>
|
||||
</div>
|
||||
<form method="post" class="card-body">
|
||||
<input type="hidden" name="id" value={ strconv.Itoa(cake.ID) } />
|
||||
<input type="hidden" name="id" value={ strconv.Itoa(cake.ID) }/>
|
||||
<div class="form-group">
|
||||
<label>Nazwa *</label>
|
||||
<input class="form-input" type="text" name="name" value={ cake.Name } placeholder="Nazwa ciasta" />
|
||||
<input class="form-input" type="text" name="name" value={ cake.Name } placeholder="Nazwa ciasta"/>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Cena</label>
|
||||
<input class="form-input" type="number" name="price" min="0" value={ strconv.Itoa(cake.Price) } />
|
||||
<input class="form-input" type="number" name="price" min="0" value={ cake.Price.String() }/>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<a href="/cakes" class="btn btn-outline">Anuluj</a>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue