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