This commit is contained in:
Marco Audiffredi 2025-10-14 11:57:57 +02:00
commit 3b66fedd2d

View File

@ -0,0 +1,61 @@
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Dati salvati</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
padding-top: 50px;
background-color: #f9f9f9;
}
h2 {
color: #28a745;
}
p {
margin-top: 15px;
color: #333;
}
.btn {
margin-top: 25px;
background-color: #007bff;
color: white;
padding: 10px 18px;
text-decoration: none;
border-radius: 4px;
display: inline-block;
font-size: 15px;
cursor: pointer;
}
.btn:hover {
background-color: #0056b3;
}
</style>
</head>
<body>
<h2>Dati salvati correttamente ✅</h2>
<p>I dati non saranno visibili nell'app finché non effettuerai il logout e login.</p>
<button class="btn" id="okButton">OK</button>
<script>
document.getElementById('okButton').addEventListener('click', function () {
// 🔸 Reindirizza la finestra principale alla Index
if (window.opener && !window.opener.closed) {
window.opener.location.href = '@Url.Action("Index", "DatiAzienda")';
}
// 🔸 Chiude la finestra popup
window.close();
});
</script>
</body>
</html>