This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
add type when edit dataset
tags/v1.21.12.1
lewis
4 years ago
parent
9f0e11809b
commit
4456871cbc
3 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
modules/auth/dataset.go
+1
-1
routers/repo/dataset.go
+1
-0
templates/repo/datasets/index.tmpl
+ 1
- 0
modules/auth/dataset.go
View File
@@ -31,4 +31,5 @@ type EditDatasetForm struct {
Private bool
ReleaseID int64 `xorm:"INDEX"`
Files []string
Type string `binding:"Required"`
}
+ 1
- 1
routers/repo/dataset.go
View File
@@ -122,5 +122,5 @@ func EditDatasetPost(ctx *context.Context, form auth.EditDatasetForm) {
ctx.HTML(200, tplIndex)
log.Error("%v", err)
}
ctx.Redirect(ctx.Repo.RepoLink + "/datasets")
ctx.Redirect(ctx.Repo.RepoLink + "/datasets
?type=
"
+ form.Type
)
}
+ 1
- 0
templates/repo/datasets/index.tmpl
View File
@@ -55,6 +55,7 @@
<div class="sixteen wide column">
<textarea name="description" rows="3">{{.dataset.Description}}</textarea>
</div>
<input name="type" value="{{.Type}}" type="hidden" />
<div class="sixteen wide column">
<a class="ui button" id="cancel">{{.i18n.Tr "cancel"}}</a>
<button class="ui primary button" id="submit">{{.i18n.Tr "dataset.update_dataset"}}</button>
Write
Preview
Loading…
Cancel
Save