1 <md-dialog class="chatWebsite-dialog" aria-label="New ChatWebsite">
2 <form name="chatWebsiteFormApp" 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"
9 <span class="title">{{ vm.title | translate }}</span>
10 <md-button class="md-icon-button" ng-click="vm.closeDialog()">
12 md-font-icon="icon-close"
13 aria-label="Close dialog"
19 <md-dialog-content ms-scroll>
20 <div class="error-list">
22 ng-repeat="error in vm.errors"
25 layout-align="space-between center"
28 <span class="message">{{error.message}}</span>
29 <span class="type">({{error.type}})</span>
31 <md-button class="md-icon-button">
33 md-font-icon="icon-alert-box"
34 aria-label="alert error"
40 <md-input-container class="md-block">
41 <label translate="CHAT.TAG">Tag</label>
47 ng-disabled="!vm.crudPermissions.canEdit"
51 ng-repeat="tag in vm.tags"
52 ng-disabled="tag.canSelect === false"
53 >{{ tag.name }}</md-option
57 ng-messages="chatWebsiteFormApp['tag'].$error"
58 ng-show="chatWebsiteFormApp['tag'].$touched"
61 <div ng-message="required">
62 <span translate="CHAT.ERRORS.TAG_REQUIRED"
63 >Tag field is required</span
69 <div class="error-list">
71 ng-repeat="error in vm.errors"
74 layout-align="space-between center"
77 <span class="message">{{error.message}}</span>
78 <span class="type">({{error.type}})</span>
80 <md-button class="md-icon-button">
82 md-font-icon="icon-alert-box"
83 aria-label="alert error"
91 <md-dialog-actions layout="row" layout-align="space-between center">
94 layout-align="start center"
95 ng-if="vm.crudPermissions.canEdit"
99 ng-click="vm.saveChatWebsiteApp()"
100 class="send-button md-accent md-raised"
101 ng-disabled="chatWebsiteFormApp.$invalid || chatWebsiteFormApp.$pristine"
103 translate="CHAT.SAVE"
104 translate-attr-aria-label="CHAT.SAVE"