genofire/hs_monolith
genofire
/
hs_monolith
Archived
1
0
Fork 0

[Task]: Minor changes to the admin frontend

This commit is contained in:
mlabusch 2017-05-10 18:23:29 +02:00
parent 0e068f1c4c
commit 8853dc25f1
3 changed files with 25 additions and 2 deletions

View File

@ -1,4 +1,4 @@
<!-- SVG to show the current stock with an traffic light food labeling system -->
<!-- SVG to show the current stock with a traffic light food labeling system -->
<!-- Used functions -->
<!-- process_radius ANZAHL MAXANZAHL RADIUS -->
<!-- procent ANZAHL MAXANZAHL -->

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -0,0 +1,10 @@
<!-- SVG to show the current freshness of goods with a traffic light food labeling system -->
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
<g class="arcs">
{{if gt .Count 4}}
<circle cx="50" cy="50" r="40" fill="#b02" stroke="#aaa" stroke-width="5"/>
{{else}}
<circle cx="50" cy="50" r="40" fill="#fff" stroke="#6a4" stroke-width="5"/>
{{end}}
</g>
</svg>

After

Width:  |  Height:  |  Size: 438 B

View File

@ -1,8 +1,21 @@
<h1>{{obj.title}} <img class="icon" src="/api/good/availablity/{{obj.id}}"/></h1>
<table class="ui table very basic">
<tr>
<td>Count</td>
<td>Time of Delevery</td>
<td>Status of Freshness</td>
<td>< /td>
</tr>
<tr>
<td>Count</td>
<td>{{list.length}}</td>
<td>#</td>
<td><img class="icon" src="/api/good/freshness"/></td>
<td><i class="trash icon"></i></td>
</tr>
</table>
<table class="ui table list" ng-if="list.length > 0">