Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
2 | ||
3 | <table> | |
4 | <base>CRM/Price</base> | |
9da8dc8c | 5 | <class>PriceField</class> |
6a488035 TO |
6 | <name>civicrm_price_field</name> |
7 | <add>1.8</add> | |
8 | <log>true</log> | |
9 | <field> | |
5435b737 | 10 | <name>id</name> |
021ad66c | 11 | <title>Price Field ID</title> |
5435b737 EM |
12 | <type>int unsigned</type> |
13 | <required>true</required> | |
14 | <comment>Price Field</comment> | |
15 | <add>1.8</add> | |
6a488035 TO |
16 | </field> |
17 | <primaryKey> | |
5435b737 EM |
18 | <name>id</name> |
19 | <autoincrement>true</autoincrement> | |
6a488035 TO |
20 | </primaryKey> |
21 | <field> | |
5435b737 | 22 | <name>price_set_id</name> |
021ad66c | 23 | <title>Price Set</title> |
5435b737 EM |
24 | <type>int unsigned</type> |
25 | <required>true</required> | |
26 | <comment>FK to civicrm_price_set</comment> | |
27 | <add>1.8</add> | |
6a488035 TO |
28 | </field> |
29 | <foreignKey> | |
5435b737 EM |
30 | <name>price_set_id</name> |
31 | <table>civicrm_price_set</table> | |
32 | <key>id</key> | |
33 | <add>1.8</add> | |
6a488035 TO |
34 | </foreignKey> |
35 | <field> | |
5435b737 EM |
36 | <name>name</name> |
37 | <type>varchar</type> | |
38 | <title>Name</title> | |
39 | <length>255</length> | |
40 | <required>true</required> | |
41 | <comment>Variable name/programmatic handle for this field.</comment> | |
42 | <add>1.8</add> | |
43 | <html> | |
44 | <type>Text</type> | |
45 | </html> | |
6a488035 TO |
46 | </field> |
47 | <index> | |
5435b737 EM |
48 | <name>index_name</name> |
49 | <fieldName>name</fieldName> | |
50 | <add>1.8</add> | |
6a488035 TO |
51 | </index> |
52 | <field> | |
5435b737 EM |
53 | <name>label</name> |
54 | <type>varchar</type> | |
55 | <title>Label</title> | |
56 | <length>255</length> | |
57 | <required>true</required> | |
58 | <localizable>true</localizable> | |
59 | <comment>Text for form field label (also friendly name for administering this field).</comment> | |
60 | <html> | |
61 | <type>Text</type> | |
62 | </html> | |
63 | <add>1.8</add> | |
64 | </field> | |
65 | <field> | |
66 | <name>html_type</name> | |
67 | <type>varchar</type> | |
68 | <length>12</length> | |
69 | <required>true</required> | |
70 | <pseudoconstant> | |
71 | <callback>CRM_Price_BAO_PriceField::htmlTypes</callback> | |
72 | </pseudoconstant> | |
73 | <add>1.8</add> | |
74 | <html> | |
75 | <type>Select</type> | |
76 | </html> | |
77 | </field> | |
78 | <field> | |
79 | <name>is_enter_qty</name> | |
021ad66c | 80 | <title>Price Field Quantity Required?</title> |
5435b737 EM |
81 | <type>boolean</type> |
82 | <default>0</default> | |
83 | <comment>Enter a quantity for this field?</comment> | |
84 | <add>1.8</add> | |
85 | <html> | |
86 | <type>CheckBox</type> | |
87 | </html> | |
88 | </field> | |
89 | <field> | |
90 | <name>help_pre</name> | |
021ad66c | 91 | <title>Price Field Pre Text</title> |
5435b737 EM |
92 | <type>text</type> |
93 | <localizable>true</localizable> | |
94 | <comment>Description and/or help text to display before this field.</comment> | |
95 | <html> | |
96 | <type>TextArea</type> | |
97 | <rows>4</rows> | |
98 | <cols>80</cols> | |
99 | </html> | |
100 | <add>1.8</add> | |
101 | </field> | |
102 | <field> | |
103 | <name>help_post</name> | |
0b4d9dfc | 104 | <title>Price Field Post Text</title> |
5435b737 EM |
105 | <type>text</type> |
106 | <localizable>true</localizable> | |
107 | <comment>Description and/or help text to display after this field.</comment> | |
108 | <html> | |
109 | <type>TextArea</type> | |
110 | <rows>4</rows> | |
111 | <cols>80</cols> | |
112 | </html> | |
113 | <add>1.8</add> | |
114 | </field> | |
115 | <field> | |
116 | <name>weight</name> | |
7ecddde4 | 117 | <title>Order</title> |
5435b737 EM |
118 | <type>int</type> |
119 | <default>1</default> | |
120 | <comment>Order in which the fields should appear</comment> | |
121 | <add>1.8</add> | |
122 | <html> | |
123 | <type>Select</type> | |
124 | </html> | |
125 | </field> | |
126 | <field> | |
127 | <name>is_display_amounts</name> | |
021ad66c | 128 | <title>Price Field Show Amounts?</title> |
5435b737 EM |
129 | <type>boolean</type> |
130 | <default>1</default> | |
131 | <comment>Should the price be displayed next to the label for each option?</comment> | |
132 | <html> | |
133 | <type>CheckBox</type> | |
134 | </html> | |
135 | </field> | |
136 | <field> | |
137 | <name>options_per_line</name> | |
021ad66c | 138 | <title>Price Field Options per Row</title> |
5435b737 EM |
139 | <type>int unsigned</type> |
140 | <default>1</default> | |
141 | <comment>number of options per line for checkbox and radio</comment> | |
142 | <add>1.8</add> | |
143 | <html> | |
144 | <type>Text</type> | |
614d72ec | 145 | </html> |
6a488035 TO |
146 | </field> |
147 | <field> | |
5435b737 | 148 | <name>is_active</name> |
021ad66c | 149 | <title>Price Field Is Active?</title> |
5435b737 EM |
150 | <type>boolean</type> |
151 | <comment>Is this price field active</comment> | |
152 | <default>1</default> | |
153 | <add>1.8</add> | |
154 | <html> | |
155 | <type>CheckBox</type> | |
156 | </html> | |
157 | </field> | |
158 | <field> | |
159 | <name>is_required</name> | |
021ad66c | 160 | <title>Price Field is Required?</title> |
5435b737 EM |
161 | <type>boolean</type> |
162 | <comment>Is this price field required (value must be > 1)</comment> | |
163 | <default>1</default> | |
164 | <add>1.8</add> | |
165 | <html> | |
166 | <type>CheckBox</type> | |
167 | </html> | |
168 | </field> | |
169 | <field> | |
170 | <name>active_on</name> | |
021ad66c | 171 | <title>Price Field Start Date</title> |
5435b737 EM |
172 | <type>datetime</type> |
173 | <default>NULL</default> | |
174 | <comment>If non-zero, do not show this field before the date specified</comment> | |
175 | <add>1.8</add> | |
176 | <html> | |
177 | <type>CheckBox</type> | |
178 | </html> | |
179 | </field> | |
180 | <field> | |
181 | <name>expire_on</name> | |
021ad66c | 182 | <title>Price Field End Date</title> |
5435b737 EM |
183 | <type>datetime</type> |
184 | <default>NULL</default> | |
185 | <comment>If non-zero, do not show this field after the date specified</comment> | |
186 | <add>1.8</add> | |
187 | <html> | |
188 | <type>Select Date</type> | |
189 | </html> | |
190 | </field> | |
191 | <field> | |
192 | <name>javascript</name> | |
021ad66c | 193 | <title>Price Field Javascript</title> |
5435b737 EM |
194 | <type>varchar</type> |
195 | <length>255</length> | |
196 | <comment>Optional scripting attributes for field</comment> | |
197 | <add>1.8</add> | |
198 | <html> | |
199 | <type>Text</type> | |
200 | </html> | |
201 | </field> | |
202 | <field> | |
203 | <name>visibility_id</name> | |
021ad66c | 204 | <title>Price Field Visibility</title> |
5435b737 EM |
205 | <type>int unsigned</type> |
206 | <default>1</default> | |
c8875c77 | 207 | <comment>Implicit FK to civicrm_option_group with name = 'visibility'</comment> |
5435b737 EM |
208 | <add>3.2</add> |
209 | <pseudoconstant> | |
210 | <optionGroupName>visibility</optionGroupName> | |
211 | </pseudoconstant> | |
212 | <html> | |
213 | <type>Select</type> | |
214 | </html> | |
215 | </field> | |
216 | <field> | |
217 | <name>count</name> | |
218 | <type>int unsigned</type> | |
219 | <default>NULL</default> | |
220 | <comment>Number of Participants Per field</comment> | |
221 | <add>3.2</add> | |
222 | <drop>3.3</drop> | |
223 | </field> | |
6a488035 TO |
224 | </table> |
225 |