Changeset 1427
- Timestamp:
- Sep 26, 2010, 2:30:13 PM (10 years ago)
- Location:
- cpc/trunk/project
- Files:
-
- 9 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/apps/frontend/config/routing.yml
r1408 r1427 379 379 param: {module: commentaire, action: widget} 380 380 381 alerte_create: 382 url: /alerte/create 383 param: {module: alerte, action: create} 384 alerte_list: 385 url: /alerte/list 386 param: {module: alerte, action: list} 387 alerte_edit: 388 url: /alerte/edit/:verif 389 param: {module: alerte, action: edit} 390 alerte_delete: 391 url: /alerte/delete/:verif 392 param: {module: alerte, action: delete} 393 381 394 parlementaire: 382 395 url: /:slug -
cpc/trunk/project/apps/frontend/modules/citoyen/templates/showSuccess.php
r1337 r1427 22 22 </div> 23 23 <?php if ($sf_user->getAttribute('user_id') == $user->id) 24 echo '<div class="b_c_edit"><a href="'.url_for('@edit_citoyen').'">Modifier votre profil</a></div>'; 24 echo '<div class="b_c_edit"><a href="'.url_for('alerte/list').'">Gérer mes alertes</a> - '; 25 echo '<a href="'.url_for('@edit_citoyen').'">Modifier votre profil</a></div>'; 25 26 ?> 26 27 </div> -
cpc/trunk/project/config/doctrine/schema.yml
r1424 r1427 661 661 email: string(128) 662 662 query: string(128) 663 titre: string 663 titre: string 664 664 confirmed: boolean 665 no_human_query: boolean 665 666 period: 666 667 type: enum -
cpc/trunk/project/lib/model/doctrine/Alerte.class.php
r1327 r1427 13 13 class Alerte extends BaseAlerte 14 14 { 15 public function giveVerif() { 16 $v = $this->get('verif'); 17 if (!$v) { 18 $v = md5(rand(1, 999999999999)); 19 $this->setVerif($v); 20 } 15 public function generateVerif() { 16 $v = md5(rand(1, 999999999999)); 17 $this->_set('verif', $v); 21 18 return $v; 22 19 } 20 public function getTitre() { 21 if (!$this->_get('titre')) 22 return "Recherche correspondant aux mots clés « ".$this->query." »"; 23 return $this->_get('titre'); 24 } 25 26 public function save(Doctrine_Connection $c = null) { 27 if (!$this->last_mail) 28 $this->last_mail = date('Y-m-d H:i:s'); 29 if (!$this->verif) 30 $this->generateVerif(); 31 return parent::save($c); 32 } 23 33 } -
cpc/trunk/project/web/css/xneth/style.css
r1421 r1427 367 367 padding-right: 20px; 368 368 } 369 .b_c_edit a, .b_c_edit a:visited { 370 text-decoration: underline 371 } 369 372 .b_c_edit { 370 373 float: right; … … 372 375 margin-top: 70px; 373 376 color: #CB1414; 374 text-decoration: underline375 377 } 376 378 .b_c_b { … … 1825 1827 margin-top: 5px; 1826 1828 } 1829 1830 table.list { 1831 margin: auto; 1832 } 1833 table.list td { 1834 text-align: center; 1835 }
Note: See TracChangeset
for help on using the changeset viewer.