Added SMTP disabled message
This commit is contained in:
parent
ba627afb6b
commit
0a99755a8e
|
@ -144,6 +144,7 @@ App::get('/console/settings')
|
||||||
$page
|
$page
|
||||||
->setParam('customDomainsEnabled', ($target->isKnown() && !$target->isTest()))
|
->setParam('customDomainsEnabled', ($target->isKnown() && !$target->isTest()))
|
||||||
->setParam('customDomainsTarget', $target->get())
|
->setParam('customDomainsTarget', $target->get())
|
||||||
|
->setParam('smtpEnabled', (!empty(App::getEnv('_APP_SMTP_HOST'))))
|
||||||
;
|
;
|
||||||
|
|
||||||
$layout
|
$layout
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
$customDomainsEnabled = $this->getParam('customDomainsEnabled', false);
|
$customDomainsEnabled = $this->getParam('customDomainsEnabled', false);
|
||||||
$customDomainsTarget = $this->getParam('customDomainsTarget', false);
|
$customDomainsTarget = $this->getParam('customDomainsTarget', false);
|
||||||
|
$smtpEnabled = $this->getParam('smtpEnabled', false);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="cover">
|
<div class="cover">
|
||||||
|
@ -506,10 +507,16 @@ $customDomainsTarget = $this->getParam('customDomainsTarget', false);
|
||||||
<option data-ls-attrs="value={{role.type}}" data-ls-bind="{{role.label}}"></option>
|
<option data-ls-attrs="value={{role.type}}" data-ls-bind="{{role.label}}"></option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<?php if(!$smtpEnabled): ?>
|
||||||
|
<div class="box note padding-tiny warning margin-bottom text-align-center">
|
||||||
|
<i class="icon-warning"></i> SMTP connection is disabled. <a href="https://appwrite.io/docs/email-delivery" target="_blank" rel="noopener">Learn more <i class="icon-link-ext"></i></a>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<div class="clear">
|
<div class="clear">
|
||||||
<button>Send Invite</button>
|
<button<?php if(!$smtpEnabled): ?> disabled<?php endif; ?>>Send Invite</button>
|
||||||
<button data-ui-modal-close="" type="button" class="reverse">Cancel</button>
|
<button data-ui-modal-close="" type="button" class="reverse">Cancel</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
2
public/dist/styles/default-ltr.css
vendored
2
public/dist/styles/default-ltr.css
vendored
File diff suppressed because one or more lines are too long
2
public/dist/styles/default-rtl.css
vendored
2
public/dist/styles/default-rtl.css
vendored
File diff suppressed because one or more lines are too long
|
@ -7,6 +7,14 @@
|
||||||
display: block;
|
display: block;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
|
|
||||||
|
&.padding-tiny {
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.padding-xs {
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
&.padding-small {
|
&.padding-small {
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
}
|
}
|
||||||
|
@ -53,7 +61,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&.warning {
|
&.warning {
|
||||||
background: var(--config-color-success);
|
background: var(--config-color-warning);
|
||||||
color: #2d2d2d;
|
color: #2d2d2d;
|
||||||
|
|
||||||
button,
|
button,
|
||||||
|
|
|
@ -53,6 +53,14 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.padding-tiny {
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.padding-xs {
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
&.padding-small {
|
&.padding-small {
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
--config-color-fade-super: #f1f3f5;
|
--config-color-fade-super: #f1f3f5;
|
||||||
--config-color-danger: #f53d3d;
|
--config-color-danger: #f53d3d;
|
||||||
--config-color-success: #1bbf61;
|
--config-color-success: #1bbf61;
|
||||||
--config-color-warning: #ffed4d;
|
--config-color-warning: #fffbdd;
|
||||||
--config-color-info: #386fd2;
|
--config-color-info: #386fd2;
|
||||||
--config-border-color: #f3f3f3;
|
--config-border-color: #f3f3f3;
|
||||||
--config-border-fade: #e0e3e4;
|
--config-border-fade: #e0e3e4;
|
||||||
|
|
Loading…
Reference in a new issue