pp
This commit is contained in:
commit
3b66fedd2d
61
Views/DatiAzienda/Dialog.cshtml
Normal file
61
Views/DatiAzienda/Dialog.cshtml
Normal 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>
|
||||||
Loading…
Reference in New Issue
Block a user