mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 11:43:22 +02:00
This commit introduces a refactoring in various page templates to use a central, common 'head' section, stored under utilsHead.html. This head section contains common metadata, styles, and scripts. This change enhances code reusability and standardizes the head section across different pages for consistent user experience and ease of future potential changes. Also, some minimal adjustments were made in the navigation and link routing for more user-friendly URL paths. Lastly, the server's listening interface was updated to only listen on the localhost.
48 lines
1.3 KiB
HTML
48 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>GohCMS | Installation</title>
|
|
{{.Head}}
|
|
|
|
<style>
|
|
.form-container {
|
|
max-width: 24rem;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="d-flex min-vh-100 vw-100 justify-content-center align-items-center text-dark">
|
|
<div class="container">
|
|
<div class="d-flex flex-column gap-5 m-auto form-container">
|
|
<div>
|
|
<h1>GohCMS</h1>
|
|
<h2>Installation terminée !</h2>
|
|
</div>
|
|
<p>GohCMS est maintenant prêt à être utilisé.</p>
|
|
<button id="finalSetupFormButton" class="btn btn-primary" type="button">
|
|
<span class="finalSetupFormButtonLoading visually-hidden spinner-border spinner-border-sm"
|
|
role="status"></span>
|
|
<span class="finalSetupFormButtonDefault">Terminer</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
const button = document.querySelector("#finalSetupFormButton")
|
|
|
|
function setButtonLoading() {
|
|
button.classList.add("disabled")
|
|
button.querySelector(".finalSetupFormButtonDefault").classList.add("visually-hidden")
|
|
button.querySelector(".finalSetupFormButtonLoading").classList.remove("visually-hidden")
|
|
}
|
|
|
|
function onFinalSetupFormSubmit() {
|
|
setButtonLoading()
|
|
window.location.replace("/home")
|
|
}
|
|
|
|
button.addEventListener('click', onFinalSetupFormSubmit)
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|