summaryrefslogtreecommitdiffstats
path: root/web/react/components/admin_console/email_settings.jsx
blob: e8fb25858387ab5a6cdff33c17a4bb1214dcc454 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved.
// See License.txt for license information.

export default class EmailSettings extends React.Component {
    constructor(props) {
        super(props);

        this.state = {
        };
    }

    render() {
        return (
            <div className='wrapper--fixed'>
                <h3>{'Email Settings'}</h3>
                <form
                    className='form-horizontal'
                    role='form'
                >
                    <div className='form-group'>
                        <label
                            className='control-label col-sm-4'
                            htmlFor='email'
                        >
                            {'Bypass Email: '}
                            <a
                                href='#'
                                data-trigger='hover click'
                                data-toggle='popover'
                                data-position='bottom'
                                data-content={'Here\'s some more help text inside a popover for the Bypass Email field just to show how popovers look.'}
                            >
                                {'(?)'}
                            </a>
                        </label>
                        <div className='col-sm-8'>
                            <label className='radio-inline'>
                                <input
                                    type='radio'
                                    name='byPassEmail'
                                    value='option1'
                                />
                                    {'True'}
                            </label>
                            <label className='radio-inline'>
                                <input
                                    type='radio'
                                    name='byPassEmail'
                                    value='option2'
                                />
                                    {'False'}
                            </label>
                            <p className='help-text'>{'This is some sample help text for the Bypass Email field'}</p>
                        </div>
                    </div>
                    <div className='form-group'>
                        <label
                            className='control-label col-sm-4'
                            htmlFor='smtpUsername'
                        >
                            {'SMTP Username:'}
                        </label>
                        <div className='col-sm-8'>
                            <input
                                type='email'
                                className='form-control'
                                id='smtpUsername'
                                placeholder='Enter your SMTP username'
                                value=''
                            />
                            <div className='help-text'>
                                <div className='alert alert-warning'><i className='fa fa-warning'></i>{' This is some error text for the Bypass Email field'}</div>
                            </div>
                            <p className='help-text'>{'This is some sample help text for the SMTP username field'}</p>
                        </div>
                    </div>
                    <div className='form-group'>
                        <label
                            className='control-label col-sm-4'
                            htmlFor='smtpPassword'
                        >
                            {'SMTP Password:'}
                        </label>
                        <div className='col-sm-8'>
                            <input
                                type='password'
                                className='form-control'
                                id='smtpPassword'
                                placeholder='Enter your SMTP password'
                                value=''
                            />
                        </div>
                    </div>
                    <div className='form-group'>
                        <label
                            className='control-label col-sm-4'
                            htmlFor='smtpServer'
                        >
                            {'SMTP Server:'}
                        </label>
                        <div className='col-sm-8'>
                            <input
                                type='text'
                                className='form-control'
                                id='smtpServer'
                                placeholder='Enter your SMTP server'
                                value=''
                            />
                            <div className='help-text'>
                                <a
                                    href='#'
                                    className='help-link'
                                >
                                    {'Test Connection'}
                                </a>
                                <div className='alert alert-success'><i className='fa fa-check'></i>{' Connection successful'}</div>
                                <div className='alert alert-warning hide'><i className='fa fa-warning'></i>{' Connection unsuccessful'}</div>
                            </div>
                        </div>
                    </div>
                    <div className='form-group'>
                        <label className='control-label col-sm-4'>{'Use TLS:'}</label>
                        <div className='col-sm-8'>
                            <label className='radio-inline'>
                                <input
                                    type='radio'
                                    name='tls'
                                    value='option1'
                                />
                                    {'True'}
                            </label>
                            <label className='radio-inline'>
                                <input
                                    type='radio'
                                    name='tls'
                                    value='option2'
                                />
                                    {'False'}
                            </label>
                        </div>
                    </div>
                    <div className='form-group'>
                        <label className='control-label col-sm-4'>{'Use Start TLS:'}</label>
                        <div className='col-sm-8'>
                            <label className='radio-inline'>
                                <input
                                    type='radio'
                                    name='starttls'
                                    value='option1'
                                />
                                    {'True'}
                            </label>
                            <label className='radio-inline'>
                                <input
                                    type='radio'
                                    name='starttls'
                                    value='option2'
                                />
                                    {'False'}
                            </label>
                        </div>
                    </div>
                    <div className='form-group'>
                        <label
                            className='control-label col-sm-4'
                            htmlFor='feedbackEmail'
                        >
                            {'Feedback Email:'}
                        </label>
                        <div className='col-sm-8'>
                            <input
                                type='text'
                                className='form-control'
                                id='feedbackEmail'
                                placeholder='Enter your feedback email'
                                value=''
                            />
                        </div>
                    </div>
                    <div className='form-group'>
                        <label
                            className='control-label col-sm-4'
                            htmlFor='feedbackUsername'
                        >
                            {'Feedback Username:'}
                        </label>
                        <div className='col-sm-8'>
                            <input
                                type='text'
                                className='form-control'
                                id='feedbackUsername'
                                placeholder='Enter your feedback username'
                                value=''
                            />
                        </div>
                    </div>
                    <div className='form-group'>
                        <div className='col-sm-offset-4 col-sm-8'>
                            <div className='checkbox'>
                                <label><input type='checkbox' />{'Remember me'}</label>
                            </div>
                        </div>
                    </div>

                    <div
                        className='panel-group'
                        id='accordion'
                        role='tablist'
                        aria-multiselectable='true'
                    >
                        <div className='panel panel-default'>
                            <div
                                className='panel-heading'
                                role='tab'
                                id='headingOne'
                            >
                                <h3 className='panel-title'>
                                    <a
                                        className='collapsed'
                                        role='button'
                                        data-toggle='collapse'
                                        data-parent='#accordion'
                                        href='#collapseOne'
                                        aria-expanded='true'
                                        aria-controls='collapseOne'
                                    >
                                        {'Advanced Settings '}
                                        <i className='fa fa-plus'></i>
                                        <i className='fa fa-minus'></i>
                                    </a>
                                </h3>
                            </div>
                            <div
                                id='collapseOne'
                                className='panel-collapse collapse'
                                role='tabpanel'
                                aria-labelledby='headingOne'
                            >
                                <div className='panel-body'>
                                    <div className='form-group'>
                                        <label
                                            className='control-label col-sm-4'
                                            htmlFor='feedbackUsername'
                                        >
                                            {'Apple push server:'}
                                        </label>
                                        <div className='col-sm-8'>
                                            <input
                                                type='text'
                                                className='form-control'
                                                id='feedbackUsername'
                                                placeholder='Enter your Apple push server'
                                                value=''
                                            />
                                            <p className='help-text'>{'This is some sample help text for the Apple push server field'}</p>
                                        </div>
                                    </div>
                                    <div className='form-group'>
                                        <label
                                            className='control-label col-sm-4'
                                            htmlFor='feedbackUsername'
                                        >
                                            {'Apple push certificate public:'}
                                        </label>
                                        <div className='col-sm-8'>
                                            <input
                                                type='text'
                                                className='form-control'
                                                id='feedbackUsername'
                                                placeholder='Enter your public apple push certificate'
                                                value=''
                                            />
                                        </div>
                                    </div>
                                    <div className='form-group'>
                                        <label
                                            className='control-label col-sm-4'
                                            htmlFor='feedbackUsername'
                                        >
                                            {'Apple push certificate private:'}
                                        </label>
                                        <div className='col-sm-8'>
                                            <input
                                                type='text'
                                                className='form-control'
                                                id='feedbackUsername'
                                                placeholder='Enter your private apple push certificate'
                                                value=''
                                            />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div className='form-group'>
                        <div className='col-sm-12'>
                            <button
                                type='submit'
                                className='btn btn-primary'
                            >
                                {'Save'}
                            </button>
                        </div>
                    </div>
                </form>
            </div>
        );
    }
}