<div class="modal" tabindex="-1" role="dialog">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header" >
        <button type="button" class="close" ng-click="$hide()">&times;</button>
        <h4 class="modal-title">Erase and reassign</h4>
      </div>
      <div class="modal-body">
        <p>This device is already assigned. Do you want to erase this information and assign it again?</p>
      </div>
      <div class="modal-footer">
        <button class="btn btn-primary" ng-click="reassign(); $hide()"> Yes</button>
        <button class="btn btn-danger" ng-click="$hide()"> Cancel</button>
      </div>
    </div>
  </div>
</div>
