2018-09-14 15:44:20 +02:00
|
|
|
<h1>Dashboard
|
|
|
|
|
2018-09-21 17:55:00 +02:00
|
|
|
$forall indicatorEntry <- indicatorEntries
|
|
|
|
<div style="height:800px" id="indicator-chart-#{toPathPiece $ entityKey $ indicatorEntryIndicator indicatorEntry}">
|
|
|
|
|
|
|
|
<script src="/static/js/d3.min.js" charset="utf-8"></script>
|
|
|
|
<script src="/static/js/c3.min.js"></script>
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
2018-09-14 15:44:20 +02:00
|
|
|
^{Table.buildBootstrap (indicatorTable mUser) indicatorEntries}
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
$if (checkIfAdmin mUser)
|
|
|
|
<h2>Create a new target
|
|
|
|
|
|
|
|
<form method=post action=@{DashboardR}#form enctype=#{formEnctype}>
|
|
|
|
^{formWidget}
|
|
|
|
<button .btn .btn-primary type="submit">
|
|
|
|
_{MsgSubmit} <span class="glyphicon glyphicon-upload"></span>
|