]> dev.renevier.net Git - syj.git/blobdiff - application/views/scripts/idx/index.phtml
display logged user pseudo in footer
[syj.git] / application / views / scripts / idx / index.phtml
index 38f1e3b7fad448bfe692892767db0082ac6fe932..fedff0aa2a92380ef606277f5ac7d65681d9c81c 100644 (file)
@@ -11,7 +11,7 @@
     <div id="map"></div>
 
     <div id="message" class="message info">
-    <?php if (!$this->path and !$this->loggedUser()) {?>
+    <?php if (!$this->path and !$this->loggedUser) {?>
     <?php echo $this->translate('Welcome on Syj.')?>
     <br/>
     <?php echo $this->translate('To create a journey, just click on the map to add points to your route. You can zoom and move map with controls upper left.')?>
     </div>
 
     <div id="data_controls">
-    <input id="edit-btn" name="edit-btn" type="button" value="<?php echo $this->translate('edit')?>">
+        <div id="data_controls_btns">
+    <?php if (isset($this->path)) { ?>
+        <input id="clone-btn" name="clone-btn" type="button" value="<?php echo $this->translate('duplicate');?>">
+        <br>
+        <input id="edit-btn" name="edit-btn" type="button" value="<?php echo $this->translate('edit');?>">
+    <?php } else {?>
+        <input id="create-btn" name="create-btn" type="button" value="<?php echo $this->translate('start a route');?>">
+    <?php } ?>
+        </div>
 
     <?php
         print $this->geomform;
         <div>
             <?php
                 echo $this->anchor('login', $this->translate('login'), array('id' => 'login_control_anchor', 'class' => 'login-anchor'));
-                echo $this->anchor('', $this->translate('create an account'), array('id' => 'user_control_anchor', 'class' => 'login-anchor'));
+                $anchortext = sprintf("%s<img id=\"account-info-bullet\" src=\"icons/bullet_arrow_right.png\"><span id=\"account-info\"><br>%s</span>",
+                                      $this->translate('create an account'),
+                                      $this->translate('Whith an account, you can manage and modify your routes'));
+                echo $this->anchor('', $anchortext, array('id' => 'user_control_anchor', 'class' => 'login-anchor'), false);
             ?>
         </div>
         <div>