mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
26 lines
No EOL
1 KiB
PHP
26 lines
No EOL
1 KiB
PHP
<div class="page-header">
|
|
<h2><?= t('Email notifications') ?></h2>
|
|
</div>
|
|
|
|
<form method="post" action="<?= $this->u('user', 'notifications', array('user_id' => $user['id'])) ?>" autocomplete="off">
|
|
|
|
<?= $this->formCsrf() ?>
|
|
|
|
<?= $this->formCheckbox('notifications_enabled', t('Enable email notifications'), '1', $notifications['notifications_enabled'] == 1) ?><br/>
|
|
|
|
<?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): ?>
|
|
<?= $this->formCheckbox('projects['.$project_id.']', $project_name, '1', isset($notifications['project_'.$project_id])) ?><br/>
|
|
<?php endforeach ?>
|
|
</div>
|
|
<?php endif ?>
|
|
|
|
<div class="form-actions">
|
|
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
|
|
<?= t('or') ?>
|
|
<?= $this->a(t('cancel'), 'user', 'show', array('user_id' => $user['id'])) ?>
|
|
</div>
|
|
</form>
|