<div class="modal" tabindex="-1" role="dialog">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header" ng-show="title">
        <!-- <button type="button" class="close" ng-click="$hide()">&times;</button> -->
        <h4 class="modal-title">{{title}}</h4>
      </div>
      <div class="modal-body">
        <h4 class="text-muted text-center" ng-if="isLoading"> <i class="fa fa-spin fa-refresh"></i> Loading...</h4>
        <!-- <img class="" src="images/loading.gif" alt="" ng-if="isLoading"> -->
        <div class="" ng-if="!isLoading" > 

          <div ng-if="isSuccess">
            <table class="table no-border-top room-info">
              <tbody>
                 <tr>
                  <th scope="row">IP Address</th>
                  <td>{{searchedDevice.ip}}</td>       
                </tr>
                <tr>
                  <th scope="row">Hardware Version</th>
                  <td>{{searchedDevice.hw_ver}}</td>       
                </tr>
                <tr>
                  <th scope="row">Software Version</th>
                  <td>{{searchedDevice.sw_ver}}</td>
                </tr>
              </tbody>
            </table>
          </div>

          <div  ng-if="isError">
            <h4 class="text-danger">Oops! Looks like something went wrong!</h4>
          </div>
        </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary" ng-disabled="isLoading" ng-click="$hide()">OK</button>
        <!-- <button type="button" class="btn btn-danger" ng-click="$hide()">Cancel</button> -->
      </div>
    </div>
  </div>
</div>
