Guest User

Untitled

a guest
Apr 19th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.55 KB | None | 0 0
  1. <script type="text/javascript">
  2.  
  3. //<![CDATA[
  4.  
  5. var rule_form_items = [{
  6. title: 'a',
  7. xtype: "hidden",
  8. anchor: "95%",
  9. value: 3,
  10. name: "contact"
  11. }, {
  12. title: 'a',
  13. xtype: "hidden",
  14. anchor: "95%",
  15. name: "rule[owner_id]"
  16. }, {
  17. title: 'a',
  18. xtype: "hidden",
  19. anchor: "95%",
  20. name: "rule[controllable_source_id]",
  21. value: 17
  22. }, {
  23. title: 'a',
  24. xtype: "hidden",
  25. anchor: "95%",
  26. name: "rule[controllable_source_type]",
  27. value: "Subscriber"
  28. }, {
  29. title: 'a',
  30. boxLabel: "Allow",
  31. xtype: "radio",
  32. checked: true,
  33. anchor: "95%",
  34. name: "rule__acl__",
  35. fieldLabel: "Acl",
  36. currentValue: 3,
  37. hideLabel: true,
  38. inputValue: 3
  39. }, {
  40. title: 'a',
  41. boxLabel: "Disallow",
  42. xtype: "radio",
  43. checked: false,
  44. anchor: "95%",
  45. name: "rule__acl__",
  46. fieldLabel: "Acl",
  47. currentValue: 3,
  48. hideLabel: true,
  49. inputValue: 0
  50. }, {
  51. title: 'a',
  52. xtype: 'panel',
  53. html: '"ct4_jabber4" to'
  54. }, {
  55. title: 'a',
  56. boxLabel: "Contact me on",
  57. xtype: "radio",
  58. checked: true,
  59. anchor: "95%",
  60. name: "rule__source_op__",
  61. fieldLabel: "Source Op",
  62. currentValue: 3,
  63. hideLabel: true,
  64. inputValue: 3
  65. }, {
  66. title: 'a',
  67. id: 'mode_target1',
  68. fieldLabel: '',
  69. hideLabel: true,
  70. xtype: 'combo',
  71. name: 'new_controllable_target_mode1',
  72. hiddenName: 'rule[new_controllable_target][mode1]',
  73. store: new Ext.data.SimpleStore({
  74. fields: ["id", "display"],
  75. data: [["AnonymousMode-1", "Any Mode"], ["Mode-19", "PICUPj"], ["Mode-21", "jabber1 dummy number"], ["Mode-22", "real number"], ["Mode-25", "My IM"]]
  76. }),
  77. valueField: 'id',
  78. displayField: 'display',
  79. mode: 'local',
  80. typeAhead: true,
  81. triggerAction: 'all',
  82. selectOnFocus: true
  83. }, {
  84. title: 'a',
  85. boxLabel: "Search for me using",
  86. xtype: "radio",
  87. checked: false,
  88. anchor: "95%",
  89. name: "rule__source_op__",
  90. fieldLabel: "Source Op",
  91. currentValue: 3,
  92. hideLabel: true,
  93. inputValue: 1
  94. }, {
  95. title: 'a',
  96. boxLabel: "Add me as a contact",
  97. xtype: "radio",
  98. checked: false,
  99. anchor: "95%",
  100. name: "rule__source_op__",
  101. fieldLabel: "Source Op",
  102. currentValue: 3,
  103. hideLabel: true,
  104. inputValue: 4
  105. }, {
  106. title: 'a',
  107. id: 'mode_target2',
  108. fieldLabel: '',
  109. hideLabel: true,
  110. xtype: 'combo',
  111. name: 'new_controllable_target_mode2',
  112. hiddenName: 'rule[new_controllable_target][mode2]',
  113. store: new Ext.data.SimpleStore({
  114. fields: ["id", "display"],
  115. data: [["AnonymousMode-1", "Any Mode"], ["Mode-19", "PICUPj"], ["Mode-21", "jabber1 dummy number"], ["Mode-22", "real number"], ["Mode-25", "My IM"]]
  116. }),
  117. valueField: 'id',
  118. displayField: 'display',
  119. mode: 'local',
  120. typeAhead: true,
  121. triggerAction: 'all',
  122. selectOnFocus: true
  123. }, {
  124. title: 'a',
  125. id: 'user_attribute_target',
  126. fieldLabel: '',
  127. hideLabel: true,
  128. xtype: 'combo',
  129. name: 'new_controllable_target_attribute',
  130. hiddenName: 'rule[new_controllable_target][attribute]',
  131. store: new Ext.data.SimpleStore({
  132. fields: ["id", "display"],
  133. data: [["AnonymousAttribute-1", "Any Attribute"], ["UserAttribute-10", "First Name"], ["UserAttribute-14", "Last Name"], ["UserAttribute-18", "Username"]]
  134. }),
  135. valueField: 'id',
  136. displayField: 'display',
  137. mode: 'local',
  138. typeAhead: true,
  139. triggerAction: 'all',
  140. selectOnFocus: true
  141. }];
  142.  
  143.  
  144. //]]>
  145.  
  146. </script>
Add Comment
Please, Sign In to add comment