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