]> 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 3425954f74861140a708f078529cd0fbb57bf908..fedff0aa2a92380ef606277f5ac7d65681d9c81c 100644 (file)
     </div>
 
     <div id="data_controls">
-    <input id="edit-btn" name="edit-btn" type="button" value="<?php
-        echo isset($this->path) ? $this->translate('edit'): $this->translate('start a route');
-    ?>">
+        <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;