|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
{{unit "cdmf.unit.device.type.android.leaflet"}}
|
|
|
|
|
{{unit "cdmf.unit.lib.editable"}}
|
|
|
|
|
{{unit "cdmf.unit.lib.qrcode"}}
|
|
|
|
|
{{unit "cdmf.unit.device.type.qr-modal"}}
|
|
|
|
|
|
|
|
|
@ -51,14 +52,41 @@
|
|
|
|
|
<tr role="row" class="even">
|
|
|
|
|
<td class="sorting_1" style="padding:10px 15px; width: 15%;">Status</td>
|
|
|
|
|
<td style="padding:10px 15px;">
|
|
|
|
|
{{#equal device.status "ACTIVE"}}<span><i
|
|
|
|
|
class="fw fw-success icon-success"></i>Active</span>{{/equal}}
|
|
|
|
|
{{#equal device.status "INACTIVE"}}<span><i
|
|
|
|
|
class="fw fw-warning icon-warning"></i>Inactive</span>{{/equal}}
|
|
|
|
|
{{#equal device.status "BLOCKED"}}<span><i
|
|
|
|
|
class="fw fw-remove icon-danger"></i>Blocked</span>{{/equal}}
|
|
|
|
|
{{#equal device.status "REMOVED"}}<span><i
|
|
|
|
|
class="fw fw-delete icon-danger"></i>Removed</span>{{/equal}}
|
|
|
|
|
{{#if permissions.CHANGE_DEVICE_STATUS}}
|
|
|
|
|
{{#equal device.status "ACTIVE"}}<span><i id="statusIcon"
|
|
|
|
|
class="fw fw-success icon-success"></i>
|
|
|
|
|
<a href="#" id="status" data-type="select" data-pk="1"
|
|
|
|
|
data-title="Select status"
|
|
|
|
|
selectedValue="Active"></a>
|
|
|
|
|
</span>{{/equal}}
|
|
|
|
|
{{#equal device.status "INACTIVE"}}<span><i id="statusIcon"
|
|
|
|
|
class="fw fw-warning icon-warning"></i>
|
|
|
|
|
<a href="#" id="status" data-type="select" data-pk="1"
|
|
|
|
|
data-title="Select status"
|
|
|
|
|
selectedValue="Inactive"></a>
|
|
|
|
|
</span>{{/equal}}
|
|
|
|
|
{{#equal device.status "BLOCKED"}}<span><i id="statusIcon"
|
|
|
|
|
class="fw fw-remove icon-danger"></i>
|
|
|
|
|
<a href="#" id="status" data-type="select" data-pk="1"
|
|
|
|
|
data-title="Select status"
|
|
|
|
|
selectedValue="Blocked"></a>
|
|
|
|
|
</span>{{/equal}}
|
|
|
|
|
{{#equal device.status "REMOVED"}}<span><i id="statusIcon"
|
|
|
|
|
class="fw fw-delete icon-danger"></i>
|
|
|
|
|
<a href="#" id="status" data-type="select" data-pk="1"
|
|
|
|
|
data-title="Select status"
|
|
|
|
|
selectedValue="Removed"></a>
|
|
|
|
|
</span>{{/equal}}
|
|
|
|
|
{{else}}
|
|
|
|
|
{{#equal device.status "ACTIVE"}}<span><i
|
|
|
|
|
class="fw fw-success icon-success"></i> Active</span>{{/equal}}
|
|
|
|
|
{{#equal device.status "INACTIVE"}}<span><i
|
|
|
|
|
class="fw fw-warning icon-warning"></i> Inactive</span>{{/equal}}
|
|
|
|
|
{{#equal device.status "BLOCKED"}}<span><i
|
|
|
|
|
class="fw fw-remove icon-danger"></i> Blocked</span>{{/equal}}
|
|
|
|
|
{{#equal device.status "REMOVED"}}<span><i
|
|
|
|
|
class="fw fw-delete icon-danger"></i> Removed</span>{{/equal}}
|
|
|
|
|
{{/if}}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{{/if}}
|
|
|
|
|