diff options
Diffstat (limited to 'templates/install.tmpl')
-rw-r--r-- | templates/install.tmpl | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/templates/install.tmpl b/templates/install.tmpl index f45052ccd0..f8d1ef04e4 100644 --- a/templates/install.tmpl +++ b/templates/install.tmpl @@ -28,7 +28,7 @@ </div> </div> - <div id="sql_settings" class="{{if or (eq .CurDbOption "SQLite3") (eq .CurDbOption "TiDB")}}hide{{end}}"> + <div id="sql_settings" class="{{if or (eq .CurDbOption "SQLite3")}}hide{{end}}"> <div class="inline required field {{if .Err_DbSetting}}error{{end}}"> <label for="db_host">{{.i18n.Tr "install.host"}}</label> <input id="db_host" name="db_host" value="{{.db_host}}"> @@ -64,6 +64,21 @@ </div> </div> + <div id="mysql_settings" class="{{if not (eq .CurDbOption "MySQL")}}hide{{end}}"> + <div class="inline required field"> + <label>{{.i18n.Tr "install.charset"}}</label> + <div class="ui selection database type dropdown"> + <input type="hidden" name="charset" value="{{if .charset}}{{.charset}}{{else}}utf8{{end}}"> + <div class="default text">utf8</div> + <i class="dropdown icon"></i> + <div class="menu"> + <div class="item" data-value="utf8">utf8</div> + <div class="item" data-value="utf8mb4">utf8mb4</div> + </div> + </div> + </div> + </div> + <div id="sqlite_settings" class="{{if not (or (eq .CurDbOption "SQLite3") (eq .CurDbOption "TiDB"))}}hide{{end}}"> <div class="inline required field {{if or .Err_DbPath .Err_DbSetting}}error{{end}}"> <label for="db_path">{{.i18n.Tr "install.path"}}</label> |