forked from goffee/cup
Compare commits
No commits in common. "d5f7bda02183d0ca018b366a3bbfbfd9edbac427" and "980689d496311ca39eb4ed73b82ea8e88c51b664" have entirely different histories.
d5f7bda021
...
980689d496
1 changed files with 5 additions and 12 deletions
|
@ -113,11 +113,6 @@ func Themeform(c *core.Context) *core.Response {
|
||||||
optionc.Name = "citys"
|
optionc.Name = "citys"
|
||||||
optionc.Value = "buenosaires"
|
optionc.Value = "buenosaires"
|
||||||
optionc.Label = "Buenos Aires"
|
optionc.Label = "Buenos Aires"
|
||||||
allOptionsc = append(allOptionsc, optionc)
|
|
||||||
optionc.ID = "sogas"
|
|
||||||
optionc.Name = "sogas"
|
|
||||||
optionc.Value = "Sogamoso"
|
|
||||||
optionc.Label = "Sogamoso"
|
|
||||||
//optionc.IsChecked = true
|
//optionc.IsChecked = true
|
||||||
allOptionsc = append(allOptionsc, optionc)
|
allOptionsc = append(allOptionsc, optionc)
|
||||||
|
|
||||||
|
@ -545,16 +540,13 @@ func Themecontent(c *core.Context) *core.Response {
|
||||||
th.ID = "ba"
|
th.ID = "ba"
|
||||||
th.Value = "Column heading 3"
|
th.Value = "Column heading 3"
|
||||||
allTh = append(allTh, th)
|
allTh = append(allTh, th)
|
||||||
|
|
||||||
// for td items
|
// for td items
|
||||||
var allTd [][]components.ContentTableTD
|
var allTd [][]components.ContentTableTD
|
||||||
//var vals []components.ContentTableTD
|
var vals []components.ContentTableTD
|
||||||
// rows
|
// rows
|
||||||
for i := 1; i <= 10; i++ {
|
for i := 0; i < 5; i++ {
|
||||||
vals := make([]components.ContentTableTD, len(allTh))
|
|
||||||
for b := 0; b < len(allTh); b++ {
|
for b := 0; b < len(allTh); b++ {
|
||||||
vals[b].Value = fmt.Sprintf("%s%d%d", "TD data: ", i, b)
|
vals[b].Value = fmt.Sprintf("%s%d%d", "TD data: ", b, i)
|
||||||
vals[b].ID = fmt.Sprintf("%s%d%d", "idtd_", i, b)
|
|
||||||
}
|
}
|
||||||
allTd = append(allTd, vals)
|
allTd = append(allTd, vals)
|
||||||
}
|
}
|
||||||
|
@ -562,7 +554,8 @@ func Themecontent(c *core.Context) *core.Response {
|
||||||
// now fill data of the components
|
// now fill data of the components
|
||||||
tmplData := templateData{
|
tmplData := templateData{
|
||||||
ContentTable: components.ContentTable{
|
ContentTable: components.ContentTable{
|
||||||
ID: "table_demo",
|
ID: "email",
|
||||||
|
Label: "Email",
|
||||||
AllTH: allTh,
|
AllTH: allTh,
|
||||||
AllTD: allTd,
|
AllTD: allTd,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue