Index: branches/5.1.x/core/units/logs/change_logs/change_logs_config.php =================================================================== diff -u -N -r12127 -r12657 --- branches/5.1.x/core/units/logs/change_logs/change_logs_config.php (.../change_logs_config.php) (revision 12127) +++ branches/5.1.x/core/units/logs/change_logs/change_logs_config.php (.../change_logs_config.php) (revision 12657) @@ -1,6 +1,6 @@ 'change-log', 'ItemClass' => Array('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), @@ -44,7 +46,7 @@ 'change_log_list' => Array ( 'prefixes' => Array('change-log_List'), 'format' => '!la_tab_ChangeLog!', - 'toolbar_buttons' => Array ('view_item', 'view'), + 'toolbar_buttons' => Array ('edit', 'view'), ), 'change_log_edit' => Array ( @@ -60,7 +62,7 @@ 'Sections' => Array ( 'in-portal:change_logs' => Array ( 'parent' => 'in-portal:reports', - 'icon' => 'sessions_log', // 'change_logs', + 'icon' => 'changes_log', // 'change_logs', 'label' => 'la_tab_ChangeLog', 'url' => Array('t' => 'logs/change_logs/change_log_list', 'pass' => 'm'), 'permissions' => Array('view', 'edit', 'delete'), @@ -127,52 +129,26 @@ 'Grids' => Array ( 'Default' => Array ( + 'Icons' => Array ('default' => 'icon16_item.png'), 'Fields' => Array ( - 'ChangeLogId' => Array ('title' => 'la_col_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter',), - 'PortalUserId' => Array ('title' => 'la_col_PortalUserId', 'filter_block' => 'grid_like_filter',), - 'UserLogin' => Array ('title' => 'la_col_Username', 'filter_block' => 'grid_like_filter',), - 'UserFirstName' => Array ('title' => 'la_col_FirstName', 'filter_block' => 'grid_like_filter',), - 'UserLastName' => Array ('title' => 'la_col_LastName', 'filter_block' => 'grid_like_filter',), - 'SessionLogId' => Array ('title' => 'la_col_SessionLogId', 'filter_block' => 'grid_like_filter',), - 'Action' => Array ('title' => 'la_col_Action', 'filter_block' => 'grid_options_filter', ), - 'OccuredOn' => Array ('title' => 'la_col_OccuredOn', 'filter_block' => 'grid_date_range_filter',), - 'MasterPrefix' => Array ('title' => 'la_col_MasterPrefix', 'filter_block' => 'grid_options_filter', ), - 'MasterId' => Array ('title' => 'la_col_MasterId', 'filter_block' => 'grid_range_filter',), - 'Prefix' => Array ('title' => 'la_col_ItemPrefix', 'filter_block' => 'grid_options_filter', ), - 'ItemId' => Array ('title' => 'la_col_ItemId', 'filter_block' => 'grid_range_filter',), - 'Changes' => Array ('title' => 'la_col_Changes', 'data_block' => 'grid_changes_td', 'filter_block' => 'grid_like_filter',), + 'ChangeLogId' => Array ('title' => 'la_col_Id', 'data_block' => 'grid_checkbox_td', 'filter_block' => 'grid_range_filter', 'width' => 70, ), + 'PortalUserId' => Array ('title' => 'la_col_PortalUserId', 'filter_block' => 'grid_like_filter', 'width' => 70, ), + 'UserLogin' => Array ('title' => 'la_col_Username', 'filter_block' => 'grid_like_filter', 'width' => 100, ), + 'UserFirstName' => Array ('title' => 'la_col_FirstName', 'filter_block' => 'grid_like_filter', 'width' => 120, ), + 'UserLastName' => Array ('title' => 'la_col_LastName', 'filter_block' => 'grid_like_filter', 'width' => 120, ), + 'SessionLogId' => Array ('title' => 'la_col_SessionLogId', 'filter_block' => 'grid_like_filter', 'width' => 120, ), + 'Action' => Array ('title' => 'la_col_Action', 'filter_block' => 'grid_options_filter', 'width' => 120, ), + 'OccuredOn' => Array ('title' => 'la_col_OccuredOn', 'filter_block' => 'grid_date_range_filter', 'width' => 150, ), + 'MasterPrefix' => Array ('title' => 'la_col_MasterPrefix', 'filter_block' => 'grid_options_filter', 'width' => 120, ), + 'MasterId' => Array ('title' => 'la_col_MasterId', 'filter_block' => 'grid_range_filter', 'width' => 90, ), + 'Prefix' => Array ('title' => 'la_col_ItemPrefix', 'filter_block' => 'grid_options_filter', 'width' => 120, ), + 'ItemId' => Array ('title' => 'la_col_ItemId', 'filter_block' => 'grid_range_filter', 'width' => 120, ), + 'Changes' => Array ('title' => 'la_col_Changes', 'data_block' => 'grid_changes_td', 'filter_block' => 'grid_like_filter', 'width' => 100, ), ), ), ), 'ConfigMapping' => Array( 'PerPage' => 'Perpage_ChangeLog', ), - ); - -/* !!! Copy the rest of the file to appropriate files and templates - * !!! DON'T FORGET TO CREAT FIELDS AND GRIDS USING SYSTEM TOOLS SECTION !!! - - -/* - -Don't forget to: - -- Add table create statement to install_schema.sql - CREATE TABLE ChangeLogs ( - `ChangeLogId` INT NOT NULL AUTO_INCREMENT PRIMARY KEY , - `Title` VARCHAR( 255 ) NOT NULL , - `Description` TEXT NULL , - `Email` VARCHAR( 255 ) NOT NULL , - `Type` TINYINT NOT NULL , - `Phone` VARCHAR( 50 ) NOT NULL , - `Qty` DOUBLE NOT NULL , - `Status` TINYINT NOT NULL , - `CreatedOn` INT NOT NULL , - `Good` TINYINT NOT NULL -) - -- Add permissions for admin gorup to install script (see 'Sections' key above) - - -*/ \ No newline at end of file + ); \ No newline at end of file