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'); |
---|
4 | else :?> |
---|
5 | <h1>Modification d'une alerte email</h2> |
---|
6 | <?php $sf_response->setTitle('Modification d\'une alerte email'); |
---|
7 | endif; |
---|
8 | ?> |
---|
9 | <form method="POST"> |
---|
10 | <table><?php |
---|
11 | if ($form->getObject()->citoyen_id) { |
---|
12 | echo "<tr><th>Email</th><td>".$form->getObject()->Citoyen->email."</td></tr>"; |
---|
13 | } |
---|
14 | if ($form->getObject()->no_human_query) { |
---|
15 | echo "<tr><th>Alerte portant sur</th><td>".$form->getObject()->titre."</td></tr>"; |
---|
16 | } |
---|
17 | if ($f = $form->getObject()->filter) { |
---|
18 | echo "<tr><th>Filtré sur</th><td>".preg_replace('/[\&,] ?/', ', ', preg_replace('/[^=\&\,]+=/i', '', strtolower(urldecode($f))))."</td></tr>"; |
---|
19 | } |
---|
20 | echo $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.