Add a note about October.Drivers for mail methods that use it
Trim field partials to allow :empty selector to work
This commit is contained in:
parent
c1a9cbb2f2
commit
78cf62cff1
|
|
@ -1606,6 +1606,7 @@ ul.status-list li span.status.info{background:#5bc0de}
|
||||||
.callout > .content .action-panel{padding:10px 0 0 0}
|
.callout > .content .action-panel{padding:10px 0 0 0}
|
||||||
.callout.no-icon > .header h3,.callout.no-icon > .header p{margin-left:0}
|
.callout.no-icon > .header h3,.callout.no-icon > .header p{margin-left:0}
|
||||||
.callout.no-subheader > .header i{margin-top:-5px}
|
.callout.no-subheader > .header i{margin-top:-5px}
|
||||||
|
.form-group > .callout{margin-bottom:0}
|
||||||
.control-toolbar{font-size:0;padding:0 0 20px 0;position:relative}
|
.control-toolbar{font-size:0;padding:0 0 20px 0;position:relative}
|
||||||
.control-toolbar:after,.control-toolbar:before{display:none;position:absolute;top:50%;margin-top:-7px;height:9px;font-size:10px;color:#bbbbbb}
|
.control-toolbar:after,.control-toolbar:before{display:none;position:absolute;top:50%;margin-top:-7px;height:9px;font-size:10px;color:#bbbbbb}
|
||||||
.control-toolbar:before{left:-6px;font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;content:"\f104"}
|
.control-toolbar:before{left:-6px;font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;content:"\f104"}
|
||||||
|
|
|
||||||
|
|
@ -3896,8 +3896,9 @@ $el.on('oc.triggerOn.update',function(e){e.stopPropagation()
|
||||||
self.onConditionChanged()})
|
self.onConditionChanged()})
|
||||||
self.onConditionChanged()}
|
self.onConditionChanged()}
|
||||||
TriggerOn.prototype.onConditionChanged=function(){if(this.triggerCondition=='checked'){this.updateTarget($(this.options.trigger+':checked',this.triggerParent).length>0)}
|
TriggerOn.prototype.onConditionChanged=function(){if(this.triggerCondition=='checked'){this.updateTarget($(this.options.trigger+':checked',this.triggerParent).length>0)}
|
||||||
else if(this.triggerCondition=='value'){var trigger=$(this.options.trigger+':checked',this.triggerParent);if(trigger.length){this.updateTarget(trigger.val()==this.triggerConditionValue)}
|
else if(this.triggerCondition=='value'){console.log(this.triggerConditionValue)
|
||||||
else{this.updateTarget($(this.options.trigger,this.triggerParent).val()==this.triggerConditionValue)}}}
|
var trigger=$(this.options.trigger+':checked',this.triggerParent),needle=trigger.length?trigger.val():$(this.options.trigger,this.triggerParent).val()
|
||||||
|
this.updateTarget($.inArray(needle,this.triggerConditionValue)!=-1)}}
|
||||||
TriggerOn.prototype.updateTarget=function(status){if(this.options.triggerAction=='show')
|
TriggerOn.prototype.updateTarget=function(status){if(this.options.triggerAction=='show')
|
||||||
this.$el.toggleClass('hide',!status).trigger('hide.oc.triggerapi',[!status])
|
this.$el.toggleClass('hide',!status).trigger('hide.oc.triggerapi',[!status])
|
||||||
else if(this.options.triggerAction=='hide')
|
else if(this.options.triggerAction=='hide')
|
||||||
|
|
|
||||||
|
|
@ -1,135 +0,0 @@
|
||||||
//
|
|
||||||
// Callouts
|
|
||||||
// --------------------------------------------------
|
|
||||||
|
|
||||||
.callout {
|
|
||||||
font-size: 14px;
|
|
||||||
margin-bottom: @line-height-computed;
|
|
||||||
|
|
||||||
&.fade {
|
|
||||||
.opacity(0);
|
|
||||||
.transition(~'all 0.5s, width 0s');
|
|
||||||
.transform(~'scale(0.9)');
|
|
||||||
}
|
|
||||||
|
|
||||||
&.fade.in {
|
|
||||||
.opacity(1);
|
|
||||||
.transform( ~'scale(1)');
|
|
||||||
}
|
|
||||||
|
|
||||||
> .close {
|
|
||||||
margin: 15px 15px 0 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.callout-danger {
|
|
||||||
> .header {
|
|
||||||
background: @callout-danger-header-bg;
|
|
||||||
i { color: @callout-danger-icon; }
|
|
||||||
}
|
|
||||||
> .content { background: @callout-danger-content-bg; }
|
|
||||||
}
|
|
||||||
|
|
||||||
&.callout-info {
|
|
||||||
> .header {
|
|
||||||
background: @callout-info-header-bg;
|
|
||||||
i { color: @callout-info-icon; }
|
|
||||||
}
|
|
||||||
> .content { background: @callout-info-content-bg; }
|
|
||||||
}
|
|
||||||
|
|
||||||
&.callout-success {
|
|
||||||
> .header {
|
|
||||||
background: @callout-success-header-bg;
|
|
||||||
i { color: @callout-success-icon; }
|
|
||||||
}
|
|
||||||
> .content { background: @callout-success-content-bg; }
|
|
||||||
}
|
|
||||||
|
|
||||||
&.callout-warning {
|
|
||||||
> .header {
|
|
||||||
background: @callout-warning-header-bg;
|
|
||||||
i { color: @callout-warning-icon; }
|
|
||||||
}
|
|
||||||
> .content { background: @callout-warning-content-bg; }
|
|
||||||
}
|
|
||||||
|
|
||||||
> .header {
|
|
||||||
padding: @callout-padding;
|
|
||||||
padding-bottom: 15px;
|
|
||||||
.border-radius(4px 4px 0 0);
|
|
||||||
color: #2f2d26;
|
|
||||||
|
|
||||||
h3 {
|
|
||||||
letter-spacing: 0;
|
|
||||||
margin: 0 0 7px 0;
|
|
||||||
font-size: 14px;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
h3, p {
|
|
||||||
margin-left: 35px;
|
|
||||||
}
|
|
||||||
|
|
||||||
*:last-child {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:last-child {
|
|
||||||
.border-radius(4px);
|
|
||||||
}
|
|
||||||
|
|
||||||
i {
|
|
||||||
font-size: 26px;
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
> .content {
|
|
||||||
color: #2f2d26;
|
|
||||||
padding: 16px 20px 15px;
|
|
||||||
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
|
||||||
color: #2f2d26;
|
|
||||||
text-transform: none;
|
|
||||||
margin: 20px 0 5px 0;
|
|
||||||
line-height: 150%;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 { font-size: 30px; }
|
|
||||||
h2 { font-size: 26px; }
|
|
||||||
h3 { font-size: 24px; }
|
|
||||||
h4 { font-size: 20px; }
|
|
||||||
h5 { font-size: 18px; }
|
|
||||||
h6 { font-size: 16px; }
|
|
||||||
|
|
||||||
*:last-child {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul, ol {
|
|
||||||
li {
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.action-panel {
|
|
||||||
padding: 10px 0 0 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&.no-icon {
|
|
||||||
> .header {
|
|
||||||
h3, p {
|
|
||||||
margin-left: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&.no-subheader {
|
|
||||||
> .header {
|
|
||||||
i {
|
|
||||||
margin-top: -5px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -11,7 +11,6 @@ tabs:
|
||||||
commentAbove: backend::lang.branding.logo_description
|
commentAbove: backend::lang.branding.logo_description
|
||||||
mode: image
|
mode: image
|
||||||
imageHeight: 170
|
imageHeight: 170
|
||||||
imageWidth: 340
|
|
||||||
tab: backend::lang.branding.brand
|
tab: backend::lang.branding.brand
|
||||||
|
|
||||||
app_name:
|
app_name:
|
||||||
|
|
|
||||||
|
|
@ -5,5 +5,5 @@
|
||||||
<?= $field->getAttributes('container') ?>
|
<?= $field->getAttributes('container') ?>
|
||||||
id="<?= $field->getId('group') ?>"><?=
|
id="<?= $field->getId('group') ?>"><?=
|
||||||
/* Must be on the same line for :empty selector */
|
/* Must be on the same line for :empty selector */
|
||||||
$this->makePartial('field', ['field' => $field])
|
trim($this->makePartial('field', ['field' => $field]))
|
||||||
?></div>
|
?></div>
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
<!-- Hint -->
|
|
||||||
<?= $this->controller->makeHintPartial($field->getId(), $field->path ?: $field->fieldName, [
|
<?= $this->controller->makeHintPartial($field->getId(), $field->path ?: $field->fieldName, [
|
||||||
'formModel' => $formModel,
|
'formModel' => $formModel,
|
||||||
'formField' => $field,
|
'formField' => $field,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
<!-- Partial -->
|
|
||||||
<?= $this->controller->makePartial($field->path ?: $field->fieldName, [
|
<?= $this->controller->makePartial($field->path ?: $field->fieldName, [
|
||||||
'formModel' => $formModel,
|
'formModel' => $formModel,
|
||||||
'formField' => $field,
|
'formField' => $field,
|
||||||
|
|
|
||||||
|
|
@ -154,4 +154,8 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group > .callout {
|
||||||
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
@ -128,29 +128,31 @@ return [
|
||||||
'menu_label' => 'Mail configuration',
|
'menu_label' => 'Mail configuration',
|
||||||
'menu_description' => 'Manage email configuration.',
|
'menu_description' => 'Manage email configuration.',
|
||||||
'general' => 'General',
|
'general' => 'General',
|
||||||
'method' => 'Mail Method',
|
'method' => 'Mail method',
|
||||||
'sender_name' => 'Sender Name',
|
'sender_name' => 'Sender name',
|
||||||
'sender_email' => 'Sender Email',
|
'sender_email' => 'Sender email',
|
||||||
'php_mail' => 'PHP mail',
|
'php_mail' => 'PHP mail',
|
||||||
'smtp' => 'SMTP',
|
'smtp' => 'SMTP',
|
||||||
'smtp_address' => 'SMTP Address',
|
'smtp_address' => 'SMTP address',
|
||||||
'smtp_authorization' => 'SMTP authorization required',
|
'smtp_authorization' => 'SMTP authorization required',
|
||||||
'smtp_authorization_comment' => 'Use this checkbox if your SMTP server requires authorization.',
|
'smtp_authorization_comment' => 'Use this checkbox if your SMTP server requires authorization.',
|
||||||
'smtp_username' => 'Username',
|
'smtp_username' => 'Username',
|
||||||
'smtp_password' => 'Password',
|
'smtp_password' => 'Password',
|
||||||
'smtp_port' => 'SMTP Port',
|
'smtp_port' => 'SMTP port',
|
||||||
'smtp_ssl' => 'SSL connection required',
|
'smtp_ssl' => 'SSL connection required',
|
||||||
'sendmail' => 'Sendmail',
|
'sendmail' => 'Sendmail',
|
||||||
'sendmail_path' => 'Sendmail Path',
|
'sendmail_path' => 'Sendmail path',
|
||||||
'sendmail_path_comment' => 'Please specify the path of the sendmail program.',
|
'sendmail_path_comment' => 'Please specify the path of the sendmail program.',
|
||||||
'mailgun' => 'Mailgun',
|
'mailgun' => 'Mailgun',
|
||||||
'mailgun_domain' => 'Mailgun Domain',
|
'mailgun_domain' => 'Mailgun domain',
|
||||||
'mailgun_domain_comment' => 'Please specify the Mailgun domain name.',
|
'mailgun_domain_comment' => 'Please specify the Mailgun domain name.',
|
||||||
'mailgun_secret' => 'Mailgun Secret',
|
'mailgun_secret' => 'Mailgun secret',
|
||||||
'mailgun_secret_comment' => 'Enter your Mailgun API key.',
|
'mailgun_secret_comment' => 'Enter your Mailgun API key.',
|
||||||
'mandrill' => 'Mandrill',
|
'mandrill' => 'Mandrill',
|
||||||
'mandrill_secret' => 'Mandrill Secret',
|
'mandrill_secret' => 'Mandrill secret',
|
||||||
'mandrill_secret_comment' => 'Enter your Mandrill API key.'
|
'mandrill_secret_comment' => 'Enter your Mandrill API key.',
|
||||||
|
'drivers_hint_header' => 'Drivers not installed',
|
||||||
|
'drivers_hint_content' => 'This mail method requires the plugin ":plugin" be installed before you can send mail.'
|
||||||
],
|
],
|
||||||
'mail_templates' => [
|
'mail_templates' => [
|
||||||
'menu_label' => 'Mail templates',
|
'menu_label' => 'Mail templates',
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
<?php if (!System\Classes\PluginManager::instance()->hasPlugin('October.Drivers')): ?>
|
||||||
|
<div class="callout callout-warning fade in no-subheader">
|
||||||
|
<div class="header">
|
||||||
|
<i class="icon-exclamation-circle"></i>
|
||||||
|
<h3><?= e(trans('system::lang.mail.drivers_hint_header')) ?></h3>
|
||||||
|
</div>
|
||||||
|
<div class="content">
|
||||||
|
<p><?= e(trans('system::lang.mail.drivers_hint_content', ['plugin' => 'October.Drivers'])) ?></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php endif ?>
|
||||||
|
|
@ -20,6 +20,15 @@ tabs:
|
||||||
type: dropdown
|
type: dropdown
|
||||||
tab: system::lang.mail.general
|
tab: system::lang.mail.general
|
||||||
|
|
||||||
|
drivers_hint:
|
||||||
|
type: partial
|
||||||
|
path: ~/modules/system/models/mailsettings/_drivers_hint.htm
|
||||||
|
tab: system::lang.mail.general
|
||||||
|
trigger:
|
||||||
|
action: show
|
||||||
|
field: send_mode
|
||||||
|
condition: value[mandrill][mailgun]
|
||||||
|
|
||||||
smtp_address:
|
smtp_address:
|
||||||
label: system::lang.mail.smtp_address
|
label: system::lang.mail.smtp_address
|
||||||
tab: system::lang.mail.general
|
tab: system::lang.mail.general
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue