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