Separate setup from start/stop service
Split configuration and start/stop of the service in
2 different pages
Change-Id: Ic2ea20c88cb6aaca6d4e1e6727edea78570ae35c
diff --git a/src/main/resources/static/analytics-dashboard-service.html b/src/main/resources/static/analytics-dashboard-service.html
new file mode 100644
index 0000000..03b8b8d
--- /dev/null
+++ b/src/main/resources/static/analytics-dashboard-service.html
@@ -0,0 +1,41 @@
+<!DOCTYPE html>
+<html dir="ltr" lang="en-US">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>GitHub plugin for Gerrit Code Review - Analytics Service control panel</title>
+
+ <link rel="stylesheet" href="css/analyticswizard.css">
+ <link rel="stylesheet" href="css/bootstrap.min.css">
+ <script type='text/javascript' src='js/jquery-3.3.1.min.js'></script>
+ <script type='text/javascript' src="js/bootstrap.min.js"></script>
+ <script type='text/javascript' src='js/analyticswizard.js'></script>
+</head>
+<body>
+<!--div.container start -->
+<div class="container">
+ <div class="page-header">
+ <h1>Dashboard analytics wizard</h1>
+ </div>
+ <div class="center">
+ Project name: <input id="input-project-name" type="text">
+ </div>
+ <input type="button" class="btn btn-primary" value="Start dashboard" onClick="dashboardService('up')"/>
+ <input type="button" class="btn btn-primary" value="Stop dashboard" onClick="dashboardService('down')"/>
+ <br><br>
+ <div id="up-ok-alert" class="alert alert-success alert-trim" role="alert" style="display: none;">
+ Dashboard started successfully.
+ </div>
+ <div id="down-ok-alert" class="alert alert-success alert-trim" role="alert" style="display: none;">
+ Dashboard stopped successfully.
+ </div>
+ <div id="up-error-alert" class="alert-danger alert-trim" role="alert" style="display: none;">
+ Error starting the dashboard.
+ </div>
+ <div id="down-error-alert" class="alert-danger alert-trim" role="alert" style="display: none;">
+ Error stopping the dashboard.
+ </div>
+</div>
+
+<!--div.container end -->
+</body>
+</html>
\ No newline at end of file
diff --git a/src/main/resources/static/analytics-dashboard.html b/src/main/resources/static/analytics-dashboard.html
index dd4b718..9b5024e 100644
--- a/src/main/resources/static/analytics-dashboard.html
+++ b/src/main/resources/static/analytics-dashboard.html
@@ -33,21 +33,6 @@
Something went wrong while creating Dashboard configuration.
</div>
<br><br>
- <input type="button" class="btn btn-primary" value="Start dashboard" onClick="dashboardService('up')"/>
- <input type="button" class="btn btn-primary" value="Stop dashboard" onClick="dashboardService('down')"/>
- <br><br>
- <div id="up-ok-alert" class="alert alert-success alert-trim" role="alert" style="display: none;">
- Dashboard started successfully.
- </div>
- <div id="down-ok-alert" class="alert alert-success alert-trim" role="alert" style="display: none;">
- Dashboard stopped successfully.
- </div>
- <div id="up-error-alert" class="alert-danger alert-trim" role="alert" style="display: none;">
- Error starting the dashboard.
- </div>
- <div id="down-error-alert" class="alert-danger alert-trim" role="alert" style="display: none;">
- Error stopping the dashboard.
- </div>
</div>
<!--div.container end -->