Merge pull request #21905 from braders/feature/add-to-group-translatable-errors
[civicrm-core.git] / xml / schema / Mailing / Component.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/Mailing</base>
807f8008 5 <class>MailingComponent</class>
6a488035
TO
6 <name>civicrm_mailing_component</name>
7 <comment>Stores information about the mailing components (header/footer).</comment>
d31fb4e3 8 <component>CiviMail</component>
6a488035 9 <field>
5435b737 10 <name>id</name>
0d94665e 11 <title>Mailing Component ID</title>
5435b737
EM
12 <type>int unsigned</type>
13 <required>true</required>
0481e12c
A
14 <html>
15 <type>Number</type>
16 </html>
6a488035
TO
17 </field>
18 <primaryKey>
5435b737
EM
19 <name>id</name>
20 <autoincrement>true</autoincrement>
6a488035
TO
21 </primaryKey>
22 <field>
5435b737
EM
23 <name>name</name>
24 <title>Component Name</title>
25 <type>varchar</type>
26 <length>64</length>
27 <comment>The name of this component</comment>
6a488035
TO
28 </field>
29 <field>
5435b737 30 <name>component_type</name>
0d94665e 31 <title>Mailing Component Type</title>
5435b737
EM
32 <type>varchar</type>
33 <length>12</length>
34 <comment>Type of Component.</comment>
35 <pseudoconstant>
36 <callback>CRM_Core_SelectValues::mailingComponents</callback>
37 </pseudoconstant>
38 <html>
39 <type>Select</type>
40 </html>
6a488035
TO
41 </field>
42 <field>
5435b737
EM
43 <name>subject</name>
44 <type>varchar</type>
45 <length>255</length>
1662d426
A
46 <html>
47 <label>Subject</label>
48 </html>
6a488035
TO
49 </field>
50 <field>
5435b737 51 <name>body_html</name>
0d94665e 52 <title>Mailing Component Body HTML</title>
5435b737
EM
53 <type>text</type>
54 <comment>Body of the component in html format.</comment>
55 <html>
56 <type>TextArea</type>
57 <rows>8</rows>
58 <cols>80</cols>
59 </html>
60 </field>
6a488035 61 <field>
5435b737
EM
62 <name>body_text</name>
63 <type>text</type>
64 <comment>Body of the component in text format.</comment>
65 <html>
66 <type>TextArea</type>
67 <rows>8</rows>
68 <cols>80</cols>
fd735f54 69 <label>Body in Text Format</label>
5435b737
EM
70 </html>
71 </field>
6a488035 72 <field>
5435b737 73 <name>is_default</name>
0d94665e 74 <title>Mailing Component is Default?</title>
5435b737
EM
75 <type>boolean</type>
76 <default>0</default>
77 <comment>Is this the default component for this component_type?</comment>
6a488035
TO
78 </field>
79 <field>
5435b737 80 <name>is_active</name>
0d94665e 81 <title>Mailing Component Is Active?</title>
5435b737
EM
82 <type>boolean</type>
83 <comment>Is this property active?</comment>
6a488035
TO
84 </field>
85</table>