init
This commit is contained in:
53
modules/EcmWorkCards/metadata/SearchFields.php
Normal file
53
modules/EcmWorkCards/metadata/SearchFields.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
|
||||
$module_name = 'EcmWorkCards';
|
||||
$searchFields[$module_name] =
|
||||
array (
|
||||
'name' => array( 'query_type'=>'default'),
|
||||
'current_user_only'=> array('query_type'=>'default','db_field'=>array('assigned_user_id'),'my_items'=>true, 'vname' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'),
|
||||
'assigned_user_id'=> array('query_type'=>'default'),
|
||||
//Range Search Support
|
||||
'range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
|
||||
'start_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
|
||||
'end_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
|
||||
'range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
|
||||
'start_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
|
||||
'end_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
|
||||
//Range Search Support
|
||||
);
|
||||
?>
|
||||
84
modules/EcmWorkCards/metadata/detailviewdefs.php
Normal file
84
modules/EcmWorkCards/metadata/detailviewdefs.php
Normal file
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
|
||||
$module_name = 'EcmWorkCards';
|
||||
$viewdefs [$module_name] = array(
|
||||
'DetailView' => array(
|
||||
'templateMeta' => array(
|
||||
'form' => array(
|
||||
'buttons' => array(
|
||||
0 => 'EDIT',
|
||||
//1 => 'DUPLICATE',
|
||||
1 => 'DELETE',
|
||||
array(
|
||||
'customCode' => '<input title="{$APP.LBL_DUPLICATE_BUTTON_TITLE}" accessKey="{$APP.LBL_DUPLICATE_BUTTON_KEY}" class="button" onclick="this.form.return_module.value=\'EcmWorkCards\'; this.form.return_action.value=\'DetailView\'; this.form.isDuplicate.value=true; this.form.action.value=\'EditView\'; this.form.return_id.value=\'{$id}\';" type="submit" name="Duplicate" value="{$APP.LBL_DUPLICATE_BUTTON_LABEL}" id="duplicate_button">'
|
||||
),
|
||||
// 3 => 'FIND_DUPLICATES'
|
||||
),
|
||||
),
|
||||
'maxColumns' => '2',
|
||||
'widths' => array(
|
||||
0 => array(
|
||||
'label' => '10',
|
||||
'field' => '30'
|
||||
),
|
||||
1 => array(
|
||||
'label' => '10',
|
||||
'field' => '30'
|
||||
)
|
||||
),
|
||||
'includes' => array(
|
||||
0 => array(
|
||||
'file' => 'modules/EcmWorkCards/js/DetailViewDocumentReady.js'
|
||||
)
|
||||
)
|
||||
),
|
||||
'panels' => array(
|
||||
'LBL_ITEMS_TAB' => array(
|
||||
array(
|
||||
array(
|
||||
'name' => 'worker_name',
|
||||
'label' => 'LBL_WORKER_NAME',
|
||||
)
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'name' => 'date',
|
||||
'label' => 'LBL_DATE',
|
||||
)
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'name' => 'product_name',
|
||||
'label' => 'Produkt',
|
||||
)
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'name' => 'action_name',
|
||||
'label' => 'Czynność',
|
||||
)
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'name' => 'time',
|
||||
'label' => 'Czas od do',
|
||||
'customCode'=>'{$fields.time_from.value} - {$fields.time_to.value}'
|
||||
)
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'name' => 'quantity',
|
||||
'label' => 'Ilość',
|
||||
)
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'name' => 'description',
|
||||
'label' => 'Opis',
|
||||
)
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
?>
|
||||
123
modules/EcmWorkCards/metadata/editviewdefs.php
Normal file
123
modules/EcmWorkCards/metadata/editviewdefs.php
Normal file
@@ -0,0 +1,123 @@
|
||||
<?php
|
||||
$viewdefs ['EcmWorkCards'] ['EditView'] = array (
|
||||
'templateMeta' => array (
|
||||
'form' => array (
|
||||
'enctype' => 'multipart/form-data',
|
||||
'hidden' => array (
|
||||
'<input type="hidden" name="isSaveAndNew" value="false">',
|
||||
'<input type="hidden" id="create_new" name="create_new" value="0">'
|
||||
),
|
||||
'buttons' => array (
|
||||
'SAVE',
|
||||
'CANCEL',
|
||||
array (
|
||||
'customCode' => '<input tabindex="209" title="Zapisz [Alt+S]" accesskey="S" class="button primary" id="save_and_next" onclick="this.form.action.value=\'Save\';$(\'#create_new\').val(1);return check_form(\'EditView\');" name="button" value="Zapisz i dodaj nowy" type="submit">'
|
||||
)
|
||||
)
|
||||
),
|
||||
'maxColumns' => '2',
|
||||
'widths' => array (
|
||||
array (
|
||||
'label' => '10',
|
||||
'field' => '30'
|
||||
),
|
||||
array (
|
||||
'label' => '10',
|
||||
'field' => '30'
|
||||
)
|
||||
),
|
||||
'javascript' => '
|
||||
|
||||
<link class="theme" rel="stylesheet" href="include/jQuery/jquery-timepicker/jquery.timepicker.css">
|
||||
<script type="text/javascript" src="include/jQuery/jquery-timepicker/jquery.timepicker.min.js"></script>
|
||||
<script type="text/javascript" src="include/JSON.js?s={$SUGAR_VERSION}"></script>
|
||||
<script type="text/javascript" src="modules/EcmWorkCards/js/EditViewDocumentReady6.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>',
|
||||
'includes' => array (
|
||||
array (
|
||||
'file' => 'include/JSON.js'
|
||||
)
|
||||
)
|
||||
),
|
||||
'panels' => array (
|
||||
'LBL_ITEMS_TAB' => array (
|
||||
array (
|
||||
array (
|
||||
'type' => 'tab',
|
||||
'active' => true
|
||||
)
|
||||
),
|
||||
array (
|
||||
array (
|
||||
'name' => 'worker_name',
|
||||
'label' => 'LBL_WORKER_NAME',
|
||||
'displayParams' => array (
|
||||
'size' => 50
|
||||
)
|
||||
)
|
||||
),
|
||||
array (
|
||||
array (
|
||||
'name' => 'date',
|
||||
'label' => 'LBL_DATE',
|
||||
'tabIndex' => '102'
|
||||
)
|
||||
),
|
||||
array (
|
||||
array (
|
||||
'name' => 'product_name',
|
||||
'customCode' => '<input size="50" id="product_name" type="txt" name="product_name" value="{$fields.product_name.value}"><input type="hidden" id="product_id" name="product_id" value="{$fields.product_id.value}">'
|
||||
)
|
||||
),
|
||||
|
||||
array (
|
||||
array (
|
||||
'name' => 'action_name',
|
||||
|
||||
'customCode' => '<input size="50" id="action_name" type="txt" name="action_name" value="{$fields.action_name.value}"><input type="hidden" id="action_id" name="action_id" value="{$fields.action_id.value}">'
|
||||
|
||||
)
|
||||
),
|
||||
array (
|
||||
array (
|
||||
'name' => 'time_from',
|
||||
'label' => "Czas od do",
|
||||
'customCode' => '<input type="text" tabindex="105" id="time_from" name="time_from" value="{$fields.time_from.value}"> - <input tabindex="106" type="text" id="time_to" name="time_to" value="{$fields.time_to.value}">'
|
||||
)
|
||||
),
|
||||
array (
|
||||
array (
|
||||
'name' => 'quantity',
|
||||
'label' => 'Ilość',
|
||||
'customCode' => '<input type="text" onchange="$(this).val(FormatNumber($(this).val()));" onclick="$(this).select();" tabindex="107" id="quantity" name="quantity" value="{$fields.quantity.value|number_format:2:",":"."}">'
|
||||
)
|
||||
),
|
||||
array (
|
||||
array (
|
||||
'label' => 'LBL_DESCRIPTION',
|
||||
'name' => 'description',
|
||||
'displayParams' => array (
|
||||
'rows' => 2,
|
||||
'cols' => 60
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
/*
|
||||
* 'LBL_ACTIONS' => array (
|
||||
* array (
|
||||
* array (
|
||||
* 'type' => 'tab'
|
||||
* )
|
||||
* ),
|
||||
* array (
|
||||
* array (
|
||||
* 'allCols' => true,
|
||||
* 'hideLabel' => true,
|
||||
* 'customCode' => "{include file='modules/EcmWorkCards/tpl/EditViewTableEcmActions.tpl'}"
|
||||
* )
|
||||
* )
|
||||
* )
|
||||
*/
|
||||
)
|
||||
);
|
||||
?>
|
||||
59
modules/EcmWorkCards/metadata/listviewdefs.php
Normal file
59
modules/EcmWorkCards/metadata/listviewdefs.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
//echo '<script type="text/javascript" src="modules/EcmWorkCards/ListViewDocumentReady.js"></script>';
|
||||
$module_name = 'EcmWorkCards';
|
||||
$listViewDefs [$module_name] = array (
|
||||
'DATE' => array (
|
||||
'type' => 'datetime',
|
||||
'label' => 'LBL_DATE',
|
||||
'link' => 'true',
|
||||
'width' => '1',
|
||||
'default' => true,
|
||||
'align' => 'right',
|
||||
),
|
||||
'WORKER_NAME' => array (
|
||||
'type' => 'varchar',
|
||||
'label' => 'LBL_WORKER_NAME',
|
||||
'width' => '5',
|
||||
'default' => true,
|
||||
'align' => 'left',
|
||||
),
|
||||
'PRODUCT_NAME' => array (
|
||||
'label' => 'Produkt',
|
||||
'width' => '5',
|
||||
'default' => true,
|
||||
'sortable'=>false,
|
||||
'align' => 'left',
|
||||
),
|
||||
'ACTION_NAME' => array (
|
||||
'label' => 'Czynność',
|
||||
'link' => false,
|
||||
'width' => '5',
|
||||
'default' => true,
|
||||
'sortable'=>false,
|
||||
'align' => 'left',
|
||||
),
|
||||
'TIME_FROM' => array (
|
||||
'label' => 'Czas od do',
|
||||
'width' => '5',
|
||||
'default' => true,
|
||||
'sortable'=>false,
|
||||
'align' => 'left',
|
||||
),
|
||||
'QUANTITY' => array(
|
||||
'width' => '5',
|
||||
'label' => 'Ilość',
|
||||
'align' => 'right',
|
||||
'default' => true,
|
||||
),
|
||||
|
||||
'DESCRIPTION' => array (
|
||||
'label' => 'Opis',
|
||||
'link' => false,
|
||||
'width' => '10',
|
||||
'sortable'=>false,
|
||||
'default' => true,
|
||||
'align' => 'left',
|
||||
),
|
||||
|
||||
);
|
||||
?>
|
||||
67
modules/EcmWorkCards/metadata/popupdefs.php
Normal file
67
modules/EcmWorkCards/metadata/popupdefs.php
Normal file
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
|
||||
if (!defined('sugarEntry') || !sugarEntry)
|
||||
die('Not A Valid Entry Point');
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
* ****************************************************************************** */
|
||||
$module_name = 'EcmWorkCards';
|
||||
$object_name = 'EcmWorkCard';
|
||||
$_module_name = 'ecmworkcards';
|
||||
$popupMeta = array(
|
||||
'moduleMain' => $module_name,
|
||||
'varName' => $object_name,
|
||||
'orderBy' => $_module_name . '.date, ' . $_module_name . '.worker_name',
|
||||
'whereClauses' =>array(
|
||||
'date' => $_module_name . '.date',
|
||||
'worker_name' => $_module_name . '.worker_name',
|
||||
),
|
||||
'searchInputs' =>array(
|
||||
'date',
|
||||
'worker_name'
|
||||
),
|
||||
'searchdefs' => array(
|
||||
'date',
|
||||
'worker_name',
|
||||
),
|
||||
'listviewdefs' => array(
|
||||
'NAME' => array(
|
||||
'width' => '40',
|
||||
'label' => 'LBL_WORKCARD_NAME',
|
||||
'link' => true,
|
||||
'default' => true,
|
||||
),
|
||||
),
|
||||
);
|
||||
?>
|
||||
56
modules/EcmWorkCards/metadata/quickcreatedefs.php
Normal file
56
modules/EcmWorkCards/metadata/quickcreatedefs.php
Normal file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
* ****************************************************************************** */
|
||||
|
||||
$module_name = 'EcmWorkCards';
|
||||
$viewdefs[$module_name]['QuickCreate'] = array(
|
||||
'templateMeta' => array('maxColumns' => '2',
|
||||
'widths' => array(
|
||||
array('label' => '10', 'field' => '30'),
|
||||
array('label' => '10', 'field' => '30')
|
||||
),
|
||||
),
|
||||
'panels' => array(
|
||||
'default' =>
|
||||
array(
|
||||
array(
|
||||
'name',
|
||||
'assigned_user_name',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
?>
|
||||
38
modules/EcmWorkCards/metadata/searchdefs.php
Normal file
38
modules/EcmWorkCards/metadata/searchdefs.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
$module_name = 'EcmWorkCards';
|
||||
$searchdefs [$module_name] = array(
|
||||
'layout' => array(
|
||||
'basic_search' => array(
|
||||
'worker_name' => array(
|
||||
'type' => 'varchar',
|
||||
'label' => 'LBL_WORKER_NAME',
|
||||
'width' => '10%',
|
||||
'default' => true,
|
||||
'name' => 'worker_name'
|
||||
),
|
||||
'date_start',
|
||||
'date_end',
|
||||
),
|
||||
'advanced_search' => array (
|
||||
'worker_name' => array(
|
||||
'type' => 'varchar',
|
||||
'label' => 'LBL_WORKER_NAME',
|
||||
'width' => '10%',
|
||||
'default' => true,
|
||||
'name' => 'worker_name'
|
||||
),
|
||||
'date_start',
|
||||
'date_end',
|
||||
),
|
||||
),
|
||||
'templateMeta' => array(
|
||||
'maxColumns' => '3',
|
||||
'maxColumnsBasic' => '4',
|
||||
'widths' => array(
|
||||
'label' => '10',
|
||||
'field' => '30'
|
||||
)
|
||||
)
|
||||
);
|
||||
?>
|
||||
41
modules/EcmWorkCards/metadata/studio.php
Normal file
41
modules/EcmWorkCards/metadata/studio.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
|
||||
/**
|
||||
* This file adds support for studio
|
||||
*/
|
||||
|
||||
?>
|
||||
55
modules/EcmWorkCards/metadata/subpaneldefs.php
Normal file
55
modules/EcmWorkCards/metadata/subpaneldefs.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
if (!defined('sugarEntry') || !sugarEntry)
|
||||
die('Not A Valid Entry Point');
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
* ****************************************************************************** */
|
||||
|
||||
$layout_defs['EcmWorkCards']['subpanel_setup'] = array(
|
||||
'notes' => array(
|
||||
'order' => 10,
|
||||
'module' => 'Notes',
|
||||
'sort_order' => 'asc',
|
||||
'sort_by' => 'date_entered',
|
||||
'subpanel_name' => 'default',
|
||||
'get_subpanel_data' => 'notes',
|
||||
'add_subpanel_data' => 'note_id',
|
||||
'title_key' => 'LBL_NOTES_SUBPANEL_TITLE',
|
||||
'top_buttons' => array(
|
||||
array('widget_class' => 'SubPanelTopCreateButton'),
|
||||
),
|
||||
),
|
||||
);
|
||||
?>
|
||||
72
modules/EcmWorkCards/metadata/subpanels/default.php
Normal file
72
modules/EcmWorkCards/metadata/subpanels/default.php
Normal file
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
|
||||
if (!defined('sugarEntry') || !sugarEntry)
|
||||
die('Not A Valid Entry Point');
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
* ****************************************************************************** */
|
||||
|
||||
|
||||
$module_name = 'EcmWorkCards';
|
||||
$subpanel_layout = array(
|
||||
'top_buttons' => array(
|
||||
array('widget_class' => 'SubPanelTopCreateButton'),
|
||||
array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => $module_name),
|
||||
),
|
||||
'where' => '',
|
||||
'list_fields' => array(
|
||||
'name' => array(
|
||||
'vname' => 'LBL_NAME',
|
||||
'widget_class' => 'SubPanelDetailViewLink',
|
||||
'width' => '45%',
|
||||
),
|
||||
'date_modified' => array(
|
||||
'vname' => 'LBL_DATE_MODIFIED',
|
||||
'width' => '45%',
|
||||
),
|
||||
'edit_button' => array(
|
||||
'vname' => 'LBL_EDIT_BUTTON',
|
||||
'widget_class' => 'SubPanelEditButton',
|
||||
'module' => $module_name,
|
||||
'width' => '4%',
|
||||
),
|
||||
'remove_button' => array(
|
||||
'vname' => 'LBL_REMOVE',
|
||||
'widget_class' => 'SubPanelRemoveButton',
|
||||
'module' => $module_name,
|
||||
'width' => '5%',
|
||||
),
|
||||
),
|
||||
);
|
||||
?>
|
||||
Reference in New Issue
Block a user