Assembla home | Assembla project page
 

Changeset 108

Show
Ignore:
Timestamp:
07/18/07 13:56:42 (1 year ago)
Author:
digitalspaghetti
Message:

Improvments to Post index

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branch/controllers/posts_controller.php

    r89 r108  
    111111                        $this->Post->create(); 
    112112                        if($this->Post->save($this->data)) { 
    113                                 //$this->Session->setFlash('The Post has been saved'); 
    114                                 //$this->redirect(array('action'=>'index'), null, true); 
     113                                $this->Session->setFlash('The Post has been saved'); 
     114                                $this->redirect(array('action'=>'index'), null, true); 
    115115                        } else { 
    116116                                $this->Session->setFlash('The Post could not be saved. Please, try again.'); 
     
    119119                $this->set('access_levels', $this->Group->generateList(null, 'Group.name ASC', null,'{n}.Group.level', '{n}.Group.name')); 
    120120                $this->set('subjects', $this->Post->Subject->generateList()); 
    121                 $this->set('images', $this->Post->Image->generateList()); 
     121                $this->set('images', $this->Post->Image->generateList(null,null,null,'{n}.Image.id', '{n}.Image.alt')); 
    122122        } 
    123123 
  • branch/views/posts/admin_index.ctp

    r60 r108  
    44 
    55        <table cellpadding="0" cellspacing="0"> 
     6                <thead> 
    67                <tr> 
    78                        <th><?php echo $paginator->sort('id');?></th> 
     
    1718                        <th>Actions</th> 
    1819                </tr> 
     20        </thead> 
     21        <tbody> 
    1922        <?php $row = 0; ?> 
    2023        <?php foreach ($posts as $post): ?> 
     
    4144                <?php $row++; ?> 
    4245        <?php endforeach; ?> 
     46        </tbody> 
    4347        </table> 
    4448         
  • branch/webroot/css/default.css

    r107 r108  
    1010div#hd { 
    1111        height:130px; 
    12         background: #45484B; 
    13         /*background: #fff url('../img/NoHalfMeasures.jpg') no-repeat;*/ 
     12        background: #45484B /*url('../img/NoHalfMeasures.jpg') no-repeat*/; 
    1413        color: #fff; 
    1514}