All Data Structures Functions Variables Pages
LeadEditAndDetailsView.php
1 <?php
2  /*********************************************************************************
3  * Zurmo is a customer relationship management program developed by
4  * Zurmo, Inc. Copyright (C) 2017 Zurmo Inc.
5  *
6  * Zurmo is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Affero General Public License version 3 as published by the
8  * Free Software Foundation with the addition of the following permission added
9  * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
10  * IN WHICH THE COPYRIGHT IS OWNED BY ZURMO, ZURMO DISCLAIMS THE WARRANTY
11  * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
12  *
13  * Zurmo is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15  * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Affero General Public License along with
19  * this program; if not, see http://www.gnu.org/licenses or write to the Free
20  * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21  * 02110-1301 USA.
22  *
23  * You can contact Zurmo, Inc. with a mailing address at 27 North Wacker Drive
24  * Suite 370 Chicago, IL 60606. or at email address contact@zurmo.com.
25  *
26  * The interactive user interfaces in original and modified versions
27  * of this program must display Appropriate Legal Notices, as required under
28  * Section 5 of the GNU Affero General Public License version 3.
29  *
30  * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
31  * these Appropriate Legal Notices must retain the display of the Zurmo
32  * logo and Zurmo copyright notice. If the display of the logo is not reasonably
33  * feasible for technical reasons, the Appropriate Legal Notices must display the words
34  * "Copyright Zurmo Inc. 2017. All rights reserved".
35  ********************************************************************************/
36 
38  {
39  public static function getDefaultMetadata()
40  {
41  $metadata = array(
42  'global' => array(
43  'toolbar' => array(
44  'elements' => array(
45  array('type' => 'SaveButton', 'renderType' => 'Edit'),
46  array('type' => 'CancelLink', 'renderType' => 'Edit'),
47  array('type' => 'EditLink', 'renderType' => 'Details'),
48  array('type' => 'AuditEventsModalListLink', 'renderType' => 'Details'),
49  array('type' => 'ConvertLink', 'renderType' => 'Details'),
50  array('type' => 'CopyLink', 'renderType' => 'Details'),
51  array('type' => 'LeadDeleteLink', 'renderType' => 'Details'),
52  ),
53  ),
54  'derivedAttributeTypes' => array(
55  'TitleFullName',
56  'LeadStateDropDown',
57  ),
58  'nonPlaceableAttributeNames' => array(
59  'title',
60  'firstName',
61  'lastName',
62  'state',
63  'account',
64  'latestActivityDateTime'
65  ),
66  'panelsDisplayType' => FormLayout::PANELS_DISPLAY_TYPE_ALL,
67  'panels' => array(
68  array(
69  'rows' => array(
70  array('cells' =>
71  array(
72  array(
73  'elements' => array(
74  array('attributeName' => 'null', 'type' => 'TitleFullName'),
75  ),
76  ),
77  )
78  ),
79  array('cells' =>
80  array(
81  array(
82  'elements' => array(
83  array('attributeName' => 'null', 'type' => 'LeadStateDropDown'),
84  ),
85  ),
86  )
87  ),
88  array('cells' =>
89  array(
90  array(
91  'elements' => array(
92  array('attributeName' => 'jobTitle', 'type' => 'Text'),
93  ),
94  ),
95  )
96  ),
97  array('cells' =>
98  array(
99  array(
100  'elements' => array(
101  array('attributeName' => 'companyName', 'type' => 'Text'),
102  ),
103  ),
104  )
105  ),
106  array('cells' =>
107  array(
108  array(
109  'elements' => array(
110  array('attributeName' => 'department', 'type' => 'Text'),
111  ),
112  ),
113  )
114  ),
115  array('cells' =>
116  array(
117  array(
118  'elements' => array(
119  array('attributeName' => 'officePhone', 'type' => 'Phone'),
120  ),
121  ),
122  )
123  ),
124  array('cells' =>
125  array(
126  array(
127  'elements' => array(
128  array('attributeName' => 'source', 'type' => 'DropDown', 'addBlank' => true),
129  ),
130  ),
131  )
132  ),
133  array('cells' =>
134  array(
135  array(
136  'elements' => array(
137  array('attributeName' => 'mobilePhone', 'type' => 'Phone'),
138  ),
139  ),
140  )
141  ),
142  array('cells' =>
143  array(
144  array(
145  'elements' => array(
146  array('attributeName' => 'officeFax', 'type' => 'Phone'),
147  ),
148  ),
149  )
150  ),
151  array('cells' =>
152  array(
153  array(
154  'elements' => array(
155  array('attributeName' => 'primaryEmail', 'type' => 'EmailAddressInformation'),
156  ),
157  ),
158  )
159  ),
160  array('cells' =>
161  array(
162  array(
163  'elements' => array(
164  array('attributeName' => 'secondaryEmail', 'type' => 'EmailAddressInformation'),
165  ),
166  ),
167  )
168  ),
169  array('cells' =>
170  array(
171  array(
172  'elements' => array(
173  array('attributeName' => 'primaryAddress', 'type' => 'Address'),
174  ),
175  ),
176  )
177  ),
178  array('cells' =>
179  array(
180  array(
181  'elements' => array(
182  array('attributeName' => 'secondaryAddress', 'type' => 'Address'),
183  ),
184  ),
185  )
186  ),
187  array('cells' =>
188  array(
189  array(
190  'elements' => array(
191  array('attributeName' => 'industry', 'type' => 'DropDown', 'addBlank' => true),
192  ),
193  ),
194  )
195  ),
196  array('cells' =>
197  array(
198  array(
199  'elements' => array(
200  array('attributeName' => 'website', 'type' => 'Url'),
201  ),
202  ),
203  )
204  ),
205  array('cells' =>
206  array(
207  array(
208  'elements' => array(
209  array('attributeName' => 'description', 'type' => 'TextArea'),
210  ),
211  ),
212  )
213  ),
214  ),
215  ),
216  ),
217  ),
218  );
219  return $metadata;
220  }
221 
222  protected function getNewModelTitleLabel()
223  {
224  return Zurmo::t('LeadsModule', 'Create LeadsModuleSingularLabel',
226  }
227 
228  protected function renderAfterFormLayoutForDetailsContent()
229  {
230  return ContactDetailsViewUtil::renderAfterFormLayoutForDetailsContent($this->getModel(), null);
231  }
232 
233  public static function getDesignerRulesType()
234  {
235  return 'DetailsViewOnlyForUserOwnerEditAndDetailsView';
236  }
237  }
238 ?>
static getTranslationParamsForAllModules()
Definition: LabelUtil.php:75
Generated on Tue Jun 2 2020 07:10:32