CRM-13497 - Add html type to schema xml
[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>
10 <name>id</name>
11 <type>int unsigned</type>
12 <required>true</required>
13 <comment>Price Field</comment>
14 <add>1.8</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 </primaryKey>
20 <field>
21 <name>price_set_id</name>
22 <type>int unsigned</type>
23 <required>true</required>
24 <comment>FK to civicrm_price_set</comment>
25 <add>1.8</add>
26 </field>
27 <foreignKey>
28 <name>price_set_id</name>
29 <table>civicrm_price_set</table>
30 <key>id</key>
31 <add>1.8</add>
32 </foreignKey>
33 <field>
34 <name>name</name>
35 <type>varchar</type>
36 <title>Name</title>
37 <length>255</length>
38 <required>true</required>
39 <comment>Variable name/programmatic handle for this field.</comment>
40 <add>1.8</add>
41 </field>
42 <index>
43 <name>index_name</name>
44 <fieldName>name</fieldName>
45 <add>1.8</add>
46 </index>
47 <field>
48 <name>label</name>
49 <type>varchar</type>
50 <title>Label</title>
51 <length>255</length>
52 <required>true</required>
53 <localizable>true</localizable>
54 <comment>Text for form field label (also friendly name for administering this field).</comment>
55 <add>1.8</add>
56 </field>
57 <field>
58 <name>html_type</name>
59 <type>enum</type>
60 <values>Text, Select, Radio, CheckBox</values>
61 <required>true</required>
62 <add>1.8</add>
63 </field>
64 <field>
65 <name>is_enter_qty</name>
66 <type>boolean</type>
67 <default>0</default>
68 <comment>Enter a quantity for this field?</comment>
69 <add>1.8</add>
70 </field>
71 <field>
72 <name>help_pre</name>
73 <type>text</type>
74 <localizable>true</localizable>
75 <comment>Description and/or help text to display before this field.</comment>
7deea513 76 <html>
77 <type>TextArea</type>
78 </html>
79
6a488035
TO
80 <rows>4</rows>
81 <cols>80</cols>
82 <add>1.8</add>
83 </field>
84 <field>
85 <name>help_post</name>
86 <type>text</type>
87 <localizable>true</localizable>
88 <comment>Description and/or help text to display after this field.</comment>
7deea513 89 <html>
90 <type>TextArea</type>
91 </html>
92
6a488035
TO
93 <rows>4</rows>
94 <cols>80</cols>
95 <add>1.8</add>
96 </field>
97 <field>
98 <name>weight</name>
99 <type>int</type>
100 <default>1</default>
101 <comment>Order in which the fields should appear</comment>
102 <add>1.8</add>
103 </field>
104 <field>
105 <name>is_display_amounts</name>
106 <type>boolean</type>
107 <default>1</default>
108 <comment>Should the price be displayed next to the label for each option?</comment>
109 </field>
110 <field>
111 <name>options_per_line</name>
112 <type>int unsigned</type>
113 <default>1</default>
114 <comment>number of options per line for checkbox and radio</comment>
115 <add>1.8</add>
116 </field>
117 <field>
118 <name>is_active</name>
119 <type>boolean</type>
120 <comment>Is this price field active</comment>
121 <default>1</default>
122 <add>1.8</add>
123 </field>
124 <field>
125 <name>is_required</name>
126 <type>boolean</type>
127 <comment>Is this price field required (value must be > 1)</comment>
128 <default>1</default>
129 <add>1.8</add>
130 </field>
131 <field>
132 <name>active_on</name>
133 <type>datetime</type>
134 <default>NULL</default>
135 <comment>If non-zero, do not show this field before the date specified</comment>
136 <add>1.8</add>
137 </field>
138 <field>
139 <name>expire_on</name>
140 <type>datetime</type>
141 <default>NULL</default>
142 <comment>If non-zero, do not show this field after the date specified</comment>
143 <add>1.8</add>
144 </field>
145 <field>
146 <name>javascript</name>
147 <type>varchar</type>
148 <length>255</length>
149 <comment>Optional scripting attributes for field</comment>
150 <add>1.8</add>
151 </field>
152 <field>
153 <name>visibility_id</name>
154 <type>int unsigned</type>
155 <default>1</default>
156 <comment>Implicit FK to civicrm_option_group with name = \'visibility\'</comment>
157 <add>3.2</add>
4080e473
AS
158 <pseudoconstant>
159 <optionGroupName>visibility</optionGroupName>
160 </pseudoconstant>
3c7d2158 161 </field>
6a488035
TO
162 <field>
163 <name>count</name>
164 <type>int unsigned</type>
165 <default>NULL</default>
166 <comment>Number of Participants Per field</comment>
167 <add>3.2</add>
168 <drop>3.3</drop>
169 </field>
170</table>
171