@@ -41,13 +41,14 @@ func ShowInfo(ctx *context.Context) {
41
41
newUrl := modules .AorB (panel .GetCanAdd () && ! panel .GetInfo ().IsHideNewButton ,
42
42
config .Url ("/info/" + prefix + "/new" + params .GetRouteParamStr ()), "" )
43
43
infoUrl := config .Url ("/info/" + prefix )
44
+ updateUrl := config .Url ("/update/" + prefix )
44
45
45
- buf := showTable (ctx , panel , ctx .Path (), params , exportUrl , newUrl , deleteUrl , infoUrl , editUrl )
46
+ buf := showTable (ctx , panel , ctx .Path (), params , exportUrl , newUrl , deleteUrl , infoUrl , editUrl , updateUrl )
46
47
ctx .Html (http .StatusOK , buf .String ())
47
48
}
48
49
49
50
func showTable (ctx * context.Context , panel table.Table , path string , params parameter.Parameters ,
50
- exportUrl , newUrl , deleteUrl , infoUrl , editUrl string ) * bytes.Buffer {
51
+ exportUrl , newUrl , deleteUrl , infoUrl , editUrl , updateUrl string ) * bytes.Buffer {
51
52
52
53
panelInfo , err := panel .GetDataFromDatabase (path , params )
53
54
@@ -97,6 +98,7 @@ func showTable(ctx *context.Context, panel table.Table, path string, params para
97
98
SetExportUrl (exportUrl ).
98
99
SetNewUrl (newUrl ).
99
100
SetEditUrl (editUrl ).
101
+ SetUpdateUrl (updateUrl ).
100
102
SetDeleteUrl (deleteUrl ).GetContent (),
101
103
}
102
104
}
@@ -112,6 +114,7 @@ func showTable(ctx *context.Context, panel table.Table, path string, params para
112
114
SetExportUrl (exportUrl ).
113
115
SetNewUrl (newUrl ).
114
116
SetEditUrl (editUrl ).
117
+ SetUpdateUrl (updateUrl ).
115
118
SetDeleteUrl (deleteUrl )
116
119
body = dataTable .GetContent ()
117
120
}
0 commit comments