Revize eaf8ace4
Přidáno uživatelem Matěj Zeman před téměř 3 roky(ů)
server/templates/devices/devices.html | ||
---|---|---|
31 | 31 |
<TH>Product ID</TH> |
32 | 32 |
<TH>Serial Number</TH> |
33 | 33 |
<TH>Licenses</TH> |
34 |
<TH>Status</TH> |
|
34 | 35 |
</TR> |
35 |
{% for device in devs %}
|
|
36 |
{% for i in range(devs) %}
|
|
36 | 37 |
<TR> |
37 |
<TD class="ID">{{device.id}}</TD>
|
|
38 |
<TD class="Vendor ID">{{device.vendor_id}}</TD> |
|
39 |
<TD class="Product ID">{{device.product_id}}</TD> |
|
40 |
<TD class="Serial Number">{{device.serial_number}}</TD> |
|
38 |
<TD class="ID"><a href="/api/v1/device-license/{{devices[i].id}}">{{devices[i].id}}</a></TD>
|
|
39 |
<TD class="Vendor ID">{{devices[i].vendor_id}}</TD>
|
|
40 |
<TD class="Product ID">{{devices[i].product_id}}</TD>
|
|
41 |
<TD class="Serial Number">{{devices[i].serial_number}}</TD>
|
|
41 | 42 |
<TD class="License"> |
42 |
{% for lic in device.licenses %} |
|
43 |
{% for lic in devices[i].licenses %}
|
|
43 | 44 |
{{lic.licenses.name}}<BR> |
44 | 45 |
{% endfor %} |
45 | 46 |
</TD> |
47 |
<TD class="Status">{{statuses[i]}}</TD> |
|
46 | 48 |
</TR> |
47 | 49 |
{% endfor %} |
50 |
<TR> |
|
51 |
<TD class="ID"></TD> |
|
52 |
<TD class="Vendor ID"></TD> |
|
53 |
<TD class="Product ID"></TD> |
|
54 |
<TD class="Serial Number"></TD> |
|
55 |
<TD class="License"> |
|
56 |
<form action="/api/v1/license-create" method="get"> |
|
57 |
<input type="submit" value="Add"> |
|
58 |
</form> |
|
59 |
</TD> |
|
60 |
</TR> |
|
48 | 61 |
</table> |
49 | 62 |
</body> |
50 | 63 |
</html> |
Také k dispozici: Unified diff
Added functionality for creating licenses and teams and connecting them to devices a PCs.