*
* PHP version 5
*
- * Copyright © 2007-2014 The Galette Team
+ * Copyright © 2007-2021 The Galette Team
*
* This file is part of Galette (http://galette.tuxfamily.org).
*
* @category Core
* @package Galette
* @author Johan Cwiklinski <johan@x-tnd.be>
- * @copyright 2007-2014 The Galette Team
+ * @copyright 2007-2021 The Galette Team
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
* @link http://galette.tuxfamily.org
* @since Available since 0.7dev - 2007-10-14
* @name Preferences
* @package Galette
* @author Johan Cwiklinski <johan@x-tnd.be>
- * @copyright 2007-2014 The Galette Team
+ * @copyright 2007-2021 The Galette Team
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
* @link http://galette.tuxfamily.org
* @since Available since 0.7dev - 2007-10-14
* @property string $pref_email
* @property string $pref_email_newadh
* @property boolean $pref_bool_mailadh
+ * @property boolean $pref_bool_mailowner
* @property boolean $pref_editor_enabled
* @property integer $pref_mail_method Mail method, see GaletteMail::METHOD_*
* @property string $pref_mail_smtp
'pref_email' => 'mail@domain.com',
'pref_email_newadh' => 'mail@domain.com',
'pref_bool_mailadh' => false,
+ 'pref_bool_mailowner' => false,
'pref_editor_enabled' => false,
'pref_mail_method' => GaletteMail::METHOD_DISABLED,
'pref_mail_smtp' => '',
{if not $contribution->id and $pref_mail_method neq constant('Galette\Core\GaletteMail::METHOD_DISABLED')}
<p>
<label for="mail_confirm">{_T string="Notify member"}</label>
- <input type="checkbox" name="mail_confirm" id="mail_confirm" value="1" {if isset($smarty.post.mail_confirm) and $smarty.post.mail_confirm != ""}checked="checked"{/if}/>
+ <input type="checkbox" name="mail_confirm" id="mail_confirm" value="1" {if $preferences->pref_bool_mailowner || isset($smarty.post.mail_confirm) and $smarty.post.mail_confirm != ""}checked="checked"{/if}/>
<br/><span class="exemple">{_T string="Member will receive a notification by email, if he has an address."}</span>
</p>
{/if}
{_T string="Notify member his account has been created"}
{/if}
</label>
- <input type="checkbox" name="mail_confirm" id="mail_confirm" value="1" {if isset($smarty.post.mail_confirm) and $smarty.post.mail_confirm != ""}checked="checked"{/if}/>
+ <input type="checkbox" name="mail_confirm" id="mail_confirm" value="1" {if $preferences->pref_bool_mailowner || isset($smarty.post.mail_confirm) and $smarty.post.mail_confirm != ""}checked="checked"{/if}/>
<br/><span class="exemple">
{if $member->id}
{_T string="Member will be notified by email his account has been modified."}
<span class="tip">{_T string="Sends an email each time a new member registers online or edit his/her account"}</span>
<input type="checkbox" name="pref_bool_mailadh" id="pref_bool_mailadh" value="1" {if $pref.pref_bool_mailadh eq 1}checked="checked"{/if}{if isset($required.pref_bool_mailadh) and $required.pref_bool_mailadh eq 1} required="required"{/if}/>
</p>
+ <p>
+ <label for="pref_bool_mailowner" class="bline tooltip">{_T string="Send email to members?"}</label>
+ <span class="tip">{_T string="Sends an email each time a member card or a contribution has been added or edited. This can be disabled for each case."}</span>
+ <input type="checkbox" name="pref_bool_mailowner" id="pref_bool_mailowner" value="1" {if $pref.pref_bool_mailowner eq 1}checked="checked"{/if}{if isset($required.pref_bool_mailowner) and $required.pref_bool_mailowner eq 1} required="required"{/if}/>
+ </p>
<p>
<label for="pref_bool_wrap_mails" class="bline tooltip">{_T string="Wrap emails text?"}</label>
<span class="tip">{_T string="Automatically wrap emails texts before sending. Make sure to wrap yourself if you disable that. Please note that current editing mailing will not be affected by a change."}</span>