PageRenderTime 53ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/modules/UpgradeWizard/SugarMerge/ce_metadata_files/custom/modules/Contacts/metadata/editviewdefs.php

https://bitbucket.org/cviolette/sugarcrm
PHP | 267 lines | 231 code | 2 blank | 34 comment | 0 complexity | f441279b2cb96617a6dbe0da49c3c5d1 MD5 | raw file
Possible License(s): LGPL-2.1, MPL-2.0-no-copyleft-exception, BSD-3-Clause
  1. <?php
  2. /*********************************************************************************
  3. * SugarCRM Community Edition is a customer relationship management program developed by
  4. * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
  5. *
  6. * This program 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 SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
  11. * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
  12. *
  13. * This program 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 SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
  24. * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
  25. *
  26. * The interactive user interfaces in modified source and object code 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 "Powered by
  32. * SugarCRM" logo. If the display of the logo is not reasonably feasible for
  33. * technical reasons, the Appropriate Legal Notices must display the words
  34. * "Powered by SugarCRM".
  35. ********************************************************************************/
  36. $viewdefs ['Contacts'] =
  37. array (
  38. 'EditView' =>
  39. array (
  40. 'templateMeta' =>
  41. array (
  42. 'form' =>
  43. array (
  44. 'hidden' =>
  45. array (
  46. 0 => '<input type="hidden" name="opportunity_id" value="{$smarty.request.opportunity_id}">',
  47. 1 => '<input type="hidden" name="case_id" value="{$smarty.request.case_id}">',
  48. 2 => '<input type="hidden" name="bug_id" value="{$smarty.request.bug_id}">',
  49. 3 => '<input type="hidden" name="email_id" value="{$smarty.request.email_id}">',
  50. 4 => '<input type="hidden" name="inbound_email_id" value="{$smarty.request.inbound_email_id}">',
  51. ),
  52. ),
  53. 'maxColumns' => '2',
  54. 'widths' =>
  55. array (
  56. 0 =>
  57. array (
  58. 'label' => '10',
  59. 'field' => '30',
  60. ),
  61. 1 =>
  62. array (
  63. 'label' => '10',
  64. 'field' => '30',
  65. ),
  66. ),
  67. 'useTabs' => false,
  68. ),
  69. 'panels' =>
  70. array (
  71. 'lbl_contact_information' =>
  72. array (
  73. 0 =>
  74. array (
  75. 0 =>
  76. array (
  77. 'name' => 'first_name',
  78. 'customCode' => '{html_options name="salutation" options=$fields.salutation.options selected=$fields.salutation.value}&nbsp;<input name="first_name" size="25" maxlength="25" type="text" value="{$fields.first_name.value}">',
  79. ),
  80. ),
  81. 1 =>
  82. array (
  83. 0 =>
  84. array (
  85. 'name' => 'last_name',
  86. 'displayParams' =>
  87. array (
  88. 'required' => true,
  89. ),
  90. ),
  91. 1 =>
  92. array (
  93. 'name' => 'phone_mobile',
  94. 'comment' => 'Mobile phone number of the contact',
  95. 'label' => 'LBL_MOBILE_PHONE',
  96. ),
  97. ),
  98. 2 =>
  99. array (
  100. 0 =>
  101. array (
  102. 'name' => 'title',
  103. 'comment' => 'The title of the contact',
  104. 'label' => 'LBL_TITLE',
  105. ),
  106. 1 =>
  107. array (
  108. 'name' => 'phone_work',
  109. 'comment' => 'Work phone number of the contact',
  110. 'label' => 'LBL_OFFICE_PHONE',
  111. ),
  112. ),
  113. 3 =>
  114. array (
  115. 0 =>
  116. array (
  117. 'name' => 'department',
  118. 'comment' => 'The department of the contact',
  119. 'label' => 'LBL_DEPARTMENT',
  120. ),
  121. 1 =>
  122. array (
  123. 'name' => 'phone_fax',
  124. 'comment' => 'Contact fax number',
  125. 'label' => 'LBL_FAX_PHONE',
  126. ),
  127. ),
  128. 4 =>
  129. array (
  130. 0 =>
  131. array (
  132. 'name' => 'account_name',
  133. 'displayParams' =>
  134. array (
  135. 'key' => 'billing',
  136. 'copy' => 'primary',
  137. 'billingKey' => 'primary',
  138. 'additionalFields' =>
  139. array (
  140. 'phone_office' => 'phone_work',
  141. ),
  142. ),
  143. ),
  144. ),
  145. 5 =>
  146. array (
  147. 0 =>
  148. array (
  149. 'name' => 'primary_address_street',
  150. 'hideLabel' => true,
  151. 'type' => 'address',
  152. 'displayParams' =>
  153. array (
  154. 'key' => 'primary',
  155. 'rows' => 2,
  156. 'cols' => 30,
  157. 'maxlength' => 150,
  158. ),
  159. ),
  160. 1 =>
  161. array (
  162. 'name' => 'alt_address_street',
  163. 'hideLabel' => true,
  164. 'colspan' => 2,
  165. 'type' => 'address',
  166. 'displayParams' =>
  167. array (
  168. 'key' => 'alt',
  169. 'copy' => 'primary',
  170. 'rows' => 2,
  171. 'cols' => 30,
  172. 'maxlength' => 150,
  173. ),
  174. ),
  175. ),
  176. 6 =>
  177. array (
  178. 0 =>
  179. array (
  180. 'name' => 'email1',
  181. 'studio' => 'false',
  182. 'label' => 'LBL_EMAIL_ADDRESS',
  183. ),
  184. ),
  185. 7 =>
  186. array (
  187. 0 =>
  188. array (
  189. 'name' => 'description',
  190. 'label' => 'LBL_DESCRIPTION',
  191. ),
  192. ),
  193. ),
  194. 'lbl_editview_panel1' =>
  195. array (
  196. 0 =>
  197. array (
  198. 0 =>
  199. array (
  200. 'name' => 'test_c',
  201. 'label' => 'LBL_TEST',
  202. ),
  203. 1 =>
  204. array (
  205. 'name' => 'test2_c',
  206. 'label' => 'LBL_TEST2',
  207. ),
  208. ),
  209. ),
  210. 'LBL_PANEL_ADVANCED' =>
  211. array (
  212. 0 =>
  213. array (
  214. 0 =>
  215. array (
  216. 'name' => 'report_to_name',
  217. 'label' => 'LBL_REPORTS_TO',
  218. ),
  219. 1 =>
  220. array (
  221. 'name' => 'sync_contact',
  222. 'comment' => 'Synch to outlook? (Meta-Data only)',
  223. 'label' => 'LBL_SYNC_CONTACT',
  224. ),
  225. ),
  226. 1 =>
  227. array (
  228. 0 =>
  229. array (
  230. 'name' => 'lead_source',
  231. 'comment' => 'How did the contact come about',
  232. 'label' => 'LBL_LEAD_SOURCE',
  233. ),
  234. 1 =>
  235. array (
  236. 'name' => 'do_not_call',
  237. 'comment' => 'An indicator of whether contact can be called',
  238. 'label' => 'LBL_DO_NOT_CALL',
  239. ),
  240. ),
  241. 2 =>
  242. array (
  243. 0 =>
  244. array (
  245. 'name' => 'campaign_name',
  246. 'comment' => 'The first campaign name for Contact (Meta-data only)',
  247. 'label' => 'LBL_CAMPAIGN',
  248. ),
  249. ),
  250. ),
  251. 'LBL_PANEL_ASSIGNMENT' =>
  252. array (
  253. 0 =>
  254. array (
  255. 0 =>
  256. array (
  257. 'name' => 'assigned_user_name',
  258. 'label' => 'LBL_ASSIGNED_TO_NAME',
  259. ),
  260. ),
  261. ),
  262. ),
  263. ),
  264. );
  265. ?>