]> git.andy128k.dev Git - ipf.git/commitdiff
more human readable admin
authoravl <alex.litovchenko@gmail.com>
Sun, 24 May 2009 18:59:50 +0000 (21:59 +0300)
committeravl <alex.litovchenko@gmail.com>
Sun, 24 May 2009 18:59:50 +0000 (21:59 +0300)
ipf/admin/model.php

index 5e49108040576be78267ea2b1e1ae34a711f6740..340abb1662c586b9e29616b1a472126de69b7587 100644 (file)
@@ -357,7 +357,7 @@ class IPF_Admin_Model{
 
         $context = array(
                'mode'=>'add',
-            'page_title'=>'Add '.$this->modelName,
+            'page_title'=>'Add '.$this->verbose_name(),
             'classname'=>$this->verbose_name(),
             'form'=>$form,
             'inlineInstances'=>$this->inlineInstances,
@@ -406,7 +406,7 @@ class IPF_Admin_Model{
 
         $context = array(
                'mode'=>'change',
-            'page_title'=>'Edit '.$this->modelName,
+            'page_title'=>'Edit '.$this->verbose_name(),
             'classname'=>$this->verbose_name(),
             'object'=>$o,
             'form'=>$form,
@@ -540,7 +540,7 @@ class IPF_Admin_Model{
 
         $context = array(
                'orderable'=>$this->_orderable(),
-            'page_title'=>$this->modelName.' List',
+            'page_title'=>$this->verbose_name().' List',
             'header'=>$this->header,
             'objects'=>$objects,
             'pager'=>$pager,