mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-15 18:56:59 +00:00
Work on form resubmit
This commit is contained in:
parent
b3f1ae1ba6
commit
af552596cf
6 changed files with 85 additions and 37 deletions
1
templates/base/alert.tmpl
Normal file
1
templates/base/alert.tmpl
Normal file
|
@ -0,0 +1 @@
|
|||
{{if .Flash.ErrorMsg}}<div class="alert alert-danger form-error">{{.Flash.ErrorMsg}}</div>{{end}}
|
|
@ -3,7 +3,7 @@
|
|||
<form action="/install" method="post" class="form-horizontal card" id="install-card">
|
||||
{{.CsrfTokenHtml}}
|
||||
<h3>Install Steps For First-time Run</h3>
|
||||
<div class="alert alert-danger form-error{{if .HasError}}{{else}} hidden{{end}}">{{.ErrorMsg}}</div>
|
||||
{{template "base/alert" .}}
|
||||
<p class="help-block text-center">Gogs requires MySQL or PostgreSQL, SQLite3 only available for official binary version</p>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">Database Type: </label>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue