Jump to content


dontako

Member Since 24 Oct 2012
Offline Last Active Dec 26 2012 07:34 PM
-----

Posts I've Made

In Topic: Don't "clear" fields when a record is added.

19 December 2012 - 09:25 PM

default, I guess...

In Topic: Don't "clear" fields when a record is added.

19 December 2012 - 01:52 PM

delete


:mellow: ?

In Topic: unset_action only for one row ?

19 December 2012 - 01:51 PM

But user can go by url site.com/your_controller/your_function/delete/5 and this operation can delete this row.
You should to check it in the controller.


You're right ! mmm I'll check it later :)

In Topic: unset_action only for one row ?

18 December 2012 - 08:54 PM

Hi, dontako, can you expline how you made it ? THX.


Hello!! I did this:

First opened list.php file (located in "assets \ grocery_crud \ themes \ Flexigrid \ views")
Then, near line 37:

<div class='tools'>
<?php if(!$unset_delete){

// GET ITEM ID
$id = substr($row->delete_url,-1);
// GET METHOD NAME
$CI = &get_instance();
$method = $CI->router->method;

// Prevent hide content with the same ID in other methods.
if($method == 'admin' && $id != 5)
{
?>
<a href='<?php echo $row->delete_url?>' title='<?php echo $this->l('list_delete')?> <?php echo $subject?>' class="delete-row" >
<span class='delete-icon'></span>
</a>
<?php }
}?>


And Voilá

In Topic: Insert <div> in CRUD form

17 December 2012 - 01:33 PM

Your Welcome ;3