2014-12-22 19:15:38 +01:00
|
|
|
<div class="page-header">
|
|
|
|
<h2><?= t('Email notifications') ?></h2>
|
|
|
|
</div>
|
|
|
|
|
2015-01-16 14:23:05 +01:00
|
|
|
<form method="post" action="<?= $this->u('user', 'notifications', array('user_id' => $user['id'])) ?>" autocomplete="off">
|
2014-12-22 19:15:38 +01:00
|
|
|
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->formCsrf() ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->formCheckbox('notifications_enabled', t('Enable email notifications'), '1', $notifications['notifications_enabled'] == 1) ?><br/>
|
2014-12-22 19:15:38 +01:00
|
|
|
|
|
|
|
<?php if (! empty($projects)): ?>
|
|
|
|
<p><?= t('I want to receive notifications only for those projects:') ?><br/><br/></p>
|
|
|
|
|
|
|
|
<div class="form-checkbox-group">
|
|
|
|
<?php foreach ($projects as $project_id => $project_name): ?>
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->formCheckbox('projects['.$project_id.']', $project_name, '1', isset($notifications['project_'.$project_id])) ?><br/>
|
2014-12-22 19:15:38 +01:00
|
|
|
<?php endforeach ?>
|
|
|
|
</div>
|
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<div class="form-actions">
|
|
|
|
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
|
|
|
|
<?= t('or') ?>
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->a(t('cancel'), 'user', 'show', array('user_id' => $user['id'])) ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
</div>
|
|
|
|
</form>
|