<div class="modal-header" ng-show="title">
  <h3 id="modal-title">{{ title | translate }}</h3>
</div>
<div class="modal-body" id="modal-body">
  <label>{{ 'Type' | translate }}:</label>
  <input type="text" ng-model="type" />
</div>
<div class="modal-footer">
  <button
    title="{{ 'Cancel' | translate }}"
    type="button"
    class="btn btn-default"
    ng-click="dismiss()"
  >
    {{ 'Cancel' | translate }}
  </button>
  <button
    title="{{ 'Save' | translate }}"
    class="btn btn-primary"
    ng-click="$close(type)"
    type="button"
  >
    {{ 'Save' | translate }}
  </button>
</div>
