save-model.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <div class="modal" ng-controller="SaveModelCtrl">
  2. <div class="modal-dialog">
  3. <div class="modal-content">
  4. <div class="modal-header">
  5. <h2>{{'MODEL.SAVE.TITLE' | translate}}</h2>
  6. </div>
  7. <div class="modal-body">
  8. <div class="form-group">
  9. <label for="nameField">{{'MODEL.NAME' | translate}}</label>
  10. <input type="text"
  11. ng-disabled="status.loading"
  12. id="nameField"
  13. class="form-control"
  14. ng-model="saveDialog.name"
  15. ui-keypress="{13:'save()'}"
  16. auto-focus />
  17. </div>
  18. <div class="form-group">
  19. <label for="docTextArea">{{'MODEL.DESCRIPTION' | translate}}</label>
  20. <textarea id="docTextArea" ng-disabled="status.loading" class="form-control" ng-model="saveDialog.description"></textarea>
  21. </div>
  22. </div>
  23. <div class="modal-footer">
  24. <div class="pull-right">
  25. <button type="button" class="btn" ng-click="close()" ng-disabled="status.loading" translate>ACTION.CANCEL</button>
  26. <button class="btn btn-primary" ng-click="saveAndClose()" ng-disabled="status.loading" ng-show="!error" translate>ACTION.SAVE-AND-CLOSE</button>
  27. <button class="btn btn-primary" ng-click="save()" ng-disabled="status.loading" ng-show="!error" translate>ACTION.SAVE</button>
  28. </div>
  29. <div class="pull-right popup-error" ng-if="error && !error.isConflict">
  30. <span>{{'MODEL.SAVE.ERROR' | translate}}</span>
  31. </div>
  32. <loading></loading>
  33. </div>
  34. </div>
  35. </div>