PageRenderTime 24ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/tests/modules/UpgradeWizard/SugarMerge/siupgrade_metadata_files/custom/modules/Opportunities/metadata/editviewdefs.php

https://github.com/phpbugs/sugarcrm_dev
PHP | 402 lines | 390 code | 5 blank | 7 comment | 0 complexity | 3cbbc287b0799fc238f380126543a670 MD5 | raw file
  1. <?php
  2. $viewdefs ['Opportunities'] =
  3. array (
  4. 'EditView' =>
  5. array (
  6. 'templateMeta' =>
  7. array (
  8. 'maxColumns' => '2',
  9. 'widths' =>
  10. array (
  11. 0 =>
  12. array (
  13. 'label' => '10',
  14. 'field' => '30',
  15. ),
  16. 1 =>
  17. array (
  18. 'label' => '10',
  19. 'field' => '30',
  20. ),
  21. ),
  22. 'javascript' => '{$PROBABILITY_SCRIPT}',
  23. ),
  24. 'panels' =>
  25. array (
  26. 'default' =>
  27. array (
  28. 0 =>
  29. array (
  30. 0 =>
  31. array (
  32. 'name' => 'name',
  33. 'displayParams' =>
  34. array (
  35. 'required' => true,
  36. ),
  37. 'label' => 'LBL_OPPORTUNITY_NAME',
  38. ),
  39. 1 =>
  40. array (
  41. 'name' => 'currency_id',
  42. 'label' => 'LBL_CURRENCY',
  43. ),
  44. ),
  45. 1 =>
  46. array (
  47. 0 =>
  48. array (
  49. 'name' => 'account_name',
  50. 'label' => 'LBL_ACCOUNT_NAME',
  51. ),
  52. 1 =>
  53. array (
  54. 'name' => 'amount',
  55. 'displayParams' =>
  56. array (
  57. 'required' => true,
  58. ),
  59. 'label' => 'LBL_AMOUNT',
  60. ),
  61. ),
  62. // BEGIN jostrow MoofCart customization
  63. // See ITRequest #9622
  64. '1.5' => array(
  65. NULL,
  66. array(
  67. 'name' => 'discount_code_c',
  68. 'label' => 'LBL_DISCOUNT_CODE',
  69. ),
  70. ),
  71. // END jostrow MoofCart customization
  72. 2 =>
  73. array (
  74. 0 =>
  75. array (
  76. 'name' => 'opportunity_type',
  77. 'label' => 'LBL_TYPE',
  78. ),
  79. 1 =>
  80. array (
  81. 'name' => 'date_closed',
  82. 'displayParams' =>
  83. array (
  84. 'required' => true,
  85. ),
  86. 'label' => 'LBL_DATE_CLOSED',
  87. ),
  88. ),
  89. 3 =>
  90. array (
  91. 0 =>
  92. array (
  93. 'name' => 'operating_system',
  94. 'label' => 'LBL_OPERATING_SYSTEM',
  95. ),
  96. 1 =>
  97. array (
  98. 'name' => 'users',
  99. 'label' => 'LBL_USERS_1',
  100. ),
  101. ),
  102. 4 =>
  103. array (
  104. 0 =>
  105. array (
  106. 'name' => 'campaign_name',
  107. 'label' => 'LBL_CAMPAIGN',
  108. ),
  109. 1 =>
  110. array (
  111. 'name' => 'additional_support_cases_c',
  112. 'label' => 'Additional_Support_Cases__c',
  113. ),
  114. ),
  115. 5 =>
  116. array (
  117. 1 =>
  118. array (
  119. 'name' => 'additional_training_credits_c',
  120. 'label' => 'Learning_Credits__c',
  121. ),
  122. ),
  123. 6 =>
  124. array (
  125. 0 =>
  126. array (
  127. 'name' => 'email_client',
  128. 'label' => 'LBL_EMAIL_CLIENT',
  129. ),
  130. 1 =>
  131. array (
  132. 'name' => 'sales_stage',
  133. 'displayParams' =>
  134. array (
  135. 'required' => true,
  136. ),
  137. 'label' => 'LBL_SALES_STAGE',
  138. 'customCode' => '
  139. <script src=\'custom/include/javascript/custom_javascript.js\'></script>
  140. {html_options id="sales_stage" name="sales_stage" options=$fields.sales_stage.options selected=$fields.sales_stage.value onChange=\'checkOpportunitySalesStage()\'}
  141. ',
  142. ),
  143. ),
  144. 7 =>
  145. array (
  146. 1 =>
  147. array (
  148. 'name' => 'probability',
  149. 'label' => 'LBL_PROBABILITY',
  150. ),
  151. ),
  152. 8 =>
  153. array (
  154. ),
  155. 9 =>
  156. array (
  157. 1 =>
  158. array (
  159. 'name' => 'Term_c',
  160. 'label' => 'Term__c',
  161. ),
  162. ),
  163. 10 =>
  164. array (
  165. 0 =>
  166. array (
  167. 'name' => 'lead_source',
  168. 'label' => 'LBL_LEAD_SOURCE',
  169. ),
  170. 1 =>
  171. array (
  172. 'name' => 'Revenue_Type_c',
  173. 'label' => 'Revenue_Type__c',
  174. ),
  175. ),
  176. 11 =>
  177. array (
  178. 0 =>
  179. array (
  180. 'name' => 'partner_name',
  181. 'label' => 'LBL_PARTNER_NAME',
  182. ),
  183. 1 =>
  184. array (
  185. 'name' => 'renewal_date_c',
  186. 'label' => 'Renewal_Date_c',
  187. ),
  188. ),
  189. 12 =>
  190. array (
  191. 0 =>
  192. array (
  193. 'name' => 'current_solution',
  194. 'label' => 'LBL_CURRENT_SOLUTION',
  195. ),
  196. 1 =>
  197. array (
  198. 'name' => 'order_number',
  199. 'label' => 'LBL_ORDER_NUMBER',
  200. ),
  201. ),
  202. 13 =>
  203. array (
  204. 1 =>
  205. array (
  206. 'name' => 'order_type_c',
  207. 'label' => 'LBL_ORDER_TYPE_C',
  208. ),
  209. ),
  210. 14 =>
  211. array (
  212. 0 =>
  213. array (
  214. 'name' => 'competitor_1',
  215. 'label' => 'LBL_COMPETITOR_1',
  216. ),
  217. 1 =>
  218. array (
  219. 'name' => 'true_up_c',
  220. 'label' => 'LBL_TRUE_UP',
  221. ),
  222. ),
  223. 15 =>
  224. array (
  225. 0 =>
  226. array (
  227. 'name' => 'competitor_2',
  228. 'label' => 'LBL_COMPETITOR_2',
  229. ),
  230. 1 =>
  231. array (
  232. 'name' => 'next_step',
  233. 'label' => 'LBL_NEXT_STEP',
  234. 'customCode' => '<textarea id="{$fields.next_step.name}" name="{$fields.next_step.name}" rows="4" cols="60" title=\'\' tabindex="1">{$fields.next_step.value}</textarea>',
  235. ),
  236. ),
  237. 16 =>
  238. array (
  239. 0 =>
  240. array (
  241. 'name' => 'competitor_3',
  242. 'label' => 'LBL_COMPETITOR_3',
  243. ),
  244. 1 =>
  245. array (
  246. 'name' => 'next_step_due_date',
  247. 'label' => 'LBL_NEXT_STEP_DUE_DATE',
  248. ),
  249. ),
  250. 17 =>
  251. array (
  252. 0 =>
  253. array (
  254. 'name' => 'competitor_expiration_c',
  255. 'label' => 'LBL_COMPETITOR_EXPIRATION',
  256. ),
  257. ),
  258. 18 =>
  259. array (
  260. 0 =>
  261. array (
  262. 'name' => 'demo_c',
  263. 'label' => 'Demo_1',
  264. ),
  265. 1 =>
  266. array (
  267. 'name' => 'top20deal_c',
  268. 'label' => 'LBL_TOP20DEAL',
  269. ),
  270. ),
  271. 19 =>
  272. array (
  273. 0 =>
  274. array (
  275. 'name' => 'demo_date_c',
  276. 'label' => 'Demo Date',
  277. ),
  278. ),
  279. 20 =>
  280. array (
  281. 0 =>
  282. array (
  283. 'name' => 'evaluation',
  284. 'label' => 'LBL_EVALUATION',
  285. ),
  286. 1 =>
  287. array (
  288. 'name' => 'closed_lost_reason_c',
  289. 'label' => 'LBL_CLOSED_LOST_REASON_C',
  290. //** BEGIN CUSTOMIZATION EDDY :: ITTix 13077
  291. 'customCode' => '
  292. <script src=\'custom/include/javascript/custom_javascript.js\'></script>
  293. {html_options id="closed_lost_reason_c" name="closed_lost_reason_c" options=$fields.closed_lost_reason_c.options selected=$fields.closed_lost_reason_c.value onChange=\'checkOppClosedReasonDependentDropdown("closed_lost_reason_detail_c", true)\' }
  294. ',
  295. //** END CUSTOMIZATION EDDY :: ITTix 13077
  296. ),
  297. ),
  298. 21 =>
  299. array (
  300. 0 =>
  301. array (
  302. 'name' => 'evaluation_start_date',
  303. 'label' => 'LBL_EVALUATION_START_DATE',
  304. ),
  305. 1 =>
  306. array (
  307. 'name' => 'closed_lost_reason_detail_c',
  308. 'label' => 'LBL_CLOSED_LOST_REASON_DETAIL',
  309. ),
  310. ),
  311. 22 =>
  312. array (
  313. 0 =>
  314. array (
  315. 'name' => 'Evaluation_Close_Date_c',
  316. 'label' => 'Evaluation_Close_Date__c',
  317. ),
  318. 1 =>
  319. array (
  320. 'name' => 'primary_reason_competitor_c',
  321. 'label' => 'LBL_PRIMARY_REASON_COMPETITOR',
  322. ),
  323. ),
  324. 23 =>
  325. array (
  326. 0 => array(),
  327. 1 =>
  328. array (
  329. 'name' => 'closed_lost_description',
  330. 'label' => 'LBL_CLOSED_LOST_DESCRIPTION',
  331. //** BEGIN CUSTOMIZATION EDDY :: ITTix 13077
  332. 'customCode' => '
  333. <textarea id="{$fields.closed_lost_description.name}" onChange=\'checkOppClosedReasonDependentDropdown("closed_lost_reason_detail_c", true)\' cols="60" rows="4" name="{$fields.closed_lost_description.name}">{$fields.closed_lost_description.value}</textarea>
  334. <script>
  335. detail2val = \'{$fields.closed_lost_reason_detail_c.value}\';
  336. checkOppClosedReasonDependentDropdown("{$fields.closed_lost_reason_detail_c.name}", false,detail2val);//call initial drop down rendering
  337. </script>
  338. ',
  339. //** END CUSTOMIZATION EDDY :: ITTix 13077
  340. ),
  341. ),
  342. 24 =>
  343. array (
  344. 0 =>
  345. array(
  346. 'name' => 'partner_assigned_to_c',
  347. 'label' => 'Partner_Assigned_To_c',
  348. ),
  349. 1 =>
  350. array (
  351. 'name' => 'accepted_by_partner_c',
  352. 'label' => 'LBL_ACCEPTED_BY_PARTNER',
  353. ),
  354. ),
  355. 25 =>
  356. array (
  357. 0 =>
  358. array (
  359. 'name' => 'team_name',
  360. 'displayParams' =>
  361. array (
  362. 'required' => true,
  363. ),
  364. 'label' => 'LBL_TEAM',
  365. ),
  366. 1 =>
  367. array (
  368. 'name' => 'partner_contact_c',
  369. 'label' => 'LBL_PARTNER_CONTACT',
  370. ),
  371. ),
  372. 26 =>
  373. array (
  374. 0 =>
  375. array (
  376. 'name' => 'assigned_user_name',
  377. 'label' => 'LBL_ASSIGNED_TO_NAME',
  378. ),
  379. 1 =>
  380. array (
  381. 'name' => 'associated_rep_c',
  382. 'label' => 'Associated_Rep_c',
  383. ),
  384. ),
  385. 27 =>
  386. array (
  387. 0 =>
  388. array (
  389. 'name' => 'description',
  390. 'label' => 'LBL_DESCRIPTION',
  391. ),
  392. ),
  393. ),
  394. ),
  395. ),
  396. );
  397. ?>