1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 09:13:10 +00:00

Make log path required

This commit is contained in:
Josh Frye 2016-02-12 10:10:02 -05:00
parent ec478b4b06
commit 8ab5399e83
2 changed files with 3 additions and 3 deletions

View file

@ -27,7 +27,7 @@ type InstallForm struct {
SSHPort int
HTTPPort string `binding:"Required"`
AppUrl string `binding:"Required"`
LogRootPath string
LogRootPath string `binding:"Required"`
SMTPHost string
SMTPFrom string

View file

@ -109,9 +109,9 @@
<input id="app_url" name="app_url" value="{{.app_url}}" placeholder="e.g. https://try.gogs.io" required>
<span class="help">{{.i18n.Tr "install.app_url_helper"}}</span>
</div>
<div class="inline field">
<div class="inline required field">
<label for="log_root_path">{{.i18n.Tr "install.log_root_path"}}</label>
<input id="log_root_path" name="log_root_path" value="{{.log_root_path}}" placeholder="log">
<input id="log_root_path" name="log_root_path" value="{{.log_root_path}}" placeholder="log" required>
<span class="help">{{.i18n.Tr "install.log_root_path_helper"}}</span>
</div>