]> dev.renevier.net Git - syj.git/blobdiff - application/views/scripts/list/index.phtml
improves list style
[syj.git] / application / views / scripts / list / index.phtml
index 745938165e9661ecc23a3c97b0d8aced3aebe68f..d76cb5f3efb2eaa9de42fcf3981b50be930dd351 100644 (file)
@@ -8,11 +8,7 @@
         <p><?php echo $this->translate('SYJ needs javascript. Please activate scripts in your browser.');?></p>
     </noscript>
 
-    <div id="message"></div>
-
-
 <?php
-    print $this->localeSwitcher();
     if ($this->paginator->count() == 0) {
         $link = $this->Anchor($this->baseUrl(), $this->translate ("create a route"), array(), false);
         $noroutecontent = $this->translate("you have created no route yet, you may want to %s", $link);
@@ -21,6 +17,9 @@
         return;
     }
 
+    print '<div id="container">';
+    print '<div id="message"></div>';
+
     $pages = $this->paginator->getPages();
     if (isset($pages->previous) or isset($pages->next)) {
         print '<div id="navigation">';
         print '</div>';
     }
 
-    print '<div id="container">';
-    foreach ($this->paginator as $item) {
 
+    print $this->localeSwitcher();
+
+    foreach ($this->paginator as $item) {
         $map = sprintf('<div class="map" data-geom="%s"></div>', $this->escape($item->geom));
         $href = $this->url(array(
             'controller' => 'idx',
@@ -74,7 +74,7 @@
                 </div>
                 ',
                 (int)$item->id, $maplink, $modifylink,  $deletelink, $this->escape($item->displayTitle));
-
     }
+
     print '</div>';
 ?>