| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF 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. |
| --> |
| <div class="modal" ng-controller="SaveModelCtrl"> |
| <div class="modal-dialog"> |
| <div class="modal-content"> |
| <div class="modal-header"> |
| <h2>{{'MODEL.SAVE.TITLE'| translate}}</h2> |
| </div> |
| <div class="modal-body"> |
| |
| <div class="form-group"> |
| <label for="nameField">{{'MODEL.NAME'| translate}}</label> |
| <input type="text" |
| ng-disabled="status.loading" |
| id="nameField" |
| class="form-control" |
| ng-model="saveDialog.name" |
| ui-keypress="{13:'save()'}" |
| auto-focus readonly/> |
| </div> |
| <div class="form-group"> |
| <label for="docTextArea">{{'MODEL.DESCRIPTION'| translate}}</label> |
| <textarea id="docTextArea" ng-disabled="status.loading" class="form-control" |
| ng-model="saveDialog.description" readonly></textarea> |
| </div> |
| </div> |
| <div class="modal-footer"> |
| |
| <div class="pull-right"> |
| <button type="button" class="btn" ng-click="close()" ng-disabled="status.loading" translate>ACTION.CANCEL</button> |
| <button class="btn btn-primary" ng-click="saveAndClose()" ng-disabled="status.loading" ng-show="!error" translate>ACTION.SAVE-AND-CLOSE</button> |
| </div> |
| |
| <div class="pull-right popup-error" ng-if="error && !error.isConflict"> |
| <span>{{'MODEL.SAVE.ERROR'| translate}}</span> |
| </div> |
| |
| <loading></loading> |
| |
| </div> |
| </div> |
| </div> |
| </div> |