{{!
  Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.

  WSO2 Inc. licenses this file to you under the Apache License,
  Version 2.0 (the "License"); you may not use this file except
  in compliance with the License.
  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, either express or implied. See the License for the
  specific language governing permissions and limitations
  under the License.
}}
<table class="table table-responsive table-striped" id="members">
    <tbody>
    {{#if device.viewModel.vendor}}
        <tr role="row" class="even">
            <td class="sorting_1" style="padding:10px 15px; width: 1%;;">Device</td>
            <td style="padding:10px 15px;">{{device.viewModel.vendor}} {{device.properties.model}}</td>
        </tr>
    {{/if}}
    {{#if device.viewModel.model}}
        <tr role="row" class="odd">
            <td class="sorting_1" style="padding:10px 15px;">Model</td>
            <td style="padding:10px 15px;">{{device.viewModel.model}}</td>
        </tr>
    {{/if}}
    {{#if device.viewModel.imei}}
        <tr role="row" class="even">
            <td class="sorting_1" style="padding:10px 15px;">IMEI</td>
            <td style="padding:10px 15px;">{{device.viewModel.imei}}</td>
        </tr>
    {{/if}}
    {{#if device.viewModel.udid}}
        <tr role="row" class="even">
            <td class="sorting_1" style="padding:10px 15px;">UDID</td>
            <td style="padding:10px 15px;">{{device.viewModel.udid}}</td>
        </tr>
    {{/if}}
    {{#if device.viewModel.phoneNumber}}
        <tr role="row" class="even">
            <td class="sorting_1" style="padding:10px 15px;">Phone Number</td>
            <td style="padding:10px 15px;">{{device.viewModel.phoneNumber}}</td>
        </tr>
    {{/if}}
    <tr role="row" class="even">
        <td class="sorting_1" style="padding:10px 15px;">Status</td>
        <td style="padding:10px 15px;">
            {{#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>
    </tbody>
</table>
