|
1 | 1 | <div class="modal-content">
|
2 | 2 | <div class="modal-header">
|
3 |
| - <h5 class="modal-title"><% if (typeof id !== 'undefined') { %>Edit<% } else { %>New<% } %> Proxy Host</h5> |
| 3 | + <h5 class="modal-title"><%- i18n('proxy-hosts', 'form-title', {id: id}) %></h5> |
4 | 4 | <button type="button" class="close cancel" aria-label="Close" data-dismiss="modal"> </button>
|
5 | 5 | </div>
|
6 | 6 | <div class="modal-body has-tabs">
|
7 | 7 | <form>
|
8 | 8 | <ul class="nav nav-tabs" role="tablist">
|
9 |
| - <li role="presentation" class="nav-item"><a href="#details" aria-controls="tab1" role="tab" data-toggle="tab" class="nav-link active"><i class="fe fe-zap"></i> Details</a></li> |
10 |
| - <li role="presentation" class="nav-item"><a href="#ssl-options" aria-controls="tab2" role="tab" data-toggle="tab" class="nav-link"><i class="fe fe-shield"></i> SSL</a></li> |
| 9 | + <li role="presentation" class="nav-item"><a href="#details" aria-controls="tab1" role="tab" data-toggle="tab" class="nav-link active"><i class="fe fe-zap"></i> <%- i18n('all-hosts', 'details') %></a></li> |
| 10 | + <li role="presentation" class="nav-item"><a href="#ssl-options" aria-controls="tab2" role="tab" data-toggle="tab" class="nav-link"><i class="fe fe-shield"></i> <%- i18n('all-hosts', 'SSL') %></a></li> |
11 | 11 | </ul>
|
12 | 12 | <div class="tab-content">
|
13 | 13 | <!-- Details -->
|
|
16 | 16 |
|
17 | 17 | <div class="col-sm-12 col-md-12">
|
18 | 18 | <div class="form-group">
|
19 |
| - <label class="form-label">Domain Names <span class="form-required">*</span></label> |
| 19 | + <label class="form-label"><%- i18n('all-hosts', '___domain-names') %> <span class="form-required">*</span></label> |
20 | 20 | <input type="text" name="domain_names" class="form-control" id="input-domains" value="<%- domain_names.join(',') %>" required>
|
21 | 21 | </div>
|
22 | 22 | </div>
|
23 | 23 | <div class="col-sm-8 col-md-8">
|
24 | 24 | <div class="form-group">
|
25 |
| - <label class="form-label">Forward IP <span class="form-required">*</span></label> |
| 25 | + <label class="form-label"><%- i18n('proxy-hosts', 'forward-ip') %><span class="form-required">*</span></label> |
26 | 26 | <input type="text" name="forward_ip" class="form-control text-monospace" placeholder="000.000.000.000" value="<%- forward_ip %>" autocomplete="off" maxlength="15" required>
|
27 | 27 | </div>
|
28 | 28 | </div>
|
29 | 29 | <div class="col-sm-4 col-md-4">
|
30 | 30 | <div class="form-group">
|
31 |
| - <label class="form-label">Forward Port <span class="form-required">*</span></label> |
| 31 | + <label class="form-label"><%- i18n('proxy-hosts', 'forward-port') %> <span class="form-required">*</span></label> |
32 | 32 | <input name="forward_port" type="number" class="form-control text-monospace" placeholder="80" value="<%- forward_port %>" required>
|
33 | 33 | </div>
|
34 | 34 | </div>
|
|
43 | 43 | <label class="custom-switch">
|
44 | 44 | <input type="checkbox" class="custom-switch-input" name="ssl_enabled" value="1"<%- ssl_enabled ? ' checked' : '' %>>
|
45 | 45 | <span class="custom-switch-indicator"></span>
|
46 |
| - <span class="custom-switch-description">Enable SSL</span> |
| 46 | + <span class="custom-switch-description"><%- i18n('all-hosts', 'enable-ssl') %></span> |
47 | 47 | </label>
|
48 | 48 | </div>
|
49 | 49 | </div>
|
|
52 | 52 | <label class="custom-switch">
|
53 | 53 | <input type="checkbox" class="custom-switch-input" name="ssl_forced" value="1"<%- ssl_forced ? ' checked' : '' %><%- ssl_enabled ? '' : ' disabled' %>>
|
54 | 54 | <span class="custom-switch-indicator"></span>
|
55 |
| - <span class="custom-switch-description">Force SSL</span> |
| 55 | + <span class="custom-switch-description"><%- i18n('all-hosts', 'force-ssl') %></span> |
56 | 56 | </label>
|
57 | 57 | </div>
|
58 | 58 | </div>
|
59 | 59 | <div class="col-sm-12 col-md-12">
|
60 | 60 | <div class="form-group">
|
61 |
| - <label class="form-label">Certificate Provider</label> |
| 61 | + <label class="form-label"><%- i18n('all-hosts', 'cert-provider') %></label> |
62 | 62 | <div class="selectgroup w-100">
|
63 | 63 | <label class="selectgroup-item">
|
64 | 64 | <input type="radio" name="ssl_provider" value="letsencrypt" class="selectgroup-input"<%- ssl_provider !== 'other' ? ' checked' : '' %>>
|
65 |
| - <span class="selectgroup-button">Let's Encrypt</span> |
| 65 | + <span class="selectgroup-button"><%- i18n('all-hosts', 'letsencrypt') %></span> |
66 | 66 | </label>
|
67 | 67 | <label class="selectgroup-item">
|
68 | 68 | <input type="radio" name="ssl_provider" value="other" class="selectgroup-input"<%- ssl_provider === 'other' ? ' checked' : '' %>>
|
69 |
| - <span class="selectgroup-button">Other</span> |
| 69 | + <span class="selectgroup-button"><%- i18n('all-hosts', 'other-ssl') %></span> |
70 | 70 | </label>
|
71 | 71 | </div>
|
72 | 72 | </div>
|
|
75 | 75 | <!-- Lets encrypt -->
|
76 | 76 | <div class="col-sm-12 col-md-12 letsencrypt-ssl">
|
77 | 77 | <div class="form-group">
|
78 |
| - <label class="form-label">Email Address for Let's Encrypt <span class="form-required">*</span></label> |
| 78 | + <label class="form-label"><%- i18n('all-hosts', 'letsencrypt-email') %> <span class="form-required">*</span></label> |
79 | 79 | <input name="meta[letsencrypt_email]" type="email" class="form-control" placeholder="" value="<%- getLetsencryptEmail() %>" required>
|
80 | 80 | </div>
|
81 | 81 | </div>
|
|
84 | 84 | <label class="custom-switch">
|
85 | 85 | <input type="checkbox" class="custom-switch-input" name="meta[letsencrypt_agree]" value="1" required<%- getLetsencryptAgree() ? ' checked' : '' %>>
|
86 | 86 | <span class="custom-switch-indicator"></span>
|
87 |
| - <span class="custom-switch-description">I Agree to the <a href="https://letsencrypt.org/repository/" target="_blank">Let's Encrypt Terms of Service</a> <span class="form-required">*</span></span> |
| 87 | + <span class="custom-switch-description"><%= i18n('all-hosts', 'letsencrypt-agree', {url: 'https://letsencrypt.org/repository/'}) %> <span class="form-required">*</span></span> |
88 | 88 | </label>
|
89 | 89 | </div>
|
90 | 90 | </div>
|
91 | 91 |
|
92 | 92 | <!-- Other -->
|
93 | 93 | <div class="col-sm-12 col-md-12 other-ssl">
|
94 | 94 | <div class="form-group">
|
95 |
| - <div class="form-label">Certificate</div> |
| 95 | + <div class="form-label"><%- i18n('all-hosts', 'other-certificate') %></div> |
96 | 96 | <div class="custom-file">
|
97 | 97 | <input type="file" class="custom-file-input" name="meta[other_ssl_certificate]">
|
98 |
| - <label class="custom-file-label">Choose file</label> |
| 98 | + <label class="custom-file-label"><%- i18n('str', 'choose-file') %></label> |
99 | 99 | </div>
|
100 | 100 | </div>
|
101 | 101 | </div>
|
102 | 102 | <div class="col-sm-12 col-md-12 other-ssl">
|
103 | 103 | <div class="form-group">
|
104 |
| - <div class="form-label">Certificate Key</div> |
| 104 | + <div class="form-label"><%- i18n('all-hosts', 'other-certificate-key') %></div> |
105 | 105 | <div class="custom-file">
|
106 | 106 | <input type="file" class="custom-file-input" name="meta[other_ssl_certificate_key]">
|
107 |
| - <label class="custom-file-label">Choose file</label> |
| 107 | + <label class="custom-file-label"><%- i18n('str', 'choose-file') %></label> |
108 | 108 | </div>
|
109 | 109 | </div>
|
110 | 110 | </div>
|
|
116 | 116 | </form>
|
117 | 117 | </div>
|
118 | 118 | <div class="modal-footer">
|
119 |
| - <button type="button" class="btn btn-secondary cancel" data-dismiss="modal">Cancel</button> |
120 |
| - <button type="button" class="btn btn-teal save">Save</button> |
| 119 | + <button type="button" class="btn btn-secondary cancel" data-dismiss="modal"><%- i18n('str', 'cancel') %></button> |
| 120 | + <button type="button" class="btn btn-teal save"><%- i18n('str', 'save') %></button> |
121 | 121 | </div>
|
122 | 122 | </div>
|
0 commit comments