2 <md-content class="chat-online">
6 ng-style="{'font-size': '{{settings.fontSize}}px'}"
9 <div class="form-input-container">
10 <div ng-repeat="field in ::vm.fields | orderBy:'index'" layout="column">
11 <span>{{field.props.title + (field.config.required ? '*' : '')}}</span>
13 <span style="line-height: 14px; color: grey; padding: 5px 0px 5px 0px">
15 ng-if="vm.checkHTML[$index]"
16 ng-bind-html="field.props.helpText"
19 ng-if="!vm.checkHTML[$index]"
20 ng-bind-html="field.props.helpText | embed:{linkTarget:'_blank'}"
27 ng-repeat="error in vm.errors"
31 <i class="mdi mdi-alert mdi-24px mdi-light"></i>
32 <md-tooltip md-direction="top"
33 >{{error.message || 'Service temporarily unavailable.'}}</md-tooltip
35 <span class="chat-error-message"
36 >{{error.message || 'Service temporarily unavailable.'}}</span
43 ng-switch="field.type"
44 style="margin: 0px; padding: 0px 0px 10px 0px"
47 <div ng-switch-when="label">
52 layout-align="center center"
54 <span>{{field.value}}</span>
59 <!-- START textinput -->
60 <div ng-switch-when="input">
62 name="{{field.props.title}}"
63 ng-model="vm.form[field.props.title]"
64 placeholder="{{field.config.placeholder}}"
65 type="{{field.config.type}}"
66 ng-required="field.config.required"
69 <!-- END textinput -->
71 <!-- START textarea -->
72 <div ng-switch-when="textarea">
74 name="{{field.props.title}}"
75 ng-model="vm.form[field.props.title]"
76 placeholder="{{field.config.placeholder}}"
79 ng-required="field.config.required"
85 <div ng-switch-when="chooseFromList">
87 name="{{field.props.title}}"
88 ng-model="vm.form[field.props.title]"
89 placeholder="{{field.config.placeholder}}"
90 ng-required="field.config.required"
93 ng-repeat="option in ::field.options"
94 ng-value="option.value"
95 >{{option.value}}</md-option
102 <div ng-switch-when="multipleChoices">
105 name="{{field.props.title}}"
106 ng-model="vm.form[field.props.title]"
107 ng-required="field.config.required"
108 layout="{{field.config.direction === 'vertical' ? 'row' : 'column'}}"
111 ng-repeat="option in ::field.options"
112 ng-value="option.value"
114 >{{option.value}}</md-radio-button
120 <!-- START checkbox -->
122 ng-switch-when="checkboxes"
123 layout="{{field.config.direction === 'vertical' ? 'row' : 'column'}}"
127 aria-label="{{field.props.title}}"
128 ng-repeat="option in ::field.options"
129 ng-checked="vm.exists(field.props.title, option.value)"
130 ng-disabled="!vm.exists(field.props.title, option.value) && field.config.maxSelections === vm.form[field.props.title].length"
131 ng-required="vm.getSelected()"
132 ng-click="vm.toggle(field.props.title, option.value)"
137 <!-- END checkbox -->
139 <!-- START agreement -->
141 ng-switch-when="agreement"
142 layout="{{field.config.direction === 'vertical' ? 'row' : 'column'}}"
146 ng-model="vm.form[field.props.title]"
147 aria-label="{{field.props.title}}"
148 ng-required="field.config.required"
150 {{field.options[0].value}}
153 <!-- END agreement -->
156 ng-messages="vm.userForm[field.props.title].$error"
157 ng-show="vm.userForm[field.props.title].$touched"
160 <div ng-message="required">
161 <span>Required Field</span>
163 <div ng-message="email">
164 <span>Wrong type field</span>
167 </md-input-container>
171 title="{{settings.start_chat_button}}"
173 ng-click="vm.submit()"
174 ng-disabled="vm.userForm.$invalid || vm.disableItem"
175 ng-style="{'background-color': '{{settings.color_button}}', 'color': '{{settings.textColor}}'}"
177 {{settings.start_chat_button}}
181 <md-content layout="row" layout-align="center end" class="white-label">
183 ng-bind-html="(settings.custom && !settings.defaultWhiteLabel) ? settings.whiteLabel : 'Powered By XCALLY' | toTrusted"
184 ng-style="{'font-size': '{{settings.fontSize}}px'}"
188 <!-- / CHAT CONTENT -->