Added 'email' field type

This commit is contained in:
Luke Towers 2019-10-06 16:15:29 -06:00
parent ad35d83323
commit 17f3c6f74b
3 changed files with 16 additions and 0 deletions

View File

@ -24,6 +24,7 @@ tabs:
email:
span: right
type: email
label: backend::lang.user.email
send_invite:

View File

@ -0,0 +1,14 @@
<!-- Email -->
<?php if ($this->previewMode): ?>
<span class="form-control"><?= $field->value ? e($field->value) : '&nbsp;' ?></span>
<?php else: ?>
<input
type="email"
name="<?= $field->getName() ?>"
id="<?= $field->getId() ?>"
value="<?= e($field->value) ?>"
placeholder="<?= e(trans($field->placeholder)) ?>"
class="form-control"
<?= $field->getAttributes() ?>
/>
<?php endif ?>

View File

@ -13,6 +13,7 @@ tabs:
sender_email:
label: system::lang.mail.sender_email
span: auto
type: email
tab: system::lang.mail.general
send_mode: