forked from snaptec/openWB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wizzardstart.html
133 lines (120 loc) · 5.2 KB
/
wizzardstart.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html>
<html lang="de">
<head>
<base href="/openWB/web/">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>openWB Einstellungen</title>
<meta name="description" content="Control your charge" />
<meta name="author" content="Michael Ortenstein" />
<!-- Favicons (created with http://realfavicongenerator.net/)-->
<link rel="apple-touch-icon" sizes="57x57" href="img/favicons/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="img/favicons/apple-touch-icon-60x60.png">
<link rel="icon" type="image/png" href="img/favicons/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="img/favicons/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="manifest.json">
<link rel="shortcut icon" href="img/favicons/favicon.ico">
<meta name="msapplication-TileColor" content="#00a8ff">
<meta name="msapplication-config" content="img/favicons/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<!-- Bootstrap -->
<link rel="stylesheet" type="text/css" href="css/bootstrap-4.4.1/bootstrap.min.css">
<!-- Normalize -->
<link rel="stylesheet" type="text/css" href="css/normalize-8.0.1.css">
<link rel="stylesheet" type="text/css" href="fonts/font-awesome-5.8.2/css/all.css">
<!-- include settings-style -->
<link rel="stylesheet" type="text/css" href="css/settings_style.css">
<!-- important scripts to be loaded -->
<script src="js/jquery-3.6.0.min.js"></script>
<script src="js/bootstrap-4.4.1/bootstrap.bundle.min.js"></script>
<!-- load helper functions -->
<script src = "settings/helperFunctions.js?ver=20210329" ></script>
</head>
<body>
<div role="main" class="container" style="margin-top:20px">
<h1>openWB</h1>
<div class="card border-secondary">
<div class="card-header bg-secondary">
<i class="fas fa-magic"></i> Einrichtungs-Assistent
</div>
<div class="card-body p-0">
<div class="row mx-0">
<div class="col-md-4 py-3">
<img class="openwb-logo" style="max-width: 100%;" src="img/favicons/preloader-image.png" alt="openWB">
</div>
<div class="col py-3 border-left bg-light">
<h4>Vielen Dank, dass Sie sich für openWB entschieden haben.</h4>
Dieser Assistent führt Sie durch die Konfiguration der einzelnen Module:
<ul>
<li><span class="text-danger">EVU</span> - Messung des Strombezugs und der Einspeisung, sofern eine Photovoltaik-Anlage installiert ist</li>
<li><span class="text-success">PV</span> - Messung der Leistung der Photovoltaik-Anlage</li>
<li><span class="text-warning">BAT</span> - Anbindung eines Batteriespeichers, um Daten zum Ladestand und (Ent-) Ladeleistung zu erhalten</li>
</ul>
</div>
</div>
</div>
<div class="card-footer">
<div class="row justify-content-center">
<div class="col-3 text-center">
<form action="settings/saveconfig.php" method="POST">
<input type="hidden" name="wizzarddone" value="1">
<button class="btn btn-success" type="submit">Weiter...</button>
</form>
</div>
<div class="col-1">
</div>
<div class="col-3 text-center">
<button class="btn btn-danger" id="abortWizzardBtn" type="button">Assistent beenden</button>
</div>
</div>
</div>
</div>
</div>
<!-- modal abort confirmation window -->
<div class="modal fade" id="abortWizzardConfirmationModal" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<!-- modal header -->
<div class="modal-header bg-danger">
<h4 class="modal-title text-light">Achtung</h4>
</div>
<!-- modal body -->
<div class="modal-body text-center">
<p>
Wollen Sie den Assistenten wirklich beenden?<br>
Die Einrichtung eines <span class="text-danger">EVU</span>-Moduls ist für den Betrieb von openWB zwingend erforderlich.
<span class="text-success">PV</span>- und <span class="text-warning">BAT</span>-Module sind optional, ermöglichen aber weitere Einstellungen der Regelung.
</p>
</div>
<!-- modal footer -->
<div class="modal-footer d-flex justify-content-center">
<button type="button" class="btn btn-success" data-dismiss="modal">Zurück zum Assistenten</button>
<button type="button" class="btn btn-danger" data-dismiss="modal" id="abortWizzardConfirmationBtn">Assistent beenden</button>
</div>
</div>
</div>
</div>
<!-- hidden form to save wizzard done to config -->
<form id="wizzarddone" action="settings/saveconfig.php" method="POST">
<input type="hidden" name="wizzarddone" value="100">
</form>
<footer class="footer bg-dark text-light font-small">
<div class="container text-center">
<small>Sie befinden sich hier: Einrichtungs-Assistent</small>
</div>
</footer>
<script>
$(document).ready(function(){
$('#abortWizzardBtn').on("click",function() {
$('#abortWizzardConfirmationModal').modal();
});
// shown in confirmation modal
$('#abortWizzardConfirmationBtn').on("click",function() {
$('#wizzarddone').submit();
});
});
</script>
</body>
</html>