source: cpc/trunk/project/apps/frontend/modules/alerte/templates/formSuccess.php @ 1437

Last change on this file since 1437 was 1437, checked in by teymour, 11 years ago

Ajout des titres pour les alertes + qq correction

File size: 949 bytes
Line 
1<?php if ($submit == 'Créer') : ?>
2<h1>Création d'une alerte email</h2>
3<?php $sf_response->setTitle('Création d\'une alerte email');
4else :?>
5<h1>Modification d'une alerte email</h2>
6<?php $sf_response->setTitle('Modification d\'une alerte email');
7endif;
8?>
9<form method="POST">
10<table><?php
11if ($form->getObject()->citoyen_id) {
12echo "<tr><th>Email</th><td>".$form->getObject()->Citoyen->email."</td></tr>";
13}
14if ($form->getObject()->no_human_query) {
15echo "<tr><th>Alerte portant sur</th><td>".$form->getObject()->titre."</td></tr>";
16}
17if ($f = $form->getObject()->filter) {
18echo "<tr><th>Filtré sur</th><td>".preg_replace('/[\&,] ?/', ', ', preg_replace('/[^=\&\,]+=/i', '', strtolower(urldecode($f))))."</td></tr>";
19}
20echo $form;
21?>
22<tr><th></th><td><input type="submit" value="<?php echo $submit; ?>"> <?php if ($submit != 'Créer') echo link_to('Supprimer', 'alerte/delete?verif='.$form->getObject()->verif);?></td></tr>
23</table>
24</form>
Note: See TracBrowser for help on using the repository browser.