Merge pull request 'develop' (#1) from goffee/cup:develop into develop

Reviewed-on: diana/cup#1
This commit is contained in:
diana 2024-10-14 17:20:33 -04:00
commit d5f7bda021

View file

@ -113,6 +113,11 @@ func Themeform(c *core.Context) *core.Response {
optionc.Name = "citys"
optionc.Value = "buenosaires"
optionc.Label = "Buenos Aires"
allOptionsc = append(allOptionsc, optionc)
optionc.ID = "sogas"
optionc.Name = "sogas"
optionc.Value = "Sogamoso"
optionc.Label = "Sogamoso"
//optionc.IsChecked = true
allOptionsc = append(allOptionsc, optionc)
@ -540,13 +545,16 @@ func Themecontent(c *core.Context) *core.Response {
th.ID = "ba"
th.Value = "Column heading 3"
allTh = append(allTh, th)
// for td items
var allTd [][]components.ContentTableTD
var vals []components.ContentTableTD
//var vals []components.ContentTableTD
// rows
for i := 0; i < 5; i++ {
for i := 1; i <= 10; i++ {
vals := make([]components.ContentTableTD, len(allTh))
for b := 0; b < len(allTh); b++ {
vals[b].Value = fmt.Sprintf("%s%d%d", "TD data: ", b, i)
vals[b].Value = fmt.Sprintf("%s%d%d", "TD data: ", i, b)
vals[b].ID = fmt.Sprintf("%s%d%d", "idtd_", i, b)
}
allTd = append(allTd, vals)
}
@ -554,8 +562,7 @@ func Themecontent(c *core.Context) *core.Response {
// now fill data of the components
tmplData := templateData{
ContentTable: components.ContentTable{
ID: "email",
Label: "Email",
ID: "table_demo",
AllTH: allTh,
AllTD: allTd,
},