]> dev.renevier.net Git - syj.git/blobdiff - application/views/scripts/idx/index.phtml
duplicate a route functionality
[syj.git] / application / views / scripts / idx / index.phtml
index ce8b6f72a24672673f513b4a4821f98df834b30c..fedff0aa2a92380ef606277f5ac7d65681d9c81c 100644 (file)
     </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>