| 1 |
<div class="acym__content cell grid-x large-6 margin-bottom-1 margin-y"> |
| 2 |
<span class="acym__content__title__light-blue"><?php echo acym_translation('ACYM_CONFIGURATION'); ?></span> |
| 3 |
<label class="cell grid-x"> |
| 4 |
<span class="cell medium-4"><?php echo acym_translation('ACYM_SMTP_SERVER'); ?></span> |
| 5 |
<input class="cell medium-6" type="text" name="mailbox[server]" value="<?php echo acym_escape($data['mailboxActions']->server); ?>"> |
| 6 |
</label> |
| 7 |
<label class="cell grid-x"> |
| 8 |
<span class="cell medium-4"><?php echo acym_translation('ACYM_SMTP_USERNAME'); ?></span> |
| 9 |
<input class="cell medium-6" type="text" name="mailbox[username]" value="<?php echo acym_escape($data['mailboxActions']->username); ?>"> |
| 10 |
</label> |
| 11 |
<label class="cell grid-x"> |
| 12 |
<span class="cell medium-4"><?php echo acym_translation('ACYM_SMTP_PASSWORD'); ?></span> |
| 13 |
<input class="cell medium-6" type="text" name="mailbox[password]" value="<?php echo str_repeat('*', strlen($data['mailboxActions']->password)); ?>"> |
| 14 |
</label> |
| 15 |
<div class="cell grid-x"> |
| 16 |
<label class="cell medium-4"><?php echo acym_translation('ACYM_CONNECTION_METHOD').acym_info(['textShownInTooltip' => 'ACYM_CONNECTION_METHOD_DESC']); ?></label> |
| 17 |
<div class="cell medium-6"> |
| 18 |
<?php |
| 19 |
echo acym_select( |
| 20 |
[ |
| 21 |
'' => '---', |
| 22 |
'imap' => 'IMAP ('.acym_translation('ACYM_RECOMMENDED').')', |
| 23 |
'pop3' => 'POP3', |
| 24 |
'pear' => 'POP3 ('.acym_translation('ACYM_WITHOUT_IMAP_EXT').')', |
| 25 |
], |
| 26 |
'mailbox[connection_method]', |
| 27 |
$data['mailboxActions']->connection_method, |
| 28 |
[ |
| 29 |
'class' => 'acym__select', |
| 30 |
'acym-data-infinite' => '', |
| 31 |
] |
| 32 |
); |
| 33 |
?> |
| 34 |
</div> |
| 35 |
</div> |
| 36 |
<div class="cell grid-x"> |
| 37 |
<label class="cell medium-4"><?php echo acym_translation('ACYM_SMTP_SECURE'); ?></label> |
| 38 |
<div class="cell medium-6"> |
| 39 |
<?php |
| 40 |
echo acym_select( |
| 41 |
[ |
| 42 |
'' => '---', |
| 43 |
'ssl' => 'SSL', |
| 44 |
'tls' => 'TLS', |
| 45 |
], |
| 46 |
'mailbox[secure_method]', |
| 47 |
$data['mailboxActions']->secure_method, |
| 48 |
[ |
| 49 |
'class' => 'acym__select', |
| 50 |
'acym-data-infinite' => '', |
| 51 |
] |
| 52 |
); |
| 53 |
?> |
| 54 |
</div> |
| 55 |
</div> |
| 56 |
<label class="cell grid-x"> |
| 57 |
<span class="cell medium-4"><?php echo acym_translation('ACYM_SMTP_PORT').acym_info(['textShownInTooltip' => 'ACYM_BOUNCE_PORT_DESC']); ?></span> |
| 58 |
<input class="cell medium-6" |
| 59 |
type="number" |
| 60 |
name="mailbox[port]" |
| 61 |
value="<?php echo acym_escape($data['mailboxActions']->port); ?>"> |
| 62 |
</label> |
| 63 |
<div class="cell grid-x"> |
| 64 |
<?php |
| 65 |
echo acym_switch( |
| 66 |
'mailbox[self_signed]', |
| 67 |
$data['mailboxActions']->self_signed, |
| 68 |
acym_translation('ACYM_SELF_SIGNED_CERTIFICATE'), |
| 69 |
[], |
| 70 |
'small-9 medium-4' |
| 71 |
); |
| 72 |
?> |
| 73 |
</div> |
| 74 |
<div class="cell grid-x acym__mailbox__edition__configuration__test"> |
| 75 |
<button type="button" |
| 76 |
data-task="testMailboxAction" |
| 77 |
class="button button-secondary cell medium-4 large-shrink margin-bottom-0" |
| 78 |
id="acym__mailbox__edition__configuration__test-test"> |
| 79 |
<?php echo acym_translation('ACYM_TEST_CONNECTION'); ?> |
| 80 |
</button> |
| 81 |
<i class="acymicon-spin acymicon-circle-o-notch acym_vcenter cell shrink margin-left-1" id="acym__mailbox__edition__configuration__test-loader"></i> |
| 82 |
<i class="cell shrink acym_vcenter margin-left-1" id="acym__mailbox__edition__configuration__test-result"></i> |
| 83 |
<i class="acymicon-check-circle acym__color__green acymicon-times-circle acym__color__red cell shrink acym_vcenter" |
| 84 |
id="acym__mailbox__edition__configuration__test-icon"></i> |
| 85 |
</div> |
| 86 |
</div> |
| 87 |
|