Skip to content

Commit

Permalink
fix(form): fixed form select error
Browse files Browse the repository at this point in the history
  • Loading branch information
cg33 committed May 10, 2020
1 parent 892e931 commit fe0b8c3
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 69 deletions.
66 changes: 33 additions & 33 deletions adminlte/resource/assets.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func resourceAssetsDistCssAllMinCss() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/css/all.min.css", size: 499651, mode: os.FileMode(420), modTime: time.Unix(1588909163, 0)}
info := bindataFileInfo{name: "resource/assets/dist/css/all.min.css", size: 499651, mode: os.FileMode(420), modTime: time.Unix(1589117074, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -135,7 +135,7 @@ func resourceAssetsDistCssBluePng() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/css/blue.png", size: 1132, mode: os.FileMode(493), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/css/blue.png", size: 1132, mode: os.FileMode(493), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -155,7 +155,7 @@ func resourceAssetsDistCssBlue2xPng() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/css/[email protected]", size: 1410, mode: os.FileMode(493), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/css/[email protected]", size: 1410, mode: os.FileMode(493), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -175,7 +175,7 @@ func resourceAssetsDistCssFonts6xk3dsbykcsvLcoeqqfx1ryoo3qok7gTtf() (*asset, err
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/css/fonts/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7g.ttf", size: 39456, mode: os.FileMode(420), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/css/fonts/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7g.ttf", size: 39456, mode: os.FileMode(420), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -195,7 +195,7 @@ func resourceAssetsDistCssFonts6xkydsbykcsvLcoeqqfx1ryoo3i54rwlxdrTtf() (*asset,
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/css/fonts/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwlxdr.ttf", size: 39084, mode: os.FileMode(420), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/css/fonts/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwlxdr.ttf", size: 39084, mode: os.FileMode(420), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -215,7 +215,7 @@ func resourceAssetsDistCssFonts6xkydsbykcsvLcoeqqfx1ryoo3ig4vwlxdrTtf() (*asset,
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/css/fonts/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwlxdr.ttf", size: 39128, mode: os.FileMode(420), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/css/fonts/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwlxdr.ttf", size: 39128, mode: os.FileMode(420), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -235,7 +235,7 @@ func resourceAssetsDistCssFonts6xkydsbykcsvLcoeqqfx1ryoo3ik4zwlxdrTtf() (*asset,
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/css/fonts/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwlxdr.ttf", size: 39656, mode: os.FileMode(420), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/css/fonts/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwlxdr.ttf", size: 39656, mode: os.FileMode(420), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -255,7 +255,7 @@ func resourceAssetsDistFonts6xk1dsbykcsvLcoeqqfx1ryoo3qpz7nsdcTtf() (*asset, err
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/fonts/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7nsDc.ttf", size: 36616, mode: os.FileMode(420), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/fonts/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7nsDc.ttf", size: 36616, mode: os.FileMode(420), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -275,7 +275,7 @@ func resourceAssetsDistFonts6xkwdsbykcsvLcoeqqfx1ryoo3qpzy4lcds18eTtf() (*asset,
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/fonts/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCds18E.ttf", size: 36536, mode: os.FileMode(420), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/fonts/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCds18E.ttf", size: 36536, mode: os.FileMode(420), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -295,7 +295,7 @@ func resourceAssetsDistFonts6xkwdsbykcsvLcoeqqfx1ryoo3qpzzmkids18eTtf() (*asset,
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/fonts/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkids18E.ttf", size: 36932, mode: os.FileMode(420), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/fonts/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkids18E.ttf", size: 36932, mode: os.FileMode(420), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -315,7 +315,7 @@ func resourceAssetsDistFontsFontawesomeOtf() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/fonts/FontAwesome.otf", size: 134808, mode: os.FileMode(493), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/fonts/FontAwesome.otf", size: 134808, mode: os.FileMode(493), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -335,7 +335,7 @@ func resourceAssetsDistFontsFontawesomeWebfontEot() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/fonts/fontawesome-webfont.eot", size: 165742, mode: os.FileMode(493), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/fonts/fontawesome-webfont.eot", size: 165742, mode: os.FileMode(493), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -355,7 +355,7 @@ func resourceAssetsDistFontsFontawesomeWebfontSvg() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/fonts/fontawesome-webfont.svg", size: 444379, mode: os.FileMode(493), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/fonts/fontawesome-webfont.svg", size: 444379, mode: os.FileMode(493), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -375,7 +375,7 @@ func resourceAssetsDistFontsFontawesomeWebfontTtf() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/fonts/fontawesome-webfont.ttf", size: 165548, mode: os.FileMode(493), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/fonts/fontawesome-webfont.ttf", size: 165548, mode: os.FileMode(493), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -395,7 +395,7 @@ func resourceAssetsDistFontsFontawesomeWebfontWoff() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/fonts/fontawesome-webfont.woff", size: 98024, mode: os.FileMode(493), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/fonts/fontawesome-webfont.woff", size: 98024, mode: os.FileMode(493), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -415,7 +415,7 @@ func resourceAssetsDistFontsFontawesomeWebfontWoff2() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/fonts/fontawesome-webfont.woff2", size: 77160, mode: os.FileMode(493), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/fonts/fontawesome-webfont.woff2", size: 77160, mode: os.FileMode(493), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -435,7 +435,7 @@ func resourceAssetsDistFontsGlyphiconsHalflingsRegularEot() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/fonts/glyphicons-halflings-regular.eot", size: 20127, mode: os.FileMode(493), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/fonts/glyphicons-halflings-regular.eot", size: 20127, mode: os.FileMode(493), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -455,7 +455,7 @@ func resourceAssetsDistFontsGlyphiconsHalflingsRegularSvg() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/fonts/glyphicons-halflings-regular.svg", size: 108738, mode: os.FileMode(493), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/fonts/glyphicons-halflings-regular.svg", size: 108738, mode: os.FileMode(493), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -475,7 +475,7 @@ func resourceAssetsDistFontsGlyphiconsHalflingsRegularTtf() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/fonts/glyphicons-halflings-regular.ttf", size: 45404, mode: os.FileMode(493), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/fonts/glyphicons-halflings-regular.ttf", size: 45404, mode: os.FileMode(493), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -495,7 +495,7 @@ func resourceAssetsDistFontsGlyphiconsHalflingsRegularWoff() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/fonts/glyphicons-halflings-regular.woff", size: 23424, mode: os.FileMode(493), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/fonts/glyphicons-halflings-regular.woff", size: 23424, mode: os.FileMode(493), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -515,7 +515,7 @@ func resourceAssetsDistFontsGlyphiconsHalflingsRegularWoff2() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/fonts/glyphicons-halflings-regular.woff2", size: 18028, mode: os.FileMode(493), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/fonts/glyphicons-halflings-regular.woff2", size: 18028, mode: os.FileMode(493), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -535,7 +535,7 @@ func resourceAssetsDistFontsIoniconsTtf() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/fonts/ionicons.ttf", size: 188508, mode: os.FileMode(493), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/fonts/ionicons.ttf", size: 188508, mode: os.FileMode(493), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -555,7 +555,7 @@ func resourceAssetsDistFontsIoniconsWoff() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/fonts/ionicons.woff", size: 67904, mode: os.FileMode(493), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/fonts/ionicons.woff", size: 67904, mode: os.FileMode(493), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -575,7 +575,7 @@ func resourceAssetsDistImgAvatar04Png() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/img/avatar04.png", size: 8582, mode: os.FileMode(420), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/img/avatar04.png", size: 8582, mode: os.FileMode(420), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -595,7 +595,7 @@ func resourceAssetsDistImgClearPng() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/img/clear.png", size: 509, mode: os.FileMode(420), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/img/clear.png", size: 509, mode: os.FileMode(420), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -615,7 +615,7 @@ func resourceAssetsDistImgLoadingGif() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/img/loading.gif", size: 1849, mode: os.FileMode(420), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/img/loading.gif", size: 1849, mode: os.FileMode(420), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -635,7 +635,7 @@ func resourceAssetsDistJsAllMinJs() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/js/all.min.js", size: 186134, mode: os.FileMode(420), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/js/all.min.js", size: 186134, mode: os.FileMode(420), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -655,7 +655,7 @@ func resourceAssetsDistJsAll_2MinJs() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/js/all_2.min.js", size: 63021, mode: os.FileMode(420), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/js/all_2.min.js", size: 63021, mode: os.FileMode(420), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -675,7 +675,7 @@ func resourceAssetsDistJsDatatableMinJs() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/js/datatable.min.js", size: 159617, mode: os.FileMode(420), modTime: time.Unix(1588909163, 0)}
info := bindataFileInfo{name: "resource/assets/dist/js/datatable.min.js", size: 159617, mode: os.FileMode(420), modTime: time.Unix(1589117074, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -695,7 +695,7 @@ func resourceAssetsDistJsFormMinJs() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/js/form.min.js", size: 1368670, mode: os.FileMode(420), modTime: time.Unix(1588909163, 0)}
info := bindataFileInfo{name: "resource/assets/dist/js/form.min.js", size: 1368670, mode: os.FileMode(420), modTime: time.Unix(1589117074, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -715,7 +715,7 @@ func resourceAssetsDistJsHtml5shivMinJs() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/js/html5shiv.min.js", size: 2730, mode: os.FileMode(420), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/js/html5shiv.min.js", size: 2730, mode: os.FileMode(420), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -735,7 +735,7 @@ func resourceAssetsDistJsRespondMinJs() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/js/respond.min.js", size: 4377, mode: os.FileMode(420), modTime: time.Unix(1588909162, 0)}
info := bindataFileInfo{name: "resource/assets/dist/js/respond.min.js", size: 4377, mode: os.FileMode(420), modTime: time.Unix(1589117073, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand All @@ -755,7 +755,7 @@ func resourceAssetsDistJsTreeMinJs() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "resource/assets/dist/js/tree.min.js", size: 9273, mode: os.FileMode(420), modTime: time.Unix(1588909163, 0)}
info := bindataFileInfo{name: "resource/assets/dist/js/tree.min.js", size: 9273, mode: os.FileMode(420), modTime: time.Unix(1589117074, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand Down
1 change: 0 additions & 1 deletion adminlte/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,6 @@ var TemplateList = map[string]string{"admin_panel": `{{define "admin_panel"}}
<select class="form-control {{.Field}} select2-hidden-accessible" style="width: 100%;" name="{{.Field}}[]"
multiple="" data-placeholder="{{.Placeholder}}" tabindex="-1" aria-hidden="true"
{{if not .Editable}}disabled="disabled"{{end}}>
<option></option>
{{range $key, $v := .Options }}
<option value='{{$v.Value}}' {{$v.SelectedLabel}}>{{if ne $v.TextHTML ""}}{{$v.TextHTML}}{{else}}{{$v.Text}}{{end}}</option>
{{end}}
Expand Down
1 change: 0 additions & 1 deletion common/pages/components/form/select.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<select class="form-control {{.Field}} select2-hidden-accessible" style="width: 100%;" name="{{.Field}}[]"
multiple="" data-placeholder="{{.Placeholder}}" tabindex="-1" aria-hidden="true"
{{if not .Editable}}disabled="disabled"{{end}}>
<option></option>
{{range $key, $v := .Options }}
<option value='{{$v.Value}}' {{$v.SelectedLabel}}>{{if ne $v.TextHTML ""}}{{$v.TextHTML}}{{else}}{{$v.Text}}{{end}}</option>
{{end}}
Expand Down
Loading

0 comments on commit fe0b8c3

Please sign in to comment.