gonito/templates/edit-indicator.hamlet
Filip Gralinski e1b1ff53f1 Add indicators to the database, make it possible to edit them in the dashboard.
The dashboard itself (in terms of graphs) is not part of this commit.
2018-09-14 15:50:44 +02:00

22 lines
698 B
Plaintext

<h2>#{prettyIndicatorEntry indicatorEntry}
<form method=post action=@{EditIndicatorR indicatorId}#form enctype=#{formEnctype}>
^{formWidget}
<button .btn .btn-primary type="submit">
_{MsgSubmit} <span class="glyphicon glyphicon-upload"></span>
<h4>Targets
^{Table.buildBootstrap (targetTable mUser) (indicatorEntryTargets indicatorEntry)}
$if (checkIfAdmin mUser)
<h4>Add a new target
<form method=post action=@{AddTargetR indicatorId}#form enctype=#{addTargetFormEnctype}>
^{addTargetformWidget}
<button .btn .btn-primary type="submit">
_{MsgSubmit} <span class="glyphicon glyphicon-upload"></span>
<hr>
<p><a href=@{DashboardR}>Back to Dashboard</p>