]> 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 7d0fe87fddc5c1064194ce970b664b819432c947..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;