Move event and notification templates to a subfolder

This commit is contained in:
Frédéric Guillot
2014-11-26 20:43:08 -05:00
parent b13dba46e7
commit c6b9a2a92e
29 changed files with 53 additions and 50 deletions

View File

@@ -8,13 +8,16 @@
<?= Helper\form_checkbox('notifications_enabled', t('Enable email notifications'), '1', $notifications['notifications_enabled'] == 1) ?><br/>
<p><?= t('I want to receive notifications only for those projects:') ?><br/><br/></p>
<?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): ?>
<?= Helper\form_checkbox('projects['.$project_id.']', $project_name, '1', isset($notifications['project_'.$project_id])) ?>
<?php endforeach ?>
</div>
<?php endif ?>
<div class="form-checkbox-group">
<?php foreach ($projects as $project_id => $project_name): ?>
<?= Helper\form_checkbox('projects['.$project_id.']', $project_name, '1', isset($notifications['project_'.$project_id])) ?>
<?php endforeach ?>
</div>
<div class="form-actions">
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
<?= t('or') ?> <a href="?controller=user&amp;action=show&amp;user_id=<?= $user['id'] ?>"><?= t('cancel') ?></a>