fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [13951]


From: Nelson Guerra
Subject: [Fmsystem-commits] [13951]
Date: Thu, 17 Sep 2015 00:07:42 +0000

Revision: 13951
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13951
Author:   nelson224
Date:     2015-09-17 00:07:41 +0000 (Thu, 17 Sep 2015)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind/rental/inc/class.uiadjustment.inc.php

Modified: branches/dev-syncromind/rental/inc/class.uiadjustment.inc.php
===================================================================
--- branches/dev-syncromind/rental/inc/class.uiadjustment.inc.php       
2015-09-17 00:07:25 UTC (rev 13950)
+++ branches/dev-syncromind/rental/inc/class.uiadjustment.inc.php       
2015-09-17 00:07:41 UTC (rev 13951)
@@ -633,6 +633,39 @@
 
                if ($adjustment_id)
                {
+                       $tabletools_contracts[] = array
+                               (
+                                       'my_name'               => 'edit',
+                                       'text'                  => lang('edit'),
+                                       'action'                => 
self::link(array(
+                                                       'menuaction'    => 
'rental.uicontract.edit',
+                                                       'adjustment_id' => 
$adjustment_id
+                                       )),
+                                       'parameters'    => 
json_encode(array('parameter'=>array(array('name'=>'id', 'source'=>'id'))))
+                               );
+
+                       $tabletools_contracts[] = array
+                               (
+                                       'my_name'               => 'copy',
+                                       'text'                  => lang('copy'),
+                                       'action'                => 
self::link(array(
+                                                       'menuaction'    => 
'rental.uicontract.copy_contract',
+                                                       'adjustment_id' => 
$adjustment_id
+                                       )),
+                                       'parameters'    => 
json_encode(array('parameter'=>array(array('name'=>'id', 'source'=>'id'))))
+                               );
+
+                       $tabletools_contracts[] = array
+                               (
+                                       'my_name'               => 'show',
+                                       'text'                  => lang('show'),
+                                       'action'                => 
self::link(array(
+                                                       'menuaction'    => 
'rental.uicontract.view',
+                                                       'adjustment_id' => 
$adjustment_id
+                                       )),
+                                       'parameters'    => 
json_encode(array('parameter'=>array(array('name'=>'id', 'source'=>'id'))))
+                               );
+                       
                        $datatable_def[] = array
                        (
                                'container'             => 
'datatable-container_0',
@@ -650,9 +683,9 @@
                                                        
array('key'=>'contract_status', 'label'=>lang('contract_status'), 
'sortable'=>false, 'className'=>'center'),
                                                        
array('key'=>'adjustment_interval', 'label'=>lang('adjustment_interval'), 
'sortable'=>false, 'className'=>'center'),
                                                        
array('key'=>'adjustment_share', 'label'=>lang('adjustment_share'), 
'sortable'=>false, 'className'=>'center'),
-                                                       
array('key'=>'adjustment_year', 'label'=>lang('adjustment_year'), 
'sortable'=>false, 'className'=>'center'),
-                                                       array('key'=>'actions', 
'label'=>lang('actions'), 'sortable'=>false, 'hidden'=>false, 
'className'=>'dt-center all')
-                               )       
+                                                       
array('key'=>'adjustment_year', 'label'=>lang('adjustment_year'), 
'sortable'=>false, 'className'=>'center')
+                               ),
+                               'tabletools'    => $tabletools_contracts
                        );
                }
                




reply via email to

[Prev in Thread] Current Thread [Next in Thread]