~eventum-developers/eventum/trunk

« back to all changes in this revision

Viewing changes to templates/manage/general.tpl.html

First merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
      <table width="100%" bgcolor="{$cell_color}" border="0" cellspacing="0" cellpadding="1" align="center">
3
 
        <tr>
4
 
          <td>
5
 
            <table bgcolor="#FFFFFF" width="100%" cellspacing="1" cellpadding="2" border="0">
6
 
              {literal}
7
 
              <script type="text/javascript">
8
 
              <!--
9
 
              function validateForm(f)
10
 
              {
11
 
                  var field = getFormElement(f, 'smtp[from]');
12
 
                  if (isWhitespace(field.value)) {
13
 
                      alert('{/literal}{t escape=js}Please enter the sender address that will be used for all outgoing notification emails.{/t}{literal}');
14
 
                      selectField(f, 'smtp[from]');
15
 
                      return false;
16
 
                  }
17
 
                  field = getFormElement(f, 'smtp[host]');
18
 
                  if (isWhitespace(field.value)) {
19
 
                      alert('{/literal}{t escape=js}Please enter the SMTP server hostname.{/t}{literal}');
20
 
                      selectField(f, 'smtp[host]');
21
 
                      return false;
22
 
                  }
23
 
                  field = getFormElement(f, 'smtp[port]');
24
 
                  if ((isWhitespace(field.value)) || (!isNumberOnly(field.value))) {
25
 
                      alert('{/literal}{t escape=js}Please enter the SMTP server port number.{/t}{literal}');
26
 
                      selectField(f, 'smtp[port]');
27
 
                      return false;
28
 
                  }
29
 
                  var field1 = getFormElement(f, 'smtp[auth]', 0);
30
 
                  var field2 = getFormElement(f, 'smtp[auth]', 1);
31
 
                  if ((!field1.checked) && (!field2.checked)) {
32
 
                      alert('{/literal}{t escape=js}Please indicate whether the SMTP server requires authentication or not.{/t}{literal}');
33
 
                      return false;
34
 
                  }
35
 
                  if (field1.checked) {
36
 
                      field = getFormElement(f, 'smtp[username]');
37
 
                      if (isWhitespace(field.value)) {
38
 
                          alert('{/literal}{t escape=js}Please enter the SMTP server username.{/t}{literal}');
39
 
                          selectField(f, 'smtp[username]');
40
 
                          return false;
41
 
                      }
42
 
                      field = getFormElement(f, 'smtp[password]');
43
 
                      if (isWhitespace(field.value)) {
44
 
                          alert('{/literal}{t escape=js}Please enter the SMTP server password.{/t}{literal}');
45
 
                          selectField(f, 'smtp[password]');
46
 
                          return false;
47
 
                      }
48
 
                  }
49
 
                  var field1 = getFormElement(f, 'smtp[save_outgoing_email]', 0);
50
 
                  var field2 = getFormElement(f, 'smtp[save_address]');
51
 
                  if ((field1.checked) && (!isEmail(field2.value))) {
52
 
                      alert('{/literal}{t escape=js}Please enter the email address of where copies of outgoing emails should be sent to.{/t}{literal}');
53
 
                      selectField(f, 'smtp[save_address]');
54
 
                      return false;
55
 
                  }
56
 
                  if ((!f.open_signup[0].checked) && (!f.open_signup[1].checked))  {
57
 
                      alert('{/literal}{t escape=js}Please choose whether the system should allow visitors to signup for new accounts or not.{/t}{literal}');
58
 
                      return false;
59
 
                  }
60
 
                  if (f.open_signup[0].checked) {
61
 
                      field = getFormElement(f, 'accounts_projects[]');
62
 
                      if (!hasOneSelected(f, 'accounts_projects[]')) {
63
 
                          alert('{/literal}{t escape=js}Please select the assigned projects for users that create their own accounts.{/t}{literal}');
64
 
                          selectField(f, 'accounts_projects[]');
65
 
                          return false;
66
 
                      }
67
 
                  }
68
 
                  field1 = getFormElement(f, 'email_routing[status]', 0);
69
 
                  if (field1.checked) {
70
 
                      field1 = getFormElement(f, 'email_routing[address_prefix]');
71
 
                      if (isWhitespace(field1.value)) {
72
 
                          alert('{/literal}{t escape=js}Please enter the email address prefix for the email routing interface.{/t}{literal}');
73
 
                          selectField(f, 'email_routing[address_prefix]');
74
 
                          return false;
75
 
                      }
76
 
                      field1 = getFormElement(f, 'email_routing[address_host]');
77
 
                      if (isWhitespace(field1.value)) {
78
 
                          alert('{/literal}{t escape=js}Please enter the email address hostname for the email routing interface.{/t}{literal}');
79
 
                          selectField(f, 'email_routing[address_host]');
80
 
                          return false;
81
 
                      }
82
 
                  }
83
 
                  if ((!f.scm_integration[0].checked) && (!f.scm_integration[1].checked))  {
84
 
                      alert('{/literal}{t escape=js}Please choose whether the SCM integration feature should be enabled or not.{/t}{literal}');
85
 
                      return false;
86
 
                  }
87
 
                  if (f.scm_integration[0].checked) {
88
 
                      field = getFormElement(f, 'checkout_url');
89
 
                      if (isWhitespace(field.value)) {
90
 
                          alert('{/literal}{t escape=js}Please enter the checkout page URL for your SCM integration tool.{/t}{literal}');
91
 
                          selectField(f, 'checkout_url');
92
 
                          return false;
93
 
                      }
94
 
                      field = getFormElement(f, 'diff_url');
95
 
                      if (isWhitespace(field.value)) {
96
 
                          alert('{/literal}{t escape=js}Please enter the diff page URL for your SCM integration tool.{/t}{literal}');
97
 
                          selectField(f, 'diff_url');
98
 
                          return false;
99
 
                      }
100
 
                      field = getFormElement(f, 'scm_log_url');
101
 
                      if (isWhitespace(field.value)) {
102
 
                          alert('{/literal}{t escape=js}Please enter the log page URL for your SCM integration tool.{/t}{literal}');
103
 
                          selectField(f, 'scm_log_url');
104
 
                          return false;
105
 
                      }
106
 
                  }
107
 
                  if ((!f.support_email[0].checked) && (!f.support_email[1].checked))  {
108
 
                      alert('{/literal}{t escape=js}Please choose whether the email integration feature should be enabled or not.{/t}{literal}');
109
 
                      return false;
110
 
                  }
111
 
                  if ((!f.daily_tips[0].checked) && (!f.daily_tips[1].checked))  {
112
 
                      alert('{/literal}{t escape=js}Please choose whether the daily tips feature should be enabled or not.{/t}{literal}');
113
 
                      return false;
114
 
                  }
115
 
                  return true;
116
 
              }
117
 
              function disableAuthFields(f, bool)
118
 
              {
119
 
                  if (bool) {
120
 
                      var bgcolor = '#CCCCCC';
121
 
                  } else {
122
 
                      var bgcolor = '#FFFFFF';
123
 
                  }
124
 
                  var field = getFormElement(f, 'smtp[username]');
125
 
                  field.disabled = bool;
126
 
                  field.style.backgroundColor = bgcolor;
127
 
                  field = getFormElement(f, 'smtp[password]');
128
 
                  field.disabled = bool;
129
 
                  field.style.backgroundColor = bgcolor;
130
 
              }
131
 
              function checkDebugField(f)
132
 
              {
133
 
                  var field = getFormElement(f, 'smtp[save_outgoing_email]');
134
 
                  if (field.checked) {
135
 
                      var bool = false;
136
 
                  } else {
137
 
                      var bool = true;
138
 
                  }
139
 
                  if (bool) {
140
 
                      var bgcolor = '#CCCCCC';
141
 
                  } else {
142
 
                      var bgcolor = '#FFFFFF';
143
 
                  }
144
 
                  field = getFormElement(f, 'smtp[save_address]');
145
 
                  field.disabled = bool;
146
 
                  field.style.backgroundColor = bgcolor;
147
 
              }
148
 
              function disableSCMFields(f, bool)
149
 
              {
150
 
                  if (bool) {
151
 
                      var bgcolor = '#CCCCCC';
152
 
                  } else {
153
 
                      var bgcolor = '#FFFFFF';
154
 
                  }
155
 
                  var field = getFormElement(f, 'checkout_url');
156
 
                  field.disabled = bool;
157
 
                  field.style.backgroundColor = bgcolor;
158
 
                  field = getFormElement(f, 'diff_url');
159
 
                  field.disabled = bool;
160
 
                  field.style.backgroundColor = bgcolor;
161
 
              }
162
 
              function disableSignupFields(f, bool)
163
 
              {
164
 
                  if (bool) {
165
 
                      var bgcolor = '#CCCCCC';
166
 
                  } else {
167
 
                      var bgcolor = '#FFFFFF';
168
 
                  }
169
 
                  var field = getFormElement(f, 'accounts_projects[]');
170
 
                  field.disabled = bool;
171
 
                  field.style.backgroundColor = bgcolor;
172
 
                  field = getFormElement(f, 'accounts_role');
173
 
                  field.disabled = bool;
174
 
                  field.style.backgroundColor = bgcolor;
175
 
              }
176
 
              function disableEmailRoutingFields(f, bool)
177
 
              {
178
 
                  if (bool) {
179
 
                      var bgcolor = '#CCCCCC';
180
 
                  } else {
181
 
                      var bgcolor = '#FFFFFF';
182
 
                  }
183
 
 
184
 
                  var field = getFormElement(f, 'email_routing[address_prefix]');
185
 
                  field.disabled = bool;
186
 
                  field.style.backgroundColor = bgcolor;
187
 
                  field = getFormElement(f, 'email_routing[address_host]');
188
 
                  field.disabled = bool;
189
 
                  field.style.backgroundColor = bgcolor;
190
 
                  field = getFormElement(f, 'email_routing[host_alias]');
191
 
                  field.disabled = bool;
192
 
                  field.style.backgroundColor = bgcolor;
193
 
                  field = getFormElement(f, 'email_routing[warning][status]', 0);
194
 
                  field.disabled = bool;
195
 
                  field = getFormElement(f, 'email_routing[warning][status]', 1);
196
 
                  field.disabled = bool;
197
 
              }
198
 
              function disableNoteRoutingFields(f, bool)
199
 
              {
200
 
                  if (bool) {
201
 
                      var bgcolor = '#CCCCCC';
202
 
                  } else {
203
 
                      var bgcolor = '#FFFFFF';
204
 
                  }
205
 
                  var field = getFormElement(f, 'note_routing[address_prefix]');
206
 
                  field.disabled = bool;
207
 
                  field.style.backgroundColor = bgcolor;
208
 
                  field = getFormElement(f, 'note_routing[address_host]');
209
 
                  field.disabled = bool;
210
 
                  field.style.backgroundColor = bgcolor;
211
 
              }
212
 
              function disableDraftRoutingFields(f, bool)
213
 
              {
214
 
                  if (bool) {
215
 
                      var bgcolor = '#CCCCCC';
216
 
                  } else {
217
 
                      var bgcolor = '#FFFFFF';
218
 
                  }
219
 
                  var field = getFormElement(f, 'draft_routing[address_prefix]');
220
 
                  field.disabled = bool;
221
 
                  field.style.backgroundColor = bgcolor;
222
 
                  field = getFormElement(f, 'draft_routing[address_host]');
223
 
                  field.disabled = bool;
224
 
                  field.style.backgroundColor = bgcolor;
225
 
              }
226
 
              function disableErrorEmailFields(f, bool)
227
 
              {
228
 
                  if (bool) {
229
 
                      var bgcolor = '#CCCCCC';
230
 
                  } else {
231
 
                      var bgcolor = '#FFFFFF';
232
 
                  }
233
 
                  var field = getFormElement(f, 'email_error[addresses]');
234
 
                  field.disabled = bool;
235
 
                  field.style.backgroundColor = bgcolor;
236
 
              }
237
 
              function disableReminderEmailFields(f, bool)
238
 
              {
239
 
                  if (bool) {
240
 
                      var bgcolor = '#CCCCCC';
241
 
                  } else {
242
 
                      var bgcolor = '#FFFFFF';
243
 
                  }
244
 
                  var field = getFormElement(f, 'email_reminder[addresses]');
245
 
                  field.disabled = bool;
246
 
                  field.style.backgroundColor = bgcolor;
247
 
              }
248
 
              function toggleSubjectBasedRouting(f, enabled)
249
 
              {
250
 
 
251
 
                  var email_routing_enabled = getFormElement(f, 'email_routing[status]', 0);
252
 
                  email_routing_enabled.disabled = enabled;
253
 
                  if ((enabled != true) && (email_routing_enabled.checked != true)) {
254
 
                      disableEmailRoutingFields(f, true);
255
 
                  } else {
256
 
                      disableEmailRoutingFields(f, enabled);
257
 
                  }
258
 
                  getFormElement(f, 'email_routing[status]', 1).disabled = enabled;
259
 
 
260
 
                  var note_routing_enabled = getFormElement(f, 'note_routing[status]', 0);
261
 
                  note_routing_enabled.disabled = enabled;
262
 
                  if ((enabled != true) && (note_routing_enabled.checked != true)) {
263
 
                      disableNoteRoutingFields(f, true);
264
 
                  } else {
265
 
                      disableNoteRoutingFields(f, enabled);
266
 
                  }
267
 
                  getFormElement(f, 'note_routing[status]', 1).disabled = enabled;
268
 
              }
269
 
              //-->
270
 
              </script>
271
 
              {/literal}
272
 
              <form name="general_setup_form" onSubmit="return validateForm(this);" method="post" action="{$smarty.server.PHP_SELF}">
273
 
              <input type="hidden" name="cat" value="update">
274
 
              <tr>
275
 
                <td colspan="2" class="default">
276
 
                  <b>{t}General Setup{/t}</b>
277
 
                </td>
278
 
              </tr>
279
 
              {if $result != ""}
280
 
              <tr>
281
 
                <td colspan="2" bgcolor="{$cell_color}" align="center" class="error">
282
 
                  {if $result == -1}
283
 
                    {t}ERROR: The system doesn't have the appropriate permissions to create the configuration file in the setup directory{/t}
284
 
                    ({$app_config_path}). {t}Please contact your local system administrator and ask for write privileges on the provided path.{/t}
285
 
                  {elseif $result == -2}
286
 
                    {t}ERROR: The system doesn't have the appropriate permissions to update the configuration file in the setup directory{/t}
287
 
                    ({$app_setup_file}). {t}Please contact your local system administrator and ask for write privileges on the provided filename.{/t}
288
 
                  {elseif $result == 1}
289
 
                    {t}Thank you, the setup information was saved successfully.{/t}
290
 
                  {/if}
291
 
                </td>
292
 
              </tr>
293
 
              {/if}
294
 
              <tr>
295
 
                <td width="120" bgcolor="{$cell_color}" class="default_white">
296
 
                  <b>{t}Tool Caption:{/t}</b>
297
 
                </td>
298
 
                <td bgcolor="{$light_color}">
299
 
                  <input type="text" class="default" name="tool_caption" size="50" value="{$setup.tool_caption|escape:"html"}">
300
 
                </td>
301
 
              </tr>
302
 
              <tr>
303
 
                <td width="120" bgcolor="{$cell_color}" class="default_white">
304
 
                  <b>{t}SMTP (Outgoing Email) Settings:{/t}</b>
305
 
                </td>
306
 
                <td bgcolor="{$light_color}" class="default">
307
 
                  <table>
308
 
                    <tr>
309
 
                      <td width="100" class="default" align="right">
310
 
                        {t}Sender Email{/t}:&nbsp;
311
 
                      </td>
312
 
                      <td width="80%">
313
 
                        <input type="text" class="default" name="smtp[from]" size="30" value="{$setup.smtp.from|escape:"html"}">
314
 
                        {include file="error_icon.tpl.html" field="smtp[from]"}
315
 
                        <span class="small_default">{t 1="eventum@example.com" 2="Eventum <eventum@example.com>"}(This MUST contain a real email address, e.g. "%1" or "%2"){/t}</span>
316
 
                      </td>
317
 
                    </tr>
318
 
                    <tr>
319
 
                      <td width="100" class="default" align="right">
320
 
                        {t}Hostname:{/t}&nbsp;
321
 
                      </td>
322
 
                      <td width="80%">
323
 
                        <input type="text" class="default" name="smtp[host]" size="30" value="{$setup.smtp.host|escape:"html"}">
324
 
                        {include file="error_icon.tpl.html" field="smtp[host]"}
325
 
                      </td>
326
 
                    </tr>
327
 
                    <tr>
328
 
                      <td width="100" class="default" align="right">
329
 
                        {t}Port{/t}:&nbsp;
330
 
                      </td>
331
 
                      <td width="80%">
332
 
                        <input type="text" class="default" name="smtp[port]" size="5" value="{$setup.smtp.port}">
333
 
                        {include file="error_icon.tpl.html" field="smtp[port]"}
334
 
                      </td>
335
 
                    </tr>
336
 
                    <tr>
337
 
                      <td width="100" class="default" align="right">
338
 
                        {t}Requires Authentication?{/t}&nbsp;
339
 
                      </td>
340
 
                      <td width="80%" class="default">
341
 
                        <input type="radio" name="smtp[auth]" value="1" {if $setup.smtp.auth}checked{/if} onClick="disableAuthFields(this.form, false);">
342
 
                        <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'smtp[auth]', 0);disableAuthFields(getForm('general_setup_form'), false);">{t}Yes{/t}</a>&nbsp;&nbsp;
343
 
                        <input type="radio" name="smtp[auth]" value="0" {if not $setup.smtp.auth}checked{/if} onClick="disableAuthFields(this.form, true);">
344
 
                        <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'smtp[auth]', 1);disableAuthFields(getForm('general_setup_form'), true);">{t}No{/t}</a>
345
 
                      </td>
346
 
                    </tr>
347
 
                    <tr>
348
 
                      <td width="100" class="default" align="right">
349
 
                        {t}Username{/t}:&nbsp;
350
 
                      </td>
351
 
                      <td width="80%">
352
 
                        <input type="text" class="default" name="smtp[username]" size="20" value="{$setup.smtp.username|escape:"html"}">
353
 
                        {include file="error_icon.tpl.html" field="smtp[username]"}
354
 
                      </td>
355
 
                    </tr>
356
 
                    <tr>
357
 
                      <td width="100" class="default" align="right">
358
 
                        {t}Password{/t}:&nbsp;
359
 
                      </td>
360
 
                      <td width="80%">
361
 
                        <input type="password" class="default" name="smtp[password]" size="20" value="{$setup.smtp.password|escape:"html"}" autocomplete="off">
362
 
                        {include file="error_icon.tpl.html" field="smtp[password]"}
363
 
                      </td>
364
 
                    </tr>
365
 
                    <tr>
366
 
                      <td colspan="2" class="default">
367
 
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
368
 
                        <input type="checkbox" name="smtp[save_outgoing_email]" value="yes" {if $setup.smtp.save_outgoing_email == 'yes'}checked{/if} onClick="checkDebugField(this.form);">
369
 
                        <a id="link" class="link" href="javascript:void(null);" onClick="toggleCheckbox('general_setup_form', 'smtp[save_outgoing_email]');checkDebugField(getForm('general_setup_form'));">{t}Save a Copy of Every Outgoing Issue Notification Email{/t}</a>
370
 
                      </td>
371
 
                    </tr>
372
 
                    <tr>
373
 
                      <td width="100" class="default" align="right">
374
 
                        {t}Email Address to Send Saved Messages:{/t}&nbsp;
375
 
                      </td>
376
 
                      <td width="80%">
377
 
                        <input type="text" name="smtp[save_address]" class="default" size="30" value="{$setup.smtp.save_address}">
378
 
                        {include file="error_icon.tpl.html" field="smtp[save_address]"}
379
 
                      </td>
380
 
                    </tr>
381
 
                  </table>
382
 
                </td>
383
 
              </tr>
384
 
              <tr>
385
 
                <td width="120" bgcolor="{$cell_color}" class="default_white">
386
 
                  <b>{t}Open Account Signup:{/t}</b>
387
 
                </td>
388
 
                <td bgcolor="{$light_color}" class="default">
389
 
                  <table>
390
 
                    <tr>
391
 
                      <td colspan="2" class="default_white">
392
 
                        <input type="radio" name="open_signup" value="enabled" {if $setup.open_signup == 'enabled'}checked{/if} onClick="disableSignupFields(this.form, false);">
393
 
                        <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'open_signup', 0);disableSignupFields(getForm('general_setup_form'), false);">{t}Enabled{/t}</a>&nbsp;&nbsp;
394
 
                        <input type="radio" name="open_signup" value="disabled" {if not $setup.open_signup == 'enabled'}checked{/if} onClick="disableSignupFields(this.form, true);">
395
 
                        <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'open_signup', 1);disableSignupFields(getForm('general_setup_form'), true);">{t}Disabled{/t}</a>
396
 
                      </td>
397
 
                    </tr>
398
 
                    <tr>
399
 
                      <td width="100" class="default" align="right">
400
 
                        {t}Assigned Projects:{/t}&nbsp;
401
 
                      </td>
402
 
                      <td width="80%">
403
 
                        <select name="accounts_projects[]" multiple size="3" class="default">
404
 
                        {html_options options=$project_list selected=$setup.accounts_projects}
405
 
                        </select>
406
 
                        {include file="error_icon.tpl.html" field="accounts_projects[]"}
407
 
                      </td>
408
 
                    </tr>
409
 
                    <tr>
410
 
                      <td width="100" class="default" align="right">
411
 
                        {t}Assigned Role:{/t}&nbsp;
412
 
                      </td>
413
 
                      <td width="80%">
414
 
                        <select name="accounts_role" class="default">
415
 
                        {html_options options=$user_roles selected=$setup.accounts_role}
416
 
                        </select>
417
 
                        {include file="error_icon.tpl.html" field="accounts_role"}
418
 
                      </td>
419
 
                    </tr>
420
 
                  </table>
421
 
                </td>
422
 
              </tr>
423
 
              <tr>
424
 
                <td width="120" bgcolor="{$cell_color}" class="default_white">
425
 
                  <b>{t}Subject Based Routing:{/t}</b>
426
 
                </td>
427
 
                <td bgcolor="{$light_color}" class="default">
428
 
                  <table>
429
 
                    <tr>
430
 
                      <td>
431
 
                        <input id="subject_based_routing_enabled" type="radio" name="subject_based_routing[status]" value="enabled" {if $setup.subject_based_routing.status == 'enabled'}checked{/if} onChange="toggleSubjectBasedRouting(this.form, true);">
432
 
                        <label for="subject_based_routing_enabled" class="default">{t}Enabled{/t}</label>&nbsp;&nbsp;
433
 
                        <input id="subject_based_routing_disabled" type="radio" name="subject_based_routing[status]" value="disabled" {if $setup.subject_based_routing.status != 'enabled'}checked{/if} onClick="toggleSubjectBasedRouting(this.form, false);">
434
 
                        <label for="subject_based_routing_disabled" class="default">{t}Disabled{/t}</label><br />
435
 
                        <span class="small_default">{t}If enabled, Eventum will look in the subject line of incoming notes/emails to determine which issue they should be associated with.{/t}</span><br />
436
 
                      </td>
437
 
                    </tr>
438
 
                  </td>
439
 
                </table>
440
 
              </tr>
441
 
              <tr>
442
 
                <td width="120" bgcolor="{$cell_color}" class="default_white">
443
 
                  <b>{t}Email Recipient Type Flag:{/t}</b>
444
 
                </td>
445
 
                <td bgcolor="{$light_color}" class="default">
446
 
                  <table>
447
 
                    <tr>
448
 
                      <td width="100" class="default" align="right">
449
 
                        {t}Recipient Type Flag:{/t}&nbsp;
450
 
                      </td>
451
 
                      <td>
452
 
                        <input class="default" type="text" name="email_routing[recipient_type_flag]" value="{$setup.email_routing.recipient_type_flag|escape:"html"}">
453
 
                        <span class="small_default">{t}(This will be included in the From address of all emails sent by Eventum){/t}</span><br />
454
 
                        <span class="default">
455
 
                        <input type="radio" name="email_routing[flag_location]" value="before" {if $setup.email_routing.flag_location == 'before'}checked{/if}>
456
 
                        <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'email_routing[flag_location]', 0);">{t}Before Sender Name{/t}</a>&nbsp;&nbsp;
457
 
                        <input type="radio" name="email_routing[flag_location]" value="after" {if $setup.email_routing.flag_location != 'before'}checked{/if}>
458
 
                        <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'email_routing[flag_location]', 1);">{t}After Sender Name{/t}</a>
459
 
                        </span>
460
 
                      </td>
461
 
                    </tr>
462
 
                  </td>
463
 
                </table>
464
 
              </tr>
465
 
              <tr>
466
 
                <td width="120" bgcolor="{$cell_color}" class="default_white">
467
 
                  <b>{t}Email Routing Interface:{/t}</b>
468
 
                </td>
469
 
                <td bgcolor="{$light_color}" class="default">
470
 
                  <table>
471
 
                    <tr>
472
 
                      <td colspan="2" class="default_white">
473
 
                        <input type="radio" name="email_routing[status]" value="enabled" {if $setup.email_routing.status == 'enabled'}checked{/if} onClick="disableEmailRoutingFields(this.form, false);">
474
 
                        <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'email_routing[status]', 0);disableEmailRoutingFields(getForm('general_setup_form'), false);">{t}Enabled{/t}</a>&nbsp;&nbsp;
475
 
                        <input type="radio" name="email_routing[status]" value="disabled" {if $setup.email_routing.status != 'enabled'}checked{/if} onClick="disableEmailRoutingFields(this.form, true);">
476
 
                        <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'email_routing[status]', 1);disableEmailRoutingFields(getForm('general_setup_form'), true);">{t}Disabled{/t}</a>
477
 
                      </td>
478
 
                    </tr>
479
 
                    <tr>
480
 
                      <td width="100" class="default" align="right">
481
 
                        {t}Email Address Prefix:{/t}&nbsp;
482
 
                      </td>
483
 
                      <td width="80%">
484
 
                        <input type="text" name="email_routing[address_prefix]" value="{if $setup.email_routing.address_prefix}{$setup.email_routing.address_prefix}{else}issue_{/if}" class="default">
485
 
                        {include file="error_icon.tpl.html" field="email_routing[address_prefix]"}
486
 
                        <span class="small_default">{t escape=no 1="<b>issue_</b>51@example.com"}(e.g. %1){/t}</span>
487
 
                      </td>
488
 
                    </tr>
489
 
                    <tr>
490
 
                      <td width="100" class="default" align="right">
491
 
                        {t}Address Hostname:{/t}&nbsp;
492
 
                      </td>
493
 
                      <td width="80%">
494
 
                        <input type="text" name="email_routing[address_host]" class="default" value="{$setup.email_routing.address_host}">
495
 
                        {include file="error_icon.tpl.html" field="email_routing[address_host]"}
496
 
                        <span class="small_default">{t escape=no 1="issue_51@<b>example.com</b>"}(e.g. %1){/t}</span>
497
 
                      </td>
498
 
                    </tr>
499
 
                    <tr>
500
 
                      <td width="100" class="default" align="right">
501
 
                        {t}Host Alias:{/t}&nbsp;
502
 
                      </td>
503
 
                      <td width="80%">
504
 
                        <input type="text" name="email_routing[host_alias]" class="default" value="{$setup.email_routing.host_alias}">
505
 
                        {include file="error_icon.tpl.html" field="email_routing[host_alias]"}
506
 
                        <span class="small_default">{t}(Alternate domains separated by space that point to 'Address Hostname'){/t}</span>
507
 
                      </td>
508
 
                    </tr>
509
 
                    <tr>
510
 
                      <td width="100" class="default" align="right">
511
 
                        {t}Warn Users Whether They Can Send Emails to Issue:{/t}&nbsp;
512
 
                      </td>
513
 
                      <td width="80%" class="default">
514
 
                        <label><input type="radio" name="email_routing[warning][status]" value="enabled" {if $setup.email_routing.warning.status == 'enabled'}checked{/if}>
515
 
                        {t}Yes{/t}</label>&nbsp;&nbsp;
516
 
                        <label><input type="radio" name="email_routing[warning][status]" value="disabled" {if $setup.email_routing.warning.status != 'enabled'}checked{/if}>
517
 
                        {t}No{/t}</label>
518
 
                      </td>
519
 
                    </tr>
520
 
                  </table>
521
 
                </td>
522
 
              </tr>
523
 
              <tr>
524
 
                <td width="120" bgcolor="{$cell_color}" class="default_white">
525
 
                  <b>{t}Note Recipient Type Flag:{/t}</b>
526
 
                </td>
527
 
                <td bgcolor="{$light_color}" class="default">
528
 
                  <table>
529
 
                    <tr>
530
 
                      <td width="100" class="default" align="right">
531
 
                        {t}Recipient Type Flag:{/t}&nbsp;
532
 
                      </td>
533
 
                      <td>
534
 
                        <input class="default" type="text" name="note_routing[recipient_type_flag]" value="{$setup.note_routing.recipient_type_flag|escape:"html"}">
535
 
                        <span class="small_default">{t}(This will be included in the From address of all notes sent by Eventum){/t}</span><br />
536
 
                        <span class="default">
537
 
                        <input type="radio" name="note_routing[flag_location]" value="before" {if $setup.note_routing.flag_location == 'before'}checked{/if}>
538
 
                        <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'note_routing[flag_location]', 0);">{t}Before Sender Name{/t}</a>&nbsp;&nbsp;
539
 
                        <input type="radio" name="note_routing[flag_location]" value="after" {if $setup.note_routing.flag_location != 'before'}checked{/if}>
540
 
                        <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'note_routing[flag_location]', 1);">{t}After Sender Name{/t}</a>
541
 
                        </span>
542
 
                      </td>
543
 
                    </tr>
544
 
                  </table>
545
 
                </td>
546
 
              </tr>
547
 
              <tr>
548
 
                <td width="120" bgcolor="{$cell_color}" class="default_white">
549
 
                  <b>{t}Internal Note Routing Interface:{/t}</b>
550
 
                </td>
551
 
                <td bgcolor="{$light_color}" class="default">
552
 
                  <table>
553
 
                    <tr>
554
 
                      <td colspan="2" class="default_white">
555
 
                        <input type="radio" name="note_routing[status]" value="enabled" {if $setup.note_routing.status == 'enabled'}checked{/if} onClick="disableNoteRoutingFields(this.form, false);">
556
 
                        <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'note_routing[status]', 0);disableNoteRoutingFields(getForm('general_setup_form'), false);">{t}Enabled{/t}</a>&nbsp;&nbsp;
557
 
                        <input type="radio" name="note_routing[status]" value="disabled" {if $setup.note_routing.status != 'enabled'}checked{/if} onClick="disableNoteRoutingFields(this.form, true);">
558
 
                        <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'note_routing[status]', 1);disableNoteRoutingFields(getForm('general_setup_form'), true);">{t}Disabled{/t}</a>
559
 
                      </td>
560
 
                    </tr>
561
 
                    <tr>
562
 
                      <td width="100" class="default" align="right">
563
 
                        {t}Note Address Prefix:{/t}&nbsp;
564
 
                      </td>
565
 
                      <td width="80%">
566
 
                        <input type="text" name="note_routing[address_prefix]" value="{if $setup.note_routing.address_prefix}{$setup.note_routing.address_prefix}{else}note_{/if}" class="default">
567
 
                        {include file="error_icon.tpl.html" field="note_routing[address_prefix]"}
568
 
                        <span class="small_default">{t escape=no 1="<b>note_</b>51@example.com"}(e.g. %1){/t}</span>
569
 
                      </td>
570
 
                    </tr>
571
 
                    <tr>
572
 
                      <td width="100" class="default" align="right">
573
 
                        {t}Address Hostname:{/t}&nbsp;
574
 
                      </td>
575
 
                      <td width="80%">
576
 
                        <input type="text" name="note_routing[address_host]" class="default" value="{$setup.note_routing.address_host}">
577
 
                        {include file="error_icon.tpl.html" field="note_routing[address_host]"}
578
 
                        <span class="small_default">{t escape=no 1="note_51@<b>example.com</b>"}(e.g. %1){/t}</span>
579
 
                      </td>
580
 
                    </tr>
581
 
                    <tr>
582
 
                      <td width="100" class="default" align="right">
583
 
                        {t}Host Alias:{/t}&nbsp;
584
 
                      </td>
585
 
                      <td width="80%">
586
 
                        <input type="text" name="note_routing[host_alias]" class="default" value="{$setup.note_routing.host_alias}">
587
 
                        {include file="error_icon.tpl.html" field="note_routing[host_alias]"}
588
 
                        <span class="small_default">{t}(Alternate domains separated by space that point to 'Address Hostname'){/t}</span>
589
 
                      </td>
590
 
                    </tr>
591
 
                  </table>
592
 
                </td>
593
 
              </tr>
594
 
              <tr>
595
 
                <td width="120" bgcolor="{$cell_color}" class="default_white">
596
 
                  <b>{t}Email Draft Interface:{/t}</b>
597
 
                </td>
598
 
                <td bgcolor="{$light_color}" class="default">
599
 
                  <table>
600
 
                    <tr>
601
 
                      <td colspan="2" class="default_white">
602
 
                        <input type="radio" name="draft_routing[status]" value="enabled" {if $setup.draft_routing.status == 'enabled'}checked{/if} onClick="disableDraftRoutingFields(this.form, false);">
603
 
                        <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'draft_routing[status]', 0);disableDraftRoutingFields(getForm('general_setup_form'), false);">{t}Enabled{/t}</a>&nbsp;&nbsp;
604
 
                        <input type="radio" name="draft_routing[status]" value="disabled" {if $setup.draft_routing.status != 'enabled'}checked{/if} onClick="disableDraftRoutingFields(this.form, true);">
605
 
                        <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'draft_routing[status]', 1);disableDraftRoutingFields(getForm('general_setup_form'), true);">{t}Disabled{/t}</a>
606
 
                      </td>
607
 
                    </tr>
608
 
                    <tr>
609
 
                      <td width="100" class="default" align="right">
610
 
                        {t}Draft Address Prefix:{/t}&nbsp;
611
 
                      </td>
612
 
                      <td width="80%">
613
 
                        <input type="text" name="draft_routing[address_prefix]" value="{if $setup.draft_routing.address_prefix}{$setup.draft_routing.address_prefix}{else}draft_{/if}" class="default">
614
 
                        {include file="error_icon.tpl.html" field="draft_routing[address_prefix]"}
615
 
                        <span class="small_default">{t escape=no 1="<b>draft_</b>51@example.com"}(e.g. %1){/t}</span>
616
 
                      </td>
617
 
                    </tr>
618
 
                    <tr>
619
 
                      <td width="100" class="default" align="right">
620
 
                        {t}Address Hostname:{/t}&nbsp;
621
 
                      </td>
622
 
                      <td width="80%">
623
 
                        <input type="text" name="draft_routing[address_host]" class="default" value="{$setup.draft_routing.address_host}">
624
 
                        {include file="error_icon.tpl.html" field="draft_routing[address_host]"}
625
 
                        <span class="small_default">{t escape=no 1="draft_51@<b>example.com</b>"}(e.g. %1){/t}</span>
626
 
                      </td>
627
 
                    </tr>
628
 
                    <tr>
629
 
                      <td width="100" class="default" align="right">
630
 
                        {t}Host Alias:{/t}&nbsp;
631
 
                      </td>
632
 
                      <td width="80%">
633
 
                        <input type="text" name="draft_routing[host_alias]" class="default" value="{$setup.draft_routing.host_alias}">
634
 
                        {include file="error_icon.tpl.html" field="draft_routing[host_alias]"}
635
 
                        <span class="small_default">{t}(Alternate domains separated by space that point to 'Address Hostname'){/t}</span>
636
 
                      </td>
637
 
                    </tr>
638
 
                  </table>
639
 
                </td>
640
 
              </tr>
641
 
              <tr>
642
 
                <td width="120" bgcolor="{$cell_color}" class="default_white">
643
 
                  <b>{t escape=no}SCM <br />Integration:{/t}</b> {include file="help_link.tpl.html" topic="scm_integration"}
644
 
                </td>
645
 
                <td bgcolor="{$light_color}" class="default">
646
 
                  <table>
647
 
                    <tr>
648
 
                      <td colspan="2" class="default_white">
649
 
                        <input type="radio" name="scm_integration" value="enabled" {if $setup.scm_integration == 'enabled'}checked{/if} onClick="disableSCMFields(this.form, false);">
650
 
                        <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'scm_integration', 0);disableSCMFields(getForm('general_setup_form'), false);">{t}Enabled{/t}</a>&nbsp;&nbsp;
651
 
                        <input type="radio" name="scm_integration" value="disabled" {if not $setup.scm_integration == 'enabled'}checked{/if} onClick="disableSCMFields(this.form, true);">
652
 
                        <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'scm_integration', 1);disableSCMFields(getForm('general_setup_form'), true);">{t}Disabled{/t}</a>
653
 
                      </td>
654
 
                    </tr>
655
 
                    <tr>
656
 
                      <td width="100" class="default" align="right">
657
 
                        {t}Checkout Page:{/t}&nbsp;
658
 
                      </td>
659
 
                      <td width="80%">
660
 
                        <input type="text" class="default" name="checkout_url" size="50" value="{$setup.checkout_url|escape:"html"}">
661
 
                        {include file="error_icon.tpl.html" field="checkout_url"}
662
 
                      </td>
663
 
                    </tr>
664
 
                    <tr>
665
 
                      <td width="100" class="default" align="right">
666
 
                        {t}Diff Page:{/t}&nbsp;
667
 
                      </td>
668
 
                      <td width="80%">
669
 
                        <input type="text" class="default" name="diff_url" size="50" value="{$setup.diff_url|escape:"html"}">
670
 
                        {include file="error_icon.tpl.html" field="diff_url"}
671
 
                      </td>
672
 
                    </tr>
673
 
                    <tr>
674
 
                      <td width="100" class="default" align="right">
675
 
                        {t}Log Page:{/t}&nbsp;
676
 
                      </td>
677
 
                      <td width="80%">
678
 
                        <input type="text" class="default" name="scm_log_url" size="50" value="{$setup.scm_log_url|escape:"html"}">
679
 
                        {include file="error_icon.tpl.html" field="scm_log_url"}
680
 
                      </td>
681
 
                    </tr>
682
 
                  </table>
683
 
                </td>
684
 
              </tr>
685
 
              <tr>
686
 
                <td width="120" bgcolor="{$cell_color}" class="default_white">
687
 
                  <b>{t}Email Integration Feature:{/t}</b>
688
 
                </td>
689
 
                <td bgcolor="{$light_color}" class="default">
690
 
                  <input type="radio" name="support_email" value="enabled" {if $setup.support_email == 'enabled'}checked{/if}>
691
 
                  <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'support_email', 0);">{t}Enabled{/t}</a>&nbsp;&nbsp;
692
 
                  <input type="radio" name="support_email" value="disabled" {if $setup.support_email != 'enabled'}checked{/if}>
693
 
                  <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'support_email', 1);">{t}Disabled{/t}</a>
694
 
                </td>
695
 
              </tr>
696
 
              <tr>
697
 
                <td width="120" bgcolor="{$cell_color}" class="default_white">
698
 
                  <b>{t}Daily Tips:{/t}</b>
699
 
                </td>
700
 
                <td bgcolor="{$light_color}" class="default">
701
 
                  <input type="radio" name="daily_tips" value="enabled" {if $setup.daily_tips == 'enabled'}checked{/if}>
702
 
                  <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'daily_tips', 0);">{t}Enabled{/t}</a>&nbsp;&nbsp;
703
 
                  <input type="radio" name="daily_tips" value="disabled" {if $setup.daily_tips != 'enabled'}checked{/if}>
704
 
                  <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'daily_tips', 1);">{t}Disabled{/t}</a>
705
 
                </td>
706
 
              </tr>
707
 
              <tr>
708
 
                <td width="120" bgcolor="{$cell_color}" class="default_white">
709
 
                  <b>{t}Email Spell Checker:{/t}</b>
710
 
                </td>
711
 
                <td bgcolor="{$light_color}">
712
 
                  <span class="default">
713
 
                  <input type="radio" name="spell_checker" value="enabled" {if $setup.spell_checker == 'enabled'}checked{/if}>
714
 
                  <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'spell_checker', 0);">{t}Enabled{/t}</a>&nbsp;&nbsp;
715
 
                  <input type="radio" name="spell_checker" value="disabled" {if $setup.spell_checker != 'enabled'}checked{/if}>
716
 
                  <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'spell_checker', 1);">{t}Disabled{/t}</a></span>
717
 
                  &nbsp;&nbsp;<span class="small_default">{t escape=no 1='<a target="_blank" class="link" href="http://aspell.sourceforge.net/">aspell</a>'}(requires %1 installed in your server){/t}</span>
718
 
                </td>
719
 
              </tr>
720
 
              <tr>
721
 
                <td width="120" bgcolor="{$cell_color}" class="default_white">
722
 
                  <b>{t}IRC Notifications:{/t}</b>
723
 
                </td>
724
 
                <td bgcolor="{$light_color}" class="default">
725
 
                  <input type="radio" name="irc_notification" value="enabled" {if $setup.irc_notification == 'enabled'}checked{/if}>
726
 
                  <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'irc_notification', 0);">{t}Enabled{/t}</a>&nbsp;&nbsp;
727
 
                  <input type="radio" name="irc_notification" value="disabled" {if $setup.irc_notification != 'enabled'}checked{/if}>
728
 
                  <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'irc_notification', 1);">{t}Disabled{/t}</a>
729
 
                </td>
730
 
              </tr>
731
 
              <tr>
732
 
                <td width="120" bgcolor="{$cell_color}" class="default_white">
733
 
                  <b>{t}Allow Un-Assigned Issues?{/t}</b>
734
 
                </td>
735
 
                <td bgcolor="{$light_color}" class="default">
736
 
                  <input type="radio" name="allow_unassigned_issues" value="yes" {if $setup.allow_unassigned_issues == 'yes'}checked{/if}>
737
 
                  <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'allow_unassigned_issues', 0);">{t}Yes{/t}</a>&nbsp;&nbsp;
738
 
                  <input type="radio" name="allow_unassigned_issues" value="no" {if $setup.allow_unassigned_issues != 'yes'}checked{/if}>
739
 
                  <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'allow_unassigned_issues', 1);">{t}No{/t}</a>
740
 
                </td>
741
 
              </tr>
742
 
              <tr>
743
 
                <td width="120" bgcolor="{$cell_color}" class="default_white">
744
 
                  <b>{t}Default Options for Notifications:{/t}</b>
745
 
                </td>
746
 
                <td bgcolor="{$light_color}" class="default">
747
 
                  <input type="checkbox" name="update" {if $setup.update}checked{/if} value="1"> <a id="link" class="link" href="javascript:void(null);" onClick="toggleCheckbox('general_setup_form', 'update');">{t}Issues are Updated{/t}</a><br />
748
 
                  <input type="checkbox" name="closed" {if $setup.closed}checked{/if} value="1"> <a id="link" class="link" href="javascript:void(null);" onClick="toggleCheckbox('general_setup_form', 'closed');">{t}Issues are Closed{/t}</a><br />
749
 
                  <input type="checkbox" name="emails" {if $setup.emails}checked{/if} value="1"> <a id="link" class="link" href="javascript:void(null);" onClick="toggleCheckbox('general_setup_form', 'emails');">{t}Emails are Associated{/t}</a><br />
750
 
                  <input type="checkbox" name="files" {if $setup.files}checked{/if} value="1"> <a id="link" class="link" href="javascript:void(null);" onClick="toggleCheckbox('general_setup_form', 'files');">{t}Files are Attached{/t}</a>
751
 
                </td>
752
 
              </tr>
753
 
              <tr>
754
 
                <td width="120" bgcolor="{$cell_color}" class="default_white">
755
 
                  <b>{t}Email Reminder System Status Information:{/t}</b>
756
 
                </td>
757
 
                <td bgcolor="{$light_color}" class="default">
758
 
                  <table>
759
 
                    <tr>
760
 
                      <td colspan="2" class="default_white">
761
 
                        <input type="radio" name="email_reminder[status]" value="enabled" {if $setup.email_reminder.status == 'enabled'}checked{/if} onClick="disableReminderEmailFields(getForm('general_setup_form'), false);">
762
 
                        <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'email_reminder[status]', 0);disableReminderEmailFields(getForm('general_setup_form'), false);">{t}Enabled{/t}</a>&nbsp;&nbsp;
763
 
                        <input type="radio" name="email_reminder[status]" value="disabled" {if $setup.email_reminder.status != 'enabled'}checked{/if} onClick="disableReminderEmailFields(getForm('general_setup_form'), true);">
764
 
                        <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'email_reminder[status]', 1);disableReminderEmailFields(getForm('general_setup_form'), true);">{t}Disabled{/t}</a>
765
 
                      </td>
766
 
                    </tr>
767
 
                    <tr>
768
 
                      <td width="100" class="default" align="right">
769
 
                        {t}Email Addresses To Send Information To:{/t}&nbsp;
770
 
                      </td>
771
 
                      <td width="80%">
772
 
                        <input class="default" type="text" name="email_reminder[addresses]" value="{$setup.email_reminder.addresses|escape:"html"}" size="50">
773
 
                        <span class="small_default">{t}(separate multiple addresses with commas){/t}</span>
774
 
                      </td>
775
 
                    </tr>
776
 
                  </table>
777
 
                </td>
778
 
              </tr>
779
 
              <tr>
780
 
                <td width="120" bgcolor="{$cell_color}" class="default_white">
781
 
                  <b>{t}Email Error Logging System:{/t}</b>
782
 
                </td>
783
 
                <td bgcolor="{$light_color}" class="default">
784
 
                  <table>
785
 
                    <tr>
786
 
                      <td colspan="2" class="default_white">
787
 
                        <input type="radio" name="email_error[status]" value="enabled" {if $setup.email_error.status == 'enabled'}checked{/if} onClick="disableErrorEmailFields(getForm('general_setup_form'), false);">
788
 
                        <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'email_error[status]', 0);disableErrorEmailFields(getForm('general_setup_form'), false);">{t}Enabled{/t}</a>&nbsp;&nbsp;
789
 
                        <input type="radio" name="email_error[status]" value="disabled" {if $setup.email_error.status != 'enabled'}checked{/if} onClick="disableErrorEmailFields(getForm('general_setup_form'), true);">
790
 
                        <a id="link" class="link" href="javascript:void(null);" onClick="checkRadio('general_setup_form', 'email_error[status]', 1);disableErrorEmailFields(getForm('general_setup_form'), true);">{t}Disabled{/t}</a>
791
 
                      </td>
792
 
                    </tr>
793
 
                    <tr>
794
 
                      <td width="100" class="default" align="right">
795
 
                        {t}Email Addresses To Send Errors To:{/t}&nbsp;
796
 
                      </td>
797
 
                      <td width="80%">
798
 
                        <input class="default" type="text" name="email_error[addresses]" value="{$setup.email_error.addresses|escape:"html"}" size="50">
799
 
                        <span class="small_default">{t}(separate multiple addresses with commas){/t}</span>
800
 
                      </td>
801
 
                    </tr>
802
 
                  </table>
803
 
                </td>
804
 
              </tr>
805
 
              <tr>
806
 
                <td colspan="2" bgcolor="{$cell_color}" align="center">
807
 
                  <input class="button" type="submit" value="{t}Update Setup{/t}">
808
 
                  <input class="button" type="reset" value="{t}Reset{/t}">
809
 
                </td>
810
 
              </tr>
811
 
              </form>
812
 
            </table>
813
 
          </td>
814
 
        </tr>
815
 
      </table>
816
 
      {literal}
817
 
      <script type="text/javascript">
818
 
      <!--
819
 
      window.onload = setDisabledFields;
820
 
      function setDisabledFields()
821
 
      {
822
 
          var f = getForm('general_setup_form');
823
 
          var field1 = getFormElement(f, 'smtp[auth]', 0);
824
 
          if (field1.checked) {
825
 
              disableAuthFields(f, false);
826
 
          } else {
827
 
              disableAuthFields(f, true);
828
 
          }
829
 
          checkDebugField(f);
830
 
          if (f.scm_integration[0].checked) {
831
 
              disableSCMFields(f, false);
832
 
          } else {
833
 
              f.scm_integration[1].checked = true;
834
 
              disableSCMFields(f, true);
835
 
          }
836
 
          if (f.open_signup[0].checked) {
837
 
              disableSignupFields(f, false);
838
 
          } else {
839
 
              f.open_signup[1].checked = true;
840
 
              disableSignupFields(f, true);
841
 
          }
842
 
          field1 = getFormElement(f, 'email_routing[status]', 0);
843
 
          var field2 = getFormElement(f, 'email_routing[status]', 1);
844
 
          if (field1.checked) {
845
 
              disableEmailRoutingFields(f, false);
846
 
          } else {
847
 
              field2.checked = true;
848
 
              disableEmailRoutingFields(f, true);
849
 
          }
850
 
          field1 = getFormElement(f, 'note_routing[status]', 0);
851
 
          field2 = getFormElement(f, 'note_routing[status]', 1);
852
 
          if (field1.checked) {
853
 
              disableNoteRoutingFields(f, false);
854
 
          } else {
855
 
              field2.checked = true;
856
 
              disableNoteRoutingFields(f, true);
857
 
          }
858
 
          field1 = getFormElement(f, 'draft_routing[status]', 0);
859
 
          field2 = getFormElement(f, 'draft_routing[status]', 1);
860
 
          if (field1.checked) {
861
 
              disableDraftRoutingFields(f, false);
862
 
          } else {
863
 
              field2.checked = true;
864
 
              disableDraftRoutingFields(f, true);
865
 
          }
866
 
          field1 = getFormElement(f, 'email_reminder[status]', 0);
867
 
          field2 = getFormElement(f, 'email_reminder[status]', 1);
868
 
          if (field1.checked) {
869
 
              disableReminderEmailFields(f, false);
870
 
          } else {
871
 
              field2.checked = true;
872
 
              disableReminderEmailFields(f, true);
873
 
          }
874
 
          field1 = getFormElement(f, 'email_error[status]', 0);
875
 
          field2 = getFormElement(f, 'email_error[status]', 1);
876
 
          if (field1.checked) {
877
 
              disableErrorEmailFields(f, false);
878
 
          } else {
879
 
              field2.checked = true;
880
 
              disableErrorEmailFields(f, true);
881
 
          }
882
 
          toggleSubjectBasedRouting(f, getFormElement(f, 'subject_based_routing[status]', 0).checked);
883
 
      }
884
 
      //-->
885
 
      </script>
886
 
      {/literal}
887
 
 
 
1
{extends "manage/manage.tpl.html"}
 
2
 
 
3
{block "manage_content"}
 
4
  {literal}
 
5
  <script type="text/javascript">
 
6
  <!--
 
7
  function validateForm()
 
8
  {
 
9
      if (Validation.isFieldWhitespace('smtp[from]')) {
 
10
          alert('{/literal}{t escape=js}Please enter the sender address that will be used for all outgoing notification emails.{/t}{literal}');
 
11
          Validation.selectField('smtp[from]');
 
12
          return false;
 
13
      }
 
14
      if (Validation.isFieldWhitespace('smtp[host]')) {
 
15
          alert('{/literal}{t escape=js}Please enter the SMTP server hostname.{/t}{literal}');
 
16
          Validation.selectField('smtp[host]');
 
17
          return false;
 
18
      }
 
19
      if ((Validation.isFieldWhitespace('smtp[port]')) || (!Validation.isNumberOnly(Eventum.getField('smtp[port]').val()))) {
 
20
          alert('{/literal}{t escape=js}Please enter the SMTP server port number.{/t}{literal}');
 
21
          Validation.selectField('smtp[port]');
 
22
          return false;
 
23
      }
 
24
      if (!Validation.hasOneChecked('smtp[auth]')) {
 
25
          alert('{/literal}{t escape=js}Please indicate whether the SMTP server requires authentication or not.{/t}{literal}');
 
26
          return false;
 
27
      }
 
28
      if (Eventum.getField('smtp[auth]').first().is(':checked')) {
 
29
          if (Validation.isFieldWhitespace('smtp[username]')) {
 
30
              alert('{/literal}{t escape=js}Please enter the SMTP server username.{/t}{literal}');
 
31
              Validation.selectField('smtp[username]');
 
32
              return false;
 
33
          }
 
34
          if (Validation.isFieldWhitespace('smtp[password]')) {
 
35
              alert('{/literal}{t escape=js}Please enter the SMTP server password.{/t}{literal}');
 
36
              Validation.selectField('smtp[password]');
 
37
              return false;
 
38
          }
 
39
      }
 
40
      if (Eventum.getField('smtp[save_outgoing_email]').is(':checked') && (!Validation.isEmail(Eventum.getField('smtp[save_address]').val()))) {
 
41
          alert('{/literal}{t escape=js}Please enter the email address of where copies of outgoing emails should be sent to.{/t}{literal}');
 
42
          Validation.selectField('smtp[save_address]');
 
43
          return false;
 
44
      }
 
45
      if (!Validation.hasOneChecked('open_signup'))  {
 
46
          alert('{/literal}{t escape=js}Please choose whether the system should allow visitors to signup for new accounts or not.{/t}{literal}');
 
47
          return false;
 
48
      }
 
49
      if (Eventum.getField('open_signup').first().is(':checked')) {
 
50
          if (!Validation.hasOneSelected('accounts_projects[]')) {
 
51
              alert('{/literal}{t escape=js}Please select the assigned projects for users that create their own accounts.{/t}{literal}');
 
52
              Validation.selectField('accounts_projects[]');
 
53
              return false;
 
54
          }
 
55
      }
 
56
      if (Eventum.getField('email_routing[status]').first().is(':checked')) {
 
57
          if (Validation.isFieldWhitespace('email_routing[address_prefix]')) {
 
58
              alert('{/literal}{t escape=js}Please enter the email address prefix for the email routing interface.{/t}{literal}');
 
59
              Validation.selectField('email_routing[address_prefix]');
 
60
              return false;
 
61
          }
 
62
          if (Validation.isFieldWhitespace('email_routing[address_host]')) {
 
63
              alert('{/literal}{t escape=js}Please enter the email address hostname for the email routing interface.{/t}{literal}');
 
64
              Validation.selectField('email_routing[address_host]');
 
65
              return false;
 
66
          }
 
67
      }
 
68
      if (Eventum.getField('note_routing[status]').first().is(':checked')) {
 
69
          if (Validation.isFieldWhitespace('note_routing[address_prefix]')) {
 
70
              alert('{/literal}{t escape=js}Please enter the email address prefix for the note routing interface.{/t}{literal}');
 
71
              Validation.selectField('note_routing[address_prefix]');
 
72
              return false;
 
73
          }
 
74
          if (Validation.isFieldWhitespace('note_routing[address_host]')) {
 
75
              alert('{/literal}{t escape=js}Please enter the email address hostname for the note routing interface.{/t}{literal}');
 
76
              Validation.selectField('note_routing[address_host]');
 
77
              return false;
 
78
          }
 
79
      }
 
80
      if (Eventum.getField('draft_routing[status]').first().is(':checked')) {
 
81
          if (Validation.isFieldWhitespace('draft_routing[address_prefix]')) {
 
82
              alert('{/literal}{t escape=js}Please enter the email address prefix for the draft routing interface.{/t}{literal}');
 
83
              Validation.selectField('draft_routing[address_prefix]');
 
84
              return false;
 
85
          }
 
86
          if (Validation.isFieldWhitespace('draft_routing[address_host]')) {
 
87
              alert('{/literal}{t escape=js}Please enter the email address hostname for the draft routing interface.{/t}{literal}');
 
88
              Validation.selectField('draft_routing[address_host]');
 
89
              return false;
 
90
          }
 
91
      }
 
92
      return true;
 
93
  }
 
94
  function toggleAuthFields()
 
95
  {
 
96
      var bool = !Eventum.getField('smtp[auth]').first().is(':checked');
 
97
      if (bool) {
 
98
          var bgcolor = '#CCCCCC';
 
99
      } else {
 
100
          var bgcolor = '#FFFFFF';
 
101
      }
 
102
      Eventum.getField('smtp[username]').attr('disabled', bool).css('backgroundColor', bgcolor);
 
103
      Eventum.getField('smtp[password]').attr('disabled', bool).css('backgroundColor', bgcolor);
 
104
  }
 
105
  function checkDebugField()
 
106
  {
 
107
      if (Eventum.getField('smtp[save_outgoing_email]').is(':checked')) {
 
108
          var bool = false;
 
109
      } else {
 
110
          var bool = true;
 
111
      }
 
112
      if (bool) {
 
113
          var bgcolor = '#CCCCCC';
 
114
      } else {
 
115
          var bgcolor = '#FFFFFF';
 
116
      }
 
117
      Eventum.getField('smtp[save_address]').attr('disabled', bool).css('backgroundColor', bgcolor);
 
118
  }
 
119
  function toggleSignupFields()
 
120
  {
 
121
      var bool = !Eventum.getField('open_signup').first().is(':checked')
 
122
      if (bool) {
 
123
          var bgcolor = '#CCCCCC';
 
124
      } else {
 
125
          var bgcolor = '#FFFFFF';
 
126
      }
 
127
      Eventum.getField('accounts_projects[]').attr('disabled', bool).css('backgroundColor', bgcolor);
 
128
      Eventum.getField('accounts_role').attr('disabled', bool).css('backgroundColor', bgcolor);
 
129
  }
 
130
  function toggleSubjectBasedRouting()
 
131
  {
 
132
      var subject_based_enabled = Eventum.getField('subject_based_routing[status]').first().is(':checked');
 
133
 
 
134
      // disable email routing if subject based routing is enabled
 
135
      if (subject_based_enabled == true) {
 
136
          Eventum.getField('email_routing[status]').slice(1,2).click();
 
137
          Eventum.getField('note_routing[status]').slice(1,2).click();
 
138
      }
 
139
      Eventum.getField('email_routing[status]').attr('disabled', subject_based_enabled);
 
140
      Eventum.getField('note_routing[status]').attr('disabled', subject_based_enabled);
 
141
  }
 
142
  function toggleEmailRoutingFields()
 
143
  {
 
144
      var bool = !Eventum.getField('email_routing[status]').first().is(':checked');
 
145
      if (bool) {
 
146
          var bgcolor = '#CCCCCC';
 
147
      } else {
 
148
          var bgcolor = '#FFFFFF';
 
149
      }
 
150
      Eventum.getField('email_routing[address_prefix]').attr('disabled', bool).css('backgroundColor', bgcolor);
 
151
      Eventum.getField('email_routing[address_host]').attr('disabled', bool).css('backgroundColor', bgcolor);
 
152
      Eventum.getField('email_routing[host_alias]').attr('disabled', bool).css('backgroundColor', bgcolor);
 
153
      Eventum.getField('email_routing[warning][status]').attr('disabled', bool).css('backgroundColor', bgcolor);
 
154
      Eventum.getField('email_routing[warning][status]').attr('disabled', bool).css('backgroundColor', bgcolor);
 
155
  }
 
156
  function toggleNoteRoutingFields()
 
157
  {
 
158
      var bool = !Eventum.getField('note_routing[status]').first().is(':checked');
 
159
      if (bool) {
 
160
          var bgcolor = '#CCCCCC';
 
161
      } else {
 
162
          var bgcolor = '#FFFFFF';
 
163
      }
 
164
      Eventum.getField('note_routing[address_prefix]').attr('disabled', bool).css('backgroundColor', bgcolor);
 
165
      Eventum.getField('note_routing[address_host]').attr('disabled', bool).css('backgroundColor', bgcolor);
 
166
  }
 
167
  function toggleDraftRoutingFields()
 
168
  {
 
169
      var bool = !Eventum.getField('draft_routing[status]').first().is(':checked');
 
170
      if (bool) {
 
171
          var bgcolor = '#CCCCCC';
 
172
      } else {
 
173
          var bgcolor = '#FFFFFF';
 
174
      }
 
175
      Eventum.getField('draft_routing[address_prefix]').attr('disabled', bool).css('backgroundColor', bgcolor);
 
176
      Eventum.getField('draft_routing[address_host]').attr('disabled', bool).css('backgroundColor', bgcolor);
 
177
  }
 
178
  function toggleErrorEmailFields()
 
179
  {
 
180
      var bool = !Eventum.getField('email_error[status]').first().is(':checked');
 
181
      if (bool) {
 
182
          var bgcolor = '#CCCCCC';
 
183
      } else {
 
184
          var bgcolor = '#FFFFFF';
 
185
      }
 
186
      Eventum.getField('email_error[addresses]').attr('disabled', bool).css('backgroundColor', bgcolor);
 
187
  }
 
188
  function toggleReminderEmailFields()
 
189
  {
 
190
      var bool = !Eventum.getField('email_reminder[status]').first().is(':checked');
 
191
      if (bool) {
 
192
          var bgcolor = '#CCCCCC';
 
193
      } else {
 
194
          var bgcolor = '#FFFFFF';
 
195
      }
 
196
      Eventum.getField('email_reminder[addresses]').attr('disabled', bool).css('backgroundColor', bgcolor);
 
197
  }
 
198
 
 
199
$().ready(function() {
 
200
    $('#general_setup_form').submit(validateForm);
 
201
    Eventum.getField('smtp[auth]').change(toggleAuthFields)
 
202
    Eventum.getField('open_signup').change(toggleSignupFields)
 
203
    Eventum.getField('subject_based_routing[status]').change(toggleSubjectBasedRouting)
 
204
    Eventum.getField('email_routing[status]').change(toggleEmailRoutingFields);
 
205
    Eventum.getField('note_routing[status]').change(toggleNoteRoutingFields);
 
206
    Eventum.getField('draft_routing[status]').change(toggleDraftRoutingFields);
 
207
    Eventum.getField('email_reminder[status]').change(toggleReminderEmailFields);
 
208
    Eventum.getField('email_error[status]').change(toggleErrorEmailFields);
 
209
    Eventum.getField('smtp[save_outgoing_email]').change(checkDebugField);
 
210
 
 
211
    toggleAuthFields();
 
212
    checkDebugField();
 
213
    toggleSignupFields();
 
214
    toggleEmailRoutingFields();
 
215
    toggleNoteRoutingFields();
 
216
    toggleDraftRoutingFields();
 
217
    toggleSubjectBasedRouting();
 
218
    toggleReminderEmailFields();
 
219
    toggleErrorEmailFields();
 
220
});
 
221
  //-->
 
222
  </script>
 
223
  {/literal}
 
224
  <form id="general_setup_form" method="post" action="{$smarty.server.PHP_SELF}">
 
225
  <input type="hidden" name="cat" value="update">
 
226
        <table class="bordered">
 
227
          <tr class="title">
 
228
            <th colspan="2">
 
229
              {t}General Setup{/t}
 
230
            </th>
 
231
          </tr>
 
232
          <tr>
 
233
            <th width="120">
 
234
              {t}Tool Caption:{/t}
 
235
            </th>
 
236
            <td>
 
237
              <input type="text" name="tool_caption" size="50" value="{$setup.tool_caption|default:''|escape:"html"}">
 
238
            </td>
 
239
          </tr>
 
240
          <tr>
 
241
            <th width="120">
 
242
              {t}SMTP (Outgoing Email) Settings{/t}
 
243
            </th>
 
244
            <td>
 
245
              <table>
 
246
                <tr>
 
247
                  <td width="100" align="right">
 
248
                    {t}Sender Email{/t}
 
249
                  </td>
 
250
                  <td width="80%">
 
251
                    <input type="text" name="smtp[from]" size="30" value="{$setup.smtp.from|default:''|escape:"html"}">
 
252
                    {include file="error_icon.tpl.html" field="smtp[from]"}
 
253
                    <span>{t 1="eventum@example.com" 2="Eventum <eventum@example.com>"}(This MUST contain a real email address, e.g. "%1" or "%2"){/t}</span>
 
254
                  </td>
 
255
                </tr>
 
256
                <tr>
 
257
                  <td width="100" align="right">
 
258
                    {t}Hostname{/t}
 
259
                  </td>
 
260
                  <td width="80%">
 
261
                    <input type="text" name="smtp[host]" size="30" value="{$setup.smtp.host|default:''|escape:"html"}">
 
262
                    {include file="error_icon.tpl.html" field="smtp[host]"}
 
263
                  </td>
 
264
                </tr>
 
265
                <tr>
 
266
                  <td width="100" align="right">
 
267
                    {t}Port{/t}
 
268
                  </td>
 
269
                  <td width="80%">
 
270
                    <input type="text" name="smtp[port]" size="5" value="{$setup.smtp.port|default:''}">
 
271
                    {include file="error_icon.tpl.html" field="smtp[port]"}
 
272
                  </td>
 
273
                </tr>
 
274
                <tr>
 
275
                  <td width="100" align="right">
 
276
                    {t}Requires Authentication?{/t}
 
277
                  </td>
 
278
                  <td width="80%">
 
279
                    <label>
 
280
                        <input type="radio" name="smtp[auth]" value="1" {if $setup.smtp.auth|default:''}checked{/if}">
 
281
                        {t}Yes{/t}
 
282
                    </label>
 
283
                    <label>
 
284
                        <input type="radio" name="smtp[auth]" value="0" {if not $setup.smtp.auth|default:''}checked{/if}>
 
285
                        {t}No{/t}
 
286
                    </label>
 
287
                  </td>
 
288
                </tr>
 
289
                <tr>
 
290
                  <td width="100" align="right">
 
291
                    {t}Username{/t}
 
292
                  </td>
 
293
                  <td width="80%">
 
294
                    <input type="text" name="smtp[username]" size="20" value="{$setup.smtp.username|default:''|escape:"html"}">
 
295
                    {include file="error_icon.tpl.html" field="smtp[username]"}
 
296
                  </td>
 
297
                </tr>
 
298
                <tr>
 
299
                  <td width="100" align="right">
 
300
                    {t}Password{/t}
 
301
                  </td>
 
302
                  <td width="80%">
 
303
                    <input type="password" name="smtp[password]" size="20" value="{$setup.smtp.password|default:''|escape:"html"}" autocomplete="off">
 
304
                    {include file="error_icon.tpl.html" field="smtp[password]"}
 
305
                  </td>
 
306
                </tr>
 
307
                <tr>
 
308
                  <td colspan="2">
 
309
                    <label>
 
310
                        <input type="checkbox" name="smtp[save_outgoing_email]" value="yes" {if $setup.smtp.save_outgoing_email|default:'' == 'yes'}checked{/if}>
 
311
                        {t}Save a Copy of Every Outgoing Issue Notification Email{/t}
 
312
                    </label>
 
313
                  </td>
 
314
                </tr>
 
315
                <tr>
 
316
                  <td width="100" align="right">
 
317
                    {t}Email Address to Send Saved Messages{/t}
 
318
                  </td>
 
319
                  <td width="80%">
 
320
                    <input type="text" name="smtp[save_address]" size="30" value="{$setup.smtp.save_address|default:''}">
 
321
                    {include file="error_icon.tpl.html" field="smtp[save_address]"}
 
322
                  </td>
 
323
                </tr>
 
324
              </table>
 
325
            </td>
 
326
          </tr>
 
327
          <tr>
 
328
            <th width="120">
 
329
              {t}Open Account Signup{/t}
 
330
            </th>
 
331
            <td>
 
332
              <table>
 
333
                <tr>
 
334
                  <td colspan="2">
 
335
                      <label>
 
336
                        <input type="radio" name="open_signup" value="enabled" {if $setup.open_signup|default:'' == 'enabled'}checked{/if}>
 
337
                        {t}Enabled{/t}
 
338
                      </label>
 
339
                      <label>
 
340
                        <input type="radio" name="open_signup" value="disabled" {if $setup.open_signup|default:'' != 'enabled'}checked{/if}>
 
341
                        {t}Disabled{/t}
 
342
                      </label>
 
343
                  </td>
 
344
                </tr>
 
345
                <tr>
 
346
                  <td width="100" align="right">
 
347
                    {t}Assigned Projects{/t}
 
348
                  </td>
 
349
                  <td width="80%">
 
350
                    <select name="accounts_projects[]" multiple size="3">
 
351
                    {html_options options=$project_list selected=$setup.accounts_projects|default:''}
 
352
                    </select>
 
353
                    {include file="error_icon.tpl.html" field="accounts_projects[]"}
 
354
                  </td>
 
355
                </tr>
 
356
                <tr>
 
357
                  <td width="100" align="right">
 
358
                    {t}Assigned Role{/t}
 
359
                  </td>
 
360
                  <td width="80%">
 
361
                    <select name="accounts_role">
 
362
                    {html_options options=$user_roles selected=$setup.accounts_role|default:''}
 
363
                    </select>
 
364
                    {include file="error_icon.tpl.html" field="accounts_role"}
 
365
                  </td>
 
366
                </tr>
 
367
              </table>
 
368
            </td>
 
369
          </tr>
 
370
          <tr>
 
371
            <th width="120">
 
372
              {t}Subject Based Routing{/t}
 
373
            </th>
 
374
            <td>
 
375
              <table>
 
376
                <tr>
 
377
                  <td>
 
378
                    <label>
 
379
                        <input id="subject_based_routing_enabled" type="radio" name="subject_based_routing[status]" value="enabled"
 
380
                        {if $setup.subject_based_routing.status|default:'' == 'enabled'}checked{/if}>
 
381
                        {t}Enabled{/t}
 
382
                    </label>
 
383
                    <label>
 
384
                        <input id="subject_based_routing_disabled" type="radio" name="subject_based_routing[status]" value="disabled"
 
385
                        {if $setup.subject_based_routing.status|default:'' != 'enabled'}checked{/if}>
 
386
                        {t}Disabled{/t}
 
387
                    </label>
 
388
                    <div>{t}If enabled, Eventum will look in the subject line of incoming notes/emails to determine which issue they should be associated with.{/t}</div>
 
389
                  </td>
 
390
                </tr>
 
391
              </td>
 
392
            </table>
 
393
          </tr>
 
394
          <tr>
 
395
            <th width="120">
 
396
              {t}Email Recipient Type Flag{/t}
 
397
            </th>
 
398
            <td>
 
399
              <table>
 
400
                <tr>
 
401
                  <td width="100" align="right">
 
402
                    {t}Recipient Type Flag{/t}
 
403
                  </td>
 
404
                  <td>
 
405
                    <input type="text" name="email_routing[recipient_type_flag]" value="{$setup.email_routing.recipient_type_flag|default:''|escape:"html"}">
 
406
                    <span>{t}(This will be included in the From address of all emails sent by Eventum){/t}</span>
 
407
                    <div>
 
408
                    <label>
 
409
                        <input type="radio" name="email_routing[flag_location]" value="before"
 
410
                            {if $setup.email_routing.flag_location|default:'' == 'before'}checked{/if}>
 
411
                        {t}Before Sender Name{/t}
 
412
                    </label>
 
413
                    <label>
 
414
                        <input type="radio" name="email_routing[flag_location]" value="after"
 
415
                            {if $setup.email_routing.flag_location|default:'' != 'before'}checked{/if}>
 
416
                        {t}After Sender Name{/t}
 
417
                    </label>
 
418
                    </div>
 
419
                  </td>
 
420
                </tr>
 
421
              </td>
 
422
            </table>
 
423
          </tr>
 
424
          <tr>
 
425
            <th width="120">
 
426
              {t}Email Routing Interface{/t}
 
427
            </th>
 
428
            <td>
 
429
              <table width="100%">
 
430
                <tr>
 
431
                  <td colspan="2">
 
432
                      <label>
 
433
                        <input type="radio" name="email_routing[status]" value="enabled"
 
434
                          {if $setup.email_routing.status|default:'' == 'enabled'}checked{/if}>
 
435
                        {t}Enabled{/t}
 
436
                      </label>
 
437
                      <label>
 
438
                        <input type="radio" name="email_routing[status]" value="disabled"
 
439
                          {if $setup.email_routing.status|default:'' != 'enabled'}checked{/if}>
 
440
                        {t}Disabled{/t}
 
441
                      </label>
 
442
                  </td>
 
443
                </tr>
 
444
                <tr>
 
445
                  <td width="100" align="right">
 
446
                    {t}Email Address Prefix{/t}
 
447
                  </td>
 
448
                  <td width="80%">
 
449
                    <input type="text" name="email_routing[address_prefix]" value="{if $setup.email_routing.address_prefix|default:''}{$setup.email_routing.address_prefix}{else}issue-{/if}">
 
450
                    {include file="error_icon.tpl.html" field="email_routing[address_prefix]"}
 
451
                    <span>{t escape=no 1="<strong>issue-42</strong>@example.com"}(e.g. %1){/t}</span>
 
452
                  </td>
 
453
                </tr>
 
454
                <tr>
 
455
                  <td width="100" align="right">
 
456
                    {t}Address Hostname{/t}
 
457
                  </td>
 
458
                  <td width="80%">
 
459
                    <input type="text" name="email_routing[address_host]" value="{$setup.email_routing.address_host|default:''}">
 
460
                    {include file="error_icon.tpl.html" field="email_routing[address_host]"}
 
461
                    <span>{t escape=no 1="issue-51@<strong>example.com</strong>"}(e.g. %1){/t}</span>
 
462
                  </td>
 
463
                </tr>
 
464
                <tr>
 
465
                  <td width="100" align="right">
 
466
                    {t}Host Alias{/t}
 
467
                  </td>
 
468
                  <td width="80%">
 
469
                    <input type="text" name="email_routing[host_alias]" value="{$setup.email_routing.host_alias|default:''}">
 
470
                    {include file="error_icon.tpl.html" field="email_routing[host_alias]"}
 
471
                    <span>{t}(Alternate domains that point to 'Address Hostname'){/t}</span>
 
472
                  </td>
 
473
                </tr>
 
474
                <tr>
 
475
                  <td width="100" align="right">
 
476
                    {t}Warn Users Whether They Can Send Emails to Issue{/t}
 
477
                  </td>
 
478
                  <td width="80%">
 
479
                    <label>
 
480
                        <input type="radio" name="email_routing[warning][status]" value="enabled"
 
481
                            {if $setup.email_routing.warning.status|default:'' == 'enabled'}checked{/if}>
 
482
                        {t}Yes{/t}
 
483
                    </label>
 
484
                    <label>
 
485
                        <input type="radio" name="email_routing[warning][status]" value="disabled"
 
486
                            {if $setup.email_routing.warning.status|default:'' != 'enabled'}checked{/if}>
 
487
                        {t}No{/t}
 
488
                    </label>
 
489
                  </td>
 
490
                </tr>
 
491
              </table>
 
492
            </td>
 
493
          </tr>
 
494
          <tr>
 
495
            <th width="120">
 
496
              {t}Note Recipient Type Flag{/t}
 
497
            </th>
 
498
            <td>
 
499
              <table>
 
500
                <tr>
 
501
                  <td width="100" align="right">
 
502
                    {t}Recipient Type Flag{/t}
 
503
                  </td>
 
504
                  <td>
 
505
                    <input type="text" name="note_routing[recipient_type_flag]" value="{$setup.note_routing.recipient_type_flag|default:''|escape:"html"}">
 
506
                    <span>{t}(This will be included in the From address of all notes sent by Eventum){/t}</span><br />
 
507
                    <div>
 
508
                        <label>
 
509
                            <input type="radio" name="note_routing[flag_location]" value="before"
 
510
                            {if $setup.note_routing.flag_location|default:'' == 'before'}checked{/if}>
 
511
                            {t}Before Sender Name{/t}
 
512
                        </label>
 
513
                        <label>
 
514
                            <input type="radio" name="note_routing[flag_location]" value="after"
 
515
                            {if $setup.note_routing.flag_location|default:'' != 'before'}checked{/if}>
 
516
                            {t}After Sender Name{/t}
 
517
                        </label>
 
518
                    </div>
 
519
                  </td>
 
520
                </tr>
 
521
              </table>
 
522
            </td>
 
523
          </tr>
 
524
          <tr>
 
525
            <th width="120">
 
526
              {t}Internal Note Routing Interface{/t}
 
527
            </th>
 
528
            <td>
 
529
              <table>
 
530
                <tr>
 
531
                  <td colspan="2">
 
532
                      <label>
 
533
                        <input type="radio" name="note_routing[status]" value="enabled"
 
534
                          {if $setup.note_routing.status|default:'' == 'enabled'}checked{/if}>
 
535
                        {t}Enabled{/t}
 
536
                      </label>
 
537
                      <label>
 
538
                        <input type="radio" name="note_routing[status]" value="disabled"
 
539
                          {if $setup.note_routing.status|default:'' != 'enabled'}checked{/if}>
 
540
                        {t}Disabled{/t}
 
541
                      </label>
 
542
                  </td>
 
543
                </tr>
 
544
                <tr>
 
545
                  <td width="100" align="right">
 
546
                    {t}Note Address Prefix{/t}
 
547
                  </td>
 
548
                  <td width="80%">
 
549
                    <input type="text" name="note_routing[address_prefix]" value="{if $setup.note_routing.address_prefix|default:''}{$setup.note_routing.address_prefix}{else}note-{/if}">
 
550
                    {include file="error_icon.tpl.html" field="note_routing[address_prefix]"}
 
551
                    <span>{t escape=no 1="<strong>note-51</strong>@example.com"}(e.g. %1){/t}</span>
 
552
                  </td>
 
553
                </tr>
 
554
                <tr>
 
555
                  <td width="100" align="right">
 
556
                    {t}Address Hostname{/t}
 
557
                  </td>
 
558
                  <td width="80%">
 
559
                    <input type="text" name="note_routing[address_host]" value="{$setup.note_routing.address_host|default:''}">
 
560
                    {include file="error_icon.tpl.html" field="note_routing[address_host]"}
 
561
                    <span>{t escape=no 1="note-51@<strong>example.com</strong>"}(e.g. %1){/t}</span>
 
562
                  </td>
 
563
                </tr>
 
564
              </table>
 
565
            </td>
 
566
          </tr>
 
567
          <tr>
 
568
            <th width="120">
 
569
              {t}Email Draft Interface{/t}
 
570
            </th>
 
571
            <td>
 
572
              <table>
 
573
                <tr>
 
574
                  <td colspan="2">
 
575
                      <label>
 
576
                        <input type="radio" name="draft_routing[status]" value="enabled"
 
577
                          {if $setup.draft_routing.status|default:'' == 'enabled'}checked{/if}>
 
578
                        {t}Enabled{/t}
 
579
                      </label>
 
580
                      <label>
 
581
                        <input type="radio" name="draft_routing[status]" value="disabled"
 
582
                          {if $setup.draft_routing.status|default:'' != 'enabled'}checked{/if}>
 
583
                        {t}Disabled{/t}
 
584
                      </label>
 
585
                  </td>
 
586
                </tr>
 
587
                <tr>
 
588
                  <td width="100" align="right">
 
589
                    {t}Draft Address Prefix{/t}
 
590
                  </td>
 
591
                  <td width="80%">
 
592
                    <input type="text" name="draft_routing[address_prefix]" value="{if $setup.draft_routing.address_prefix|default:''}{$setup.draft_routing.address_prefix}{else}draft-{/if}">
 
593
                    {include file="error_icon.tpl.html" field="draft_routing[address_prefix]"}
 
594
                    <span>{t escape=no 1="<strong>draft-51</strong>@example.com"}(e.g. %1){/t}</span>
 
595
                  </td>
 
596
                </tr>
 
597
                <tr>
 
598
                  <td width="100" align="right">
 
599
                    {t}Address Hostname{/t}
 
600
                  </td>
 
601
                  <td width="80%">
 
602
                    <input type="text" name="draft_routing[address_host]" value="{$setup.draft_routing.address_host|default:''}">
 
603
                    {include file="error_icon.tpl.html" field="draft_routing[address_host]"}
 
604
                    <span>{t escape=no 1="draft-51@<strong>example.com</strong>"}(e.g. %1){/t}</span>
 
605
                  </td>
 
606
                </tr>
 
607
              </table>
 
608
            </td>
 
609
          </tr>
 
610
          <tr>
 
611
            <th width="120">
 
612
              {t}Email Integration Feature{/t}
 
613
            </th>
 
614
            <td>
 
615
              <label>
 
616
                <input type="radio" name="support_email" value="enabled" {if $setup.support_email|default:'' == 'enabled'}checked{/if}>
 
617
                {t}Enabled{/t}
 
618
              </label>
 
619
              <label>
 
620
                <input type="radio" name="support_email" value="disabled" {if $setup.support_email|default:'' != 'enabled'}checked{/if}>
 
621
                {t}Disabled{/t}
 
622
              </label>
 
623
            </td>
 
624
          </tr>
 
625
          <tr>
 
626
            <th width="120">
 
627
              {t}Daily Tips{/t}
 
628
            </th>
 
629
            <td>
 
630
              <label>
 
631
                <input type="radio" name="daily_tips" value="enabled" {if $setup.daily_tips|default:'' == 'enabled'}checked{/if}>
 
632
                {t}Enabled{/t}
 
633
              </label>
 
634
              <label>
 
635
                <input type="radio" name="daily_tips" value="disabled" {if $setup.daily_tips|default:'' != 'enabled'}checked{/if}>
 
636
                {t}Disabled{/t}
 
637
              </label>
 
638
            </td>
 
639
          </tr>
 
640
          <tr>
 
641
            <th width="120">
 
642
              {t}Email Spell Checker{/t}
 
643
            </th>
 
644
            <td>
 
645
                <label>
 
646
                    <input type="radio" name="spell_checker" value="enabled" {if $setup.spell_checker|default:'' == 'enabled'}checked{/if}>
 
647
                    {t}Enabled{/t}
 
648
                </label>
 
649
                <label>
 
650
                    <input type="radio" name="spell_checker" value="disabled" {if $setup.spell_checker|default:'' != 'enabled'}checked{/if}>
 
651
                    {t}Disabled{/t}
 
652
                </label>
 
653
 
 
654
              <span>{t escape=no 1='<a target="_blank" href="http://aspell.sourceforge.net/">aspell</a>'}(requires %1 installed in your server){/t}</span>
 
655
            </td>
 
656
          </tr>
 
657
          <tr>
 
658
            <th width="120">
 
659
              {t}IRC Notifications{/t}
 
660
            </th>
 
661
            <td>
 
662
                <label>
 
663
                    <input type="radio" name="irc_notification" value="enabled" {if $setup.irc_notification|default:'' == 'enabled'}checked{/if}>
 
664
                    {t}Enabled{/t}
 
665
                </label>
 
666
                <label>
 
667
                    <input type="radio" name="irc_notification" value="disabled" {if $setup.irc_notification|default:'' != 'enabled'}checked{/if}>
 
668
                    {t}Disabled{/t}
 
669
                </label>
 
670
            </td>
 
671
          </tr>
 
672
          <tr>
 
673
            <th width="120">
 
674
              {t}Allow Un-Assigned Issues?{/t}
 
675
            </th>
 
676
            <td>
 
677
                <label>
 
678
                    <input type="radio" name="allow_unassigned_issues" value="yes" {if $setup.allow_unassigned_issues|default:'' == 'yes'}checked{/if}>
 
679
                    {t}Yes{/t}
 
680
                </label>
 
681
                <label>
 
682
                    <input type="radio" name="allow_unassigned_issues" value="no" {if $setup.allow_unassigned_issues|default:'' != 'yes'}checked{/if}>
 
683
                    {t}No{/t}
 
684
                </label>
 
685
            </td>
 
686
          </tr>
 
687
          <tr>
 
688
            <th width="120">
 
689
              {t}Default Options for Notifications{/t}
 
690
            </th>
 
691
            <td>
 
692
              <label><input type="checkbox" name="update" {if $setup.update|default:''}checked{/if} value="1"> {t}Issues are Updated{/t}</label><br />
 
693
              <label><input type="checkbox" name="closed" {if $setup.closed|default:''}checked{/if} value="1"> {t}Issues are Closed{/t}</label><br />
 
694
              <label><input type="checkbox" name="emails" {if $setup.emails|default:''}checked{/if} value="1"> {t}Emails are Associated{/t}</label><br />
 
695
              <label><input type="checkbox" name="files" {if $setup.files|default:''}checked{/if} value="1"> {t}Files are Attached{/t}</label>
 
696
            </td>
 
697
          </tr>
 
698
          <tr>
 
699
            <th width="120">
 
700
              {t}Email Reminder System Status Information{/t}
 
701
            </th>
 
702
            <td>
 
703
              <table>
 
704
                <tr>
 
705
                  <td colspan="2">
 
706
                      <label>
 
707
                        <input type="radio" name="email_reminder[status]" value="enabled"
 
708
                          {if $setup.email_reminder.status|default:'' == 'enabled'}checked{/if}>
 
709
                        {t}Enabled{/t}
 
710
                      </label>
 
711
                      <label>
 
712
                        <input type="radio" name="email_reminder[status]" value="disabled"
 
713
                          {if $setup.email_reminder.status|default:'' != 'enabled'}checked{/if}>
 
714
                        {t}Disabled{/t}
 
715
                      </label>
 
716
                  </td>
 
717
                </tr>
 
718
                <tr>
 
719
                  <td width="100" align="right">
 
720
                    {t}Email Addresses To Send Information To{/t}
 
721
                  </td>
 
722
                  <td width="80%">
 
723
                    <input type="text" name="email_reminder[addresses]" value="{$setup.email_reminder.addresses|default:''|escape:"html"}" size="50">
 
724
                    <span>{t}(separate multiple addresses with commas){/t}</span>
 
725
                  </td>
 
726
                </tr>
 
727
              </table>
 
728
            </td>
 
729
          </tr>
 
730
          <tr>
 
731
            <th width="120">
 
732
              {t}Email Error Logging System{/t}
 
733
            </th>
 
734
            <td>
 
735
              <table>
 
736
                <tr>
 
737
                  <td colspan="2">
 
738
                      <label>
 
739
                        <input type="radio" name="email_error[status]" value="enabled"
 
740
                            {if $setup.email_error.status|default:'' == 'enabled'}checked{/if}>
 
741
                        {t}Enabled{/t}
 
742
                      </label>
 
743
                      <label>
 
744
                        <input type="radio" name="email_error[status]" value="disabled"
 
745
                            {if $setup.email_error.status|default:'' != 'enabled'}checked{/if}>
 
746
                        {t}Disabled{/t}
 
747
                      </label>
 
748
                  </td>
 
749
                </tr>
 
750
                <tr>
 
751
                  <td width="100" align="right">
 
752
                    {t}Email Addresses To Send Errors To{/t}
 
753
                  </td>
 
754
                  <td width="80%">
 
755
                    <input type="text" name="email_error[addresses]" value="{$setup.email_error.addresses|default:''|escape:"html"}" size="50">
 
756
                    <span>{t}(separate multiple addresses with commas){/t}</span>
 
757
                  </td>
 
758
                </tr>
 
759
              </table>
 
760
            </td>
 
761
          </tr>
 
762
          <tr class="buttons">
 
763
            <td colspan="2">
 
764
              <input type="submit" value="{t}Update Setup{/t}">
 
765
              <input type="reset" value="{t}Reset{/t}">
 
766
            </td>
 
767
          </tr>
 
768
        </table>
 
769
  </form>
 
770
{/block}
 
 
b'\\ No newline at end of file'