Skip to content

Commit 8cd00ae

Browse files
committed
scoumbourdis#441 - Clone functionality for datatables theme
1 parent 158dc56 commit 8cd00ae

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • assets/grocery_crud/themes/datatables/views

assets/grocery_crud/themes/datatables/views/list.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,20 @@
3535
</a>
3636
<?php }?>
3737

38+
<?php if(!$unset_clone){?>
39+
<a href="<?php echo $row->clone_url?>" class="edit_button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary" role="button">
40+
<span class="ui-button-icon-primary ui-icon ui-icon-copy"></span>
41+
<span class="ui-button-text">&nbsp;Clone</span>
42+
</a>
43+
<?php }?>
44+
3845
<?php if(!$unset_edit){?>
3946
<a href="<?php echo $row->edit_url?>" class="edit_button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary" role="button">
4047
<span class="ui-button-icon-primary ui-icon ui-icon-pencil"></span>
4148
<span class="ui-button-text">&nbsp;<?php echo $this->l('list_edit'); ?></span>
4249
</a>
4350
<?php }?>
51+
4452
<?php if(!$unset_delete){?>
4553
<a onclick = "javascript: return delete_row('<?php echo $row->delete_url?>', '<?php echo $num_row?>')"
4654
href="javascript:void(0)" class="delete_button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary" role="button">

0 commit comments

Comments
 (0)