1 <md-dialog aria-label="Save to collection" ng-cloak>
2 <form name="saveReqForm">
4 <div class="md-toolbar-tools">
5 <h2>{{( dialog.duplicate ? 'YANGMAN_REQS_DUPLICATE' : 'YANGMAN_REQS_SAVE_TO_COL')| translate}}</h2>
9 <md-dialog-content style="width: 400px;">
10 <div class="md-dialog-content" layout="column">
12 md-selected-item="dialog.selectedItem"
13 md-search-text="dialog.collectionName"
14 md-items="item in dialog.getColAutocomplete()"
15 md-floating-label="{{'YANGMAN_CREATING_COLLECTION'|translate}}"
19 <span md-highlight-text="dialog.collectionName" md-highlight-flags="^i">{{item}}</span>
22 <span ng-if="dialog.collectionName.length">
23 {{'YANGMAN_COLLECTION_NEW_COL_'| translate}} "{{dialog.collectionName}}" {{'YANGMAN_COLLECTION_WILL_BE_CREATED'| translate}}.
25 <span ng-if="dialog.collectionName.length === 0">
26 {{'YANGMAN_NO_COLLECTIONS'| translate}}
30 <div ng-messages="saveReqForm.collectionName.$error" multiple md-auto-hide="false">
31 <div ng-message="required">
32 {{'YANGMAN_COLLECTION_NAME_REQUIRED'| translate}}
37 <md-dialog-actions layout="row">
39 <md-button ng-click="dialog.cancel()">
40 {{'YANGMAN_CANCEL'| translate}}
42 <md-button ng-click="dialog.save()" ng-disabled="dialog.collectionName.length === 0">
43 {{'YANGMAN_SAVE'| translate}}