summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base/head.tmpl2
-rw-r--r--templates/install.tmpl24
2 files changed, 26 insertions, 0 deletions
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl
index d529e6bfda..dd8e68761b 100644
--- a/templates/base/head.tmpl
+++ b/templates/base/head.tmpl
@@ -51,6 +51,8 @@
copy_error: '{{.i18n.Tr "copy_error"}}',
}
};
+ {{/* in case some pages don't render the pageData, we make sure it is an object to prevent null access */}}
+ window.config.pageData = window.config.pageData || {};
</script>
<link rel="icon" href="{{AssetUrlPrefix}}/img/logo.svg" type="image/svg+xml">
<link rel="alternate icon" href="{{AssetUrlPrefix}}/img/favicon.png" type="image/png">
diff --git a/templates/install.tmpl b/templates/install.tmpl
index a004e19399..1fa0929afa 100644
--- a/templates/install.tmpl
+++ b/templates/install.tmpl
@@ -91,6 +91,30 @@
</div>
</div>
+ {{if .Err_DbInstalledBefore}}
+ <div>
+ <p class="reinstall-message">{{.i18n.Tr "install.reinstall_confirm_message"}}</p>
+ <div class="reinstall-confirm">
+ <div class="ui checkbox">
+ <label>{{.i18n.Tr "install.reinstall_confirm_check_1"}}</label>
+ <input name="reinstall_confirm_first" type="checkbox">
+ </div>
+ </div>
+ <div class="reinstall-confirm">
+ <div class="ui checkbox">
+ <label>{{.i18n.Tr "install.reinstall_confirm_check_2"}}</label>
+ <input name="reinstall_confirm_second" type="checkbox">
+ </div>
+ </div>
+ <div class="reinstall-confirm">
+ <div class="ui checkbox">
+ <label>{{.i18n.Tr "install.reinstall_confirm_check_3"}}</label>
+ <input name="reinstall_confirm_third" type="checkbox">
+ </div>
+ </div>
+ </div>
+ {{end}}
+
<!-- General Settings -->
<h4 class="ui dividing header">{{.i18n.Tr "install.general_title"}}</h4>
<div class="inline required field {{if .Err_AppName}}error{{end}}">