Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1522)

Unified Diff: dashboard/dashboard/templates/create_health_report.html

Issue 2622303003: Allows a user to create_health_reports. (Closed)
Patch Set: removing changes from other CL Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: dashboard/dashboard/templates/create_health_report.html
diff --git a/dashboard/dashboard/templates/create_health_report.html b/dashboard/dashboard/templates/create_health_report.html
new file mode 100644
index 0000000000000000000000000000000000000000..4bbab8102cac8277553ffc3176a697ec97474367
--- /dev/null
+++ b/dashboard/dashboard/templates/create_health_report.html
@@ -0,0 +1,73 @@
+<!DOCTYPE html>
+<!--
+Copyright 2017 The Chromium Authors. All rights reserved.
+Use of this source code is governed by a BSD-style license that can be
+found in the LICENSE file.
+-->
+<html>
+<head>
+ <link type="text/css" rel="stylesheet" href="/dashboard/static/base.css">
+ <link rel="import" href="/dashboard/elements/nav-bar.html">
+ <title>Create A Health Report</title>
+ <script>
+ 'use strict';
+ // The user's XSRF token string, required to submit the form.
+ var XSRF_TOKEN = '{{xsrf_token}}';
+
+ /**
+ * Initializes the event listeners for events on the form.
+ */
+
+ window.addEventListener('DOMContentLoaded', initialize, true);
+ </script>
+</head>
+<body>
+ <nav-bar></nav-bar>
+ <h1>Create a Health Report</h1>
+ {{msg}}
+ <form method="POST">
+ {{xsrf_input | safe}}
+ <table>
+ <tr>
+ <td>Internal-only:</td>
+ <td>
+ <label><input type="radio" name="internal-only" id="internal-only-yes"
+ value="true" checked>yes</label>
+ <label><input type="radio" name="internal-only" id="internal-only-no"
+ value="false">no</label>
+ </td>
+ </tr>
+ </table>
+ <b>User-friendly name:</b><br>
+ <input type="text" name="name" id="name" size=75><br><br>
+
+ <b>Master/bots:</b><br>
+ Enter each master/bot pair, separated by line. For example:<br>
+ ChromiumPerf/Nexus5<br>
+ ClankInternal/mako<br>
+ ...<br>
+ <textarea name="masterBot" id="masterBot-textarea"
+ rows="15" cols="72"></textarea><br><br>
+
+ <b>Tests:</b><br>
+ Enter each test path in full, separated by line. For example: <br>
+ memory.top_10_mobile/memory:chrome:all_processes:reported_by_os:system_memory:ashmem:proportional_resident_size_avg <br>
+ memory.top_10_mobile/memory:chrome:all_processes:reported_by_os:system_memory:java_heap:proportional_resident_size_avg<br>
+ ...<br>
+ <textarea name="tests" id="tests-textarea"
+ rows="15" cols="72"></textarea><br><br>
+
+ <b>Test layout:</b><br>
+ Enter a serialized dict to specify the layout. For example: <br>
+ { <br>
+ &nbsp;&nbsp;"system_health.memory_mobile/foreground/ashmem": ["Foreground", "Ashmem"]<br>
+ &nbsp;&nbsp;...<br>
+ }<br>
+ <textarea name="tableLayout" id="table-layout-textarea"
+ rows="15" cols="72"></textarea><br><br>
+
+ <button type="submit">Submit</button><br><br>
+ </form>
+
+</body>
+</html>
« dashboard/dashboard/models/table_config.py ('K') | « dashboard/dashboard/models/table_config.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698