forked from community/device-mgt-core
commit
48e67df534
@ -0,0 +1,42 @@
|
|||||||
|
<!-- all -->
|
||||||
|
<div class="wr-hidden-operation" data-operation="all">
|
||||||
|
<div class="panel panel-default">
|
||||||
|
<div id="all-body" class="panel-collapse panel-body" role="tabpanel">
|
||||||
|
<div id="error-msg" class="alert alert-danger hidden" role="alert">
|
||||||
|
<i class="icon fw fw-error"></i><span></span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<table class="table table-striped table-hover table-bordered display data-table" id="all-notifications">
|
||||||
|
<thead style="display: none;">
|
||||||
|
<tr class="sort-row">
|
||||||
|
<th>Description</th>
|
||||||
|
<th>Action</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{{#if notifications}}
|
||||||
|
{{#each notifications}}
|
||||||
|
<tr data-type="selectable" data-id="{{id}}">
|
||||||
|
<td data-display="{{description}}" data-grid-label="Description">{{description}}</td>
|
||||||
|
<td style="text-align: center;">
|
||||||
|
<a href="device/{{deviceType}}?id={{deviceIdentifier}}" data-click-event="remove-form">
|
||||||
|
<span class="fw-stack">
|
||||||
|
<i class="fw fw-circle-outline fw-stack-2x"></i>
|
||||||
|
<i class="fw fw-view fw-stack-1x"></i>
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{{/each}}
|
||||||
|
{{else}}
|
||||||
|
<div>
|
||||||
|
You do not have any notifications
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
<br class="c-both" />
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- /all -->
|
@ -0,0 +1,44 @@
|
|||||||
|
<!-- unread -->
|
||||||
|
<div class="wr-hidden-operation" data-operation="unread" style="display: block">
|
||||||
|
<div class="panel panel-default">
|
||||||
|
<div id="unread-body" class="panel-collapse panel-body" role="tabpanel">
|
||||||
|
<div id="error-msg" class="alert alert-danger hidden" role="alert">
|
||||||
|
<i class="icon fw fw-error"></i><span></span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<table class="table table-striped table-hover table-bordered display data-table" id="unread-notifications">
|
||||||
|
<thead style="display: none;">
|
||||||
|
<tr class="sort-row">
|
||||||
|
<th>Description</th>
|
||||||
|
<th>Action</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{{#if notifications}}
|
||||||
|
{{#each notifications}}
|
||||||
|
{{#equal "NEW" status }}
|
||||||
|
<tr data-type="selectable" data-id="{{id}}">
|
||||||
|
<td data-display="{{description}}" data-grid-label="Description">{{description}}</td>
|
||||||
|
<td style="text-align: center;">
|
||||||
|
<a href="device/{{deviceType}}?id={{deviceIdentifier}}" data-id="{{id}}" data-url="device/{{deviceType}}?id={{deviceIdentifier}}" class="new-notification" data-click-event="remove-form">
|
||||||
|
<span class="fw-stack">
|
||||||
|
<i class="fw fw-circle-outline fw-stack-2x"></i>
|
||||||
|
<i class="fw fw-view fw-stack-1x"></i>
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{{/equal}}
|
||||||
|
{{/each}}
|
||||||
|
{{else}}
|
||||||
|
<div>
|
||||||
|
You do not have any unread notifications
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
<br class="c-both" />
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- unread-->
|
@ -1,75 +0,0 @@
|
|||||||
<!-- unread -->
|
|
||||||
<div class="wr-hidden-operation" data-operation="unread" style="display: block">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div id="unread-body" class="panel-collapse panel-body" role="tabpanel">
|
|
||||||
<div id="error-msg" class="alert alert-danger hidden" role="alert">
|
|
||||||
<i class="icon fw fw-error"></i><span></span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<table class="table table-striped table-hover table-bordered display data-table" id="unread-notifications">
|
|
||||||
<thead style="display: none;">
|
|
||||||
<tr class="sort-row">
|
|
||||||
<th>Description</th>
|
|
||||||
<th>Action</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{{#each notifications}}
|
|
||||||
{{#equal "NEW" status }}
|
|
||||||
<tr data-type="selectable" data-id="{{id}}">
|
|
||||||
<td data-display="{{description}}" data-grid-label="Description">{{description}}</td>
|
|
||||||
<td style="text-align: center;">
|
|
||||||
<a href="device/{{deviceType}}?id={{deviceIdentifier}}" data-id="{{id}}" data-url="device/{{deviceType}}?id={{deviceIdentifier}}" class="new-notification" data-click-event="remove-form">
|
|
||||||
<span class="fw-stack">
|
|
||||||
<i class="fw fw-circle-outline fw-stack-2x"></i>
|
|
||||||
<i class="fw fw-view fw-stack-1x"></i>
|
|
||||||
</span>
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{{/equal}}
|
|
||||||
{{/each}}
|
|
||||||
<br class="c-both" />
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- unread-->
|
|
||||||
|
|
||||||
<!-- all -->
|
|
||||||
<div class="wr-hidden-operation" data-operation="all">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div id="all-body" class="panel-collapse panel-body" role="tabpanel">
|
|
||||||
<div id="error-msg" class="alert alert-danger hidden" role="alert">
|
|
||||||
<i class="icon fw fw-error"></i><span></span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<table class="table table-striped table-hover table-bordered display data-table" id="all-notifications">
|
|
||||||
<thead style="display: none;">
|
|
||||||
<tr class="sort-row">
|
|
||||||
<th>Description</th>
|
|
||||||
<th>Action</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{{#each notifications}}
|
|
||||||
<tr data-type="selectable" data-id="{{id}}">
|
|
||||||
<td data-display="{{description}}" data-grid-label="Description">{{description}}</td>
|
|
||||||
<td style="text-align: center;">
|
|
||||||
<a href="device/{{deviceType}}?id={{deviceIdentifier}}" data-click-event="remove-form">
|
|
||||||
<span class="fw-stack">
|
|
||||||
<i class="fw fw-circle-outline fw-stack-2x"></i>
|
|
||||||
<i class="fw fw-view fw-stack-1x"></i>
|
|
||||||
</span>
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{{/each}}
|
|
||||||
<br class="c-both" />
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- /all -->
|
|
@ -1,14 +1,27 @@
|
|||||||
{{#each notifications}}
|
{{#each notifications}}
|
||||||
<li class="message message-info" data-type="selectable" >
|
<li class="message message-info" data-type="selectable" >
|
||||||
|
<table>
|
||||||
|
<td>
|
||||||
<h4>
|
<h4>
|
||||||
<i class="icon fw fw-info"></i>
|
<i class="icon fw fw-info"></i>
|
||||||
<a href="{{../context}}/device/{{deviceType}}?id={{deviceIdentifier}}"
|
<a href="{{../context}}/device/{{deviceType}}?id={{deviceIdentifier}}"
|
||||||
data-id="{{id}}"
|
data-id="{{id}}"
|
||||||
data-url="device?type={{deviceType}}&id={{deviceIdentifier}}"
|
data-url="{{../context}}/device/{{deviceType}}?id={{deviceIdentifier}}"
|
||||||
class="new-notification" data-click-event="remove-form">
|
class="new-notification" data-click-event="remove-form">
|
||||||
{{deviceType}} : {{deviceName}}
|
{{deviceType}} : {{deviceName}}
|
||||||
</a>
|
</a>
|
||||||
</h4>
|
</h4>
|
||||||
<p>{{description}}</p>
|
<p>{{description}}</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<a class="new-notification" data-click-event="remove-notification">
|
||||||
|
<span class="fw-stack">
|
||||||
|
<i class="fw fw-circle-outline fw-stack-2x"></i>
|
||||||
|
<i class="fw fw-delete fw-stack-1x"></i>
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
</table>
|
||||||
</li>
|
</li>
|
||||||
{{/each}}
|
{{/each}}
|
Loading…
Reference in new issue