css reducion
This commit is contained in:
parent
5f156ab6a0
commit
b8cf13b7d5
20 changed files with 1603 additions and 1677 deletions
|
|
@ -2,7 +2,6 @@ package templates
|
|||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
|
|
@ -83,14 +82,4 @@ func blockedDatesJSON(dates []models.BlockedDate) string {
|
|||
return string(b)
|
||||
}
|
||||
|
||||
func orderScript(order models.Order) string {
|
||||
var b strings.Builder
|
||||
b.WriteString("<script>")
|
||||
if order.ID != 0 {
|
||||
for _, c := range order.Cakes {
|
||||
b.WriteString(fmt.Sprintf("updateCatalogueQty(%d,%d);", c.ID, c.Amount))
|
||||
}
|
||||
}
|
||||
b.WriteString("updateTotals();</script>")
|
||||
return b.String()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue