diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-12-16 09:08:38 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-12-16 09:10:22 +0100 |
commit | 3b61f76ca0eb9ad9487fa2ab64dda97e51f9df57 (patch) | |
tree | 2eede9268660f3b32646ae375e37cd542d4f36a2 /settings/templates | |
parent | 5b9c453071fe900529cd26b88fbc681d8b153b43 (diff) | |
download | nextcloud-server-3b61f76ca0eb9ad9487fa2ab64dda97e51f9df57.tar.gz nextcloud-server-3b61f76ca0eb9ad9487fa2ab64dda97e51f9df57.zip |
Send mail for new users
* supply mail address
* send mail with username and URL to that mail address
* option to temporary enable this feature
Diffstat (limited to 'settings/templates')
-rw-r--r-- | settings/templates/email.new_user.php | 36 | ||||
-rw-r--r-- | settings/templates/email.new_user_plain_text.php | 10 | ||||
-rw-r--r-- | settings/templates/users/main.php | 6 | ||||
-rw-r--r-- | settings/templates/users/part.createuser.php | 3 |
4 files changed, 55 insertions, 0 deletions
diff --git a/settings/templates/email.new_user.php b/settings/templates/email.new_user.php new file mode 100644 index 00000000000..74149632cb8 --- /dev/null +++ b/settings/templates/email.new_user.php @@ -0,0 +1,36 @@ +<table cellspacing="0" cellpadding="0" border="0" width="100%"> + <tr><td> + <table cellspacing="0" cellpadding="0" border="0" width="600px"> + <tr> + <td bgcolor="<?php p($theme->getMailHeaderColor());?>" width="20px"> </td> + <td bgcolor="<?php p($theme->getMailHeaderColor());?>"> + <img src="<?php p(OC_Helper::makeURLAbsolute(image_path('', 'logo-mail.gif'))); ?>" alt="<?php p($theme->getName()); ?>"/> + </td> + </tr> + <tr><td colspan="2"> </td></tr> + <tr> + <td width="20px"> </td> + <td style="font-weight:normal; font-size:0.8em; line-height:1.2em; font-family:verdana,'arial',sans;"> + <?php + print_unescaped($l->t('Hey there,<br><br>just letting you know that you now have an %s account.<br><br>Your username: %s<br>Access it: <a href="%s">%s</a><br><br>', array($theme->getName(), $_['username'], $_['url'], $_['url']))); + + // TRANSLATORS term at the end of a mail + p($l->t('Cheers!')); + ?> + </td> + </tr> + <tr><td colspan="2"> </td></tr> + <tr> + <td width="20px"> </td> + <td style="font-weight:normal; font-size:0.8em; line-height:1.2em; font-family:verdana,'arial',sans;">--<br> + <?php p($theme->getName()); ?> - + <?php p($theme->getSlogan()); ?> + <br><a href="<?php p($theme->getBaseUrl()); ?>"><?php p($theme->getBaseUrl());?></a> + </td> + </tr> + <tr> + <td colspan="2"> </td> + </tr> + </table> + </td></tr> +</table> diff --git a/settings/templates/email.new_user_plain_text.php b/settings/templates/email.new_user_plain_text.php new file mode 100644 index 00000000000..79559a87020 --- /dev/null +++ b/settings/templates/email.new_user_plain_text.php @@ -0,0 +1,10 @@ +<?php +print_unescaped($l->t("Hey there,\n\njust letting you know that you now have an %s account.\n\nYour username: %s\nAccess it: %s\n\n", array($theme->getName(), $_['username'], $_['url']))); + +// TRANSLATORS term at the end of a mail +p($l->t("Cheers!")); +?> + + -- +<?php p($theme->getName() . ' - ' . $theme->getSlogan()); ?> +<?php print_unescaped("\n".$theme->getBaseUrl()); diff --git a/settings/templates/users/main.php b/settings/templates/users/main.php index c32c8df6809..2004c10b9ac 100644 --- a/settings/templates/users/main.php +++ b/settings/templates/users/main.php @@ -62,6 +62,12 @@ translation('settings'); <?php p($l->t('Show user backend')) ?> </label> </p> + <p> + <input type="checkbox" name="MailOnUserCreate" value="MailOnUserCreate" id="CheckboxMailOnUserCreate"> + <label for="CheckboxMailOnUserCreate"> + <?php p($l->t('Send mail to new user')) ?> + </label> + </p> </div> </div> </div> diff --git a/settings/templates/users/part.createuser.php b/settings/templates/users/part.createuser.php index d3ebbfb987a..9d9886f694c 100644 --- a/settings/templates/users/part.createuser.php +++ b/settings/templates/users/part.createuser.php @@ -7,6 +7,9 @@ type="password" id="newuserpassword" placeholder="<?php p($l->t('Password'))?>" autocomplete="off" autocapitalize="off" autocorrect="off" /> + <input id="newemail" type="text" style="display:none" + placeholder="<?php p($l->t('E-Mail'))?>" + autocomplete="off" autocapitalize="off" autocorrect="off" /> <select class="groupsselect" id="newusergroups" data-placeholder="groups" title="<?php p($l->t('Groups'))?>" multiple="multiple"> |