1 <md-dialog class="project-dialog" aria-label="New dialog">
2 <form name="openForm" class="md-inline-form" novalidate>
3 <md-toolbar class="md-accent md-hue-2">
5 class="md-toolbar-tools"
7 layout-align="space-between center"
10 ><span translate="CALLYSQUARE.OPEN_PROJECT"></span
12 <md-button class="md-icon-button" ng-click="vm.closeDialog()">
14 md-font-icon="icon-close"
15 aria-label="Close dialog"
20 <md-dialog-content ms-scroll>
21 <div class="error-list">
23 ng-repeat="error in vm.errors"
26 layout-align="space-between center"
29 <span class="message">{{error.message}}</span>
30 <span class="type">({{error.type}})</span>
32 <md-button class="md-icon-button">
34 md-font-icon="icon-alert-box"
35 aria-label="alert error"
41 <md-input-container class="md-block">
42 <label translate="CALLYSQUARE.PROJECT">Project</label>
43 <md-select name="id" ng-model="vm.id" required>
44 <md-option value="{{p.id}}" ng-repeat="p in vm.projects"
45 >{{p.name}}</md-option
49 ng-messages="openForm.id.$error"
50 ng-show="openForm.id.$touched"
53 <div ng-message="required">
54 <span translate="CALLYSQUARE.ERRORS.PROJECT_REQUIRED"
55 >Name field is required</span
60 <md-input-container class="md-block">
62 ng-model="vm.newWindow"
63 aria-label="{{'CALLYSQUARE.OPEN_NEW_WINDOW' | translate }}"
64 ><span translate="CALLYSQUARE.OPEN_NEW_WINDOW"></span
67 <div class="error-list">
69 ng-repeat="error in vm.errors"
72 layout-align="space-between center"
75 <span class="message">{{error.message}}</span>
76 <span class="type">({{error.type}})</span>
78 <md-button class="md-icon-button">
80 md-font-icon="icon-alert-box"
81 aria-label="alert error"
89 <md-dialog-actions layout="row" layout-align="space-between center">
90 <div layout="row" layout-align="start center">
93 ng-click="vm.closeDialog(true)"
94 class="send-button md-accent md-raised"
95 ng-disabled="openForm.$invalid"
97 translate="CALLYSQUARE.OPEN_PROJECT"
98 translate-attr-aria-label="CALLYSQUARE.OPEN"