Create new file
Browse files- templates/simple_page.html +31 -0
templates/simple_page.html
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% import 'macro' as macro %}
|
| 2 |
+
<!DOCTYPE html>
|
| 3 |
+
<html>
|
| 4 |
+
<head>
|
| 5 |
+
<meta charset="UTF-8">
|
| 6 |
+
<title>{{ chart.page_title }}</title>
|
| 7 |
+
{{ macro.render_chart_dependencies(chart) }}
|
| 8 |
+
{{ macro.render_chart_css(chart) }}
|
| 9 |
+
</head>
|
| 10 |
+
<body>
|
| 11 |
+
<style>.box { {{ chart.layout }} }; </style>
|
| 12 |
+
{% if chart.download_button %}
|
| 13 |
+
<button onclick="downloadCfg()">Save Config</button>
|
| 14 |
+
{% endif %}
|
| 15 |
+
<div class="box">
|
| 16 |
+
{% for c in chart %}
|
| 17 |
+
{% if c._component_type in ("table", "image") %}
|
| 18 |
+
{{ macro.gen_components_content(c) }}
|
| 19 |
+
{% else %}
|
| 20 |
+
{{ macro.render_chart_content(c) }}
|
| 21 |
+
{% endif %}
|
| 22 |
+
{% for _ in range(chart.page_interval) %}<br/>{% endfor %}
|
| 23 |
+
{% endfor %}
|
| 24 |
+
</div>
|
| 25 |
+
<script>
|
| 26 |
+
{% for js in chart.js_functions.items %}
|
| 27 |
+
{{ js }}
|
| 28 |
+
{% endfor %}
|
| 29 |
+
</script>
|
| 30 |
+
</body>
|
| 31 |
+
</html>
|