|
@@ -64,6 +64,55 @@ func (this *Modules) RegisterModule_Settings() *Module {
|
|
}
|
|
}
|
|
modules_list += `>Shop</option>`
|
|
modules_list += `>Shop</option>`
|
|
modules_list += `</select>`
|
|
modules_list += `</select>`
|
|
|
|
+
|
|
|
|
+ price_format_list := ``
|
|
|
|
+ price_format_list += `<select class="form-control" id="lbl_price-fomat" name="price-fomat">`
|
|
|
|
+ price_format_list += `<option value="0"`
|
|
|
|
+ if (*wrap.Config).Shop.Price.Format == 0 {
|
|
|
|
+ price_format_list += ` selected`
|
|
|
|
+ }
|
|
|
|
+ price_format_list += `>100 USD</option>`
|
|
|
|
+ price_format_list += `<option value="1"`
|
|
|
|
+ if (*wrap.Config).Shop.Price.Format == 1 {
|
|
|
|
+ price_format_list += ` selected`
|
|
|
|
+ }
|
|
|
|
+ price_format_list += `>100.0 USD</option>`
|
|
|
|
+ price_format_list += `<option value="2"`
|
|
|
|
+ if (*wrap.Config).Shop.Price.Format == 2 {
|
|
|
|
+ price_format_list += ` selected`
|
|
|
|
+ }
|
|
|
|
+ price_format_list += `>100.00 USD</option>`
|
|
|
|
+ price_format_list += `<option value="3"`
|
|
|
|
+ if (*wrap.Config).Shop.Price.Format == 3 {
|
|
|
|
+ price_format_list += ` selected`
|
|
|
|
+ }
|
|
|
|
+ price_format_list += `>100.000 USD</option>`
|
|
|
|
+ price_format_list += `<option value="4"`
|
|
|
|
+ if (*wrap.Config).Shop.Price.Format == 4 {
|
|
|
|
+ price_format_list += ` selected`
|
|
|
|
+ }
|
|
|
|
+ price_format_list += `>100.0000 USD</option>`
|
|
|
|
+ price_format_list += `</select>`
|
|
|
|
+
|
|
|
|
+ price_round_list := ``
|
|
|
|
+ price_round_list += `<select class="form-control" id="lbl_price-round" name="price-round">`
|
|
|
|
+ price_round_list += `<option value="0"`
|
|
|
|
+ if (*wrap.Config).Shop.Price.Round == 0 {
|
|
|
|
+ price_round_list += ` selected`
|
|
|
|
+ }
|
|
|
|
+ price_round_list += `>Don't round</option>`
|
|
|
|
+ price_round_list += `<option value="1"`
|
|
|
|
+ if (*wrap.Config).Shop.Price.Round == 1 {
|
|
|
|
+ price_round_list += ` selected`
|
|
|
|
+ }
|
|
|
|
+ price_round_list += `>Round to ceil</option>`
|
|
|
|
+ price_round_list += `<option value="2"`
|
|
|
|
+ if (*wrap.Config).Shop.Price.Round == 2 {
|
|
|
|
+ price_round_list += ` selected`
|
|
|
|
+ }
|
|
|
|
+ price_round_list += `>Round to floor</option>`
|
|
|
|
+ price_round_list += `</select>`
|
|
|
|
+
|
|
return `<div class="form-group n3">` +
|
|
return `<div class="form-group n3">` +
|
|
`<div class="row">` +
|
|
`<div class="row">` +
|
|
`<div class="col-md-3">` +
|
|
`<div class="col-md-3">` +
|
|
@@ -75,6 +124,30 @@ func (this *Modules) RegisterModule_Settings() *Module {
|
|
`</div>` +
|
|
`</div>` +
|
|
`</div>` +
|
|
`</div>` +
|
|
`</div>` +
|
|
`</div>` +
|
|
|
|
+ `</div>` +
|
|
|
|
+ `<div class="form-group n3">` +
|
|
|
|
+ `<div class="row">` +
|
|
|
|
+ `<div class="col-md-3">` +
|
|
|
|
+ `<label for="lbl_price-fomat">Price format</label>` +
|
|
|
|
+ `</div>` +
|
|
|
|
+ `<div class="col-md-9">` +
|
|
|
|
+ `<div>` +
|
|
|
|
+ price_format_list +
|
|
|
|
+ `</div>` +
|
|
|
|
+ `</div>` +
|
|
|
|
+ `</div>` +
|
|
|
|
+ `</div>` +
|
|
|
|
+ `<div class="form-group n3">` +
|
|
|
|
+ `<div class="row">` +
|
|
|
|
+ `<div class="col-md-3">` +
|
|
|
|
+ `<label for="lbl_price-round">Price round</label>` +
|
|
|
|
+ `</div>` +
|
|
|
|
+ `<div class="col-md-9">` +
|
|
|
|
+ `<div>` +
|
|
|
|
+ price_round_list +
|
|
|
|
+ `</div>` +
|
|
|
|
+ `</div>` +
|
|
|
|
+ `</div>` +
|
|
`</div>`
|
|
`</div>`
|
|
},
|
|
},
|
|
},
|
|
},
|