Skip to content

Commit

Permalink
CiviEvent - Add labels to field metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw committed Nov 12, 2022
1 parent 290b64e commit 6702425
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CRM/Core/I18n/SchemaStructure.php
Original file line number Diff line number Diff line change
Expand Up @@ -624,14 +624,17 @@ public static function &widgets() {
],
'civicrm_event' => [
'title' => [
'label' => "Title",
'type' => "Text",
],
'summary' => [
'label' => "Summary",
'type' => "TextArea",
'rows' => "4",
'cols' => "60",
],
'description' => [
'label' => "Description",
'type' => "RichTextEditor",
'rows' => "8",
'cols' => "60",
Expand All @@ -640,6 +643,7 @@ public static function &widgets() {
'type' => "Text",
],
'event_full_text' => [
'label' => "Event Full Message",
'type' => "TextArea",
'rows' => "4",
'cols' => "60",
Expand Down
14 changes: 13 additions & 1 deletion CRM/Event/DAO/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Event/Event.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:a1a447b558a2c225be983dab067239ac)
* (GenCodeChecksum:82ed6a487ce2639e83cada1ac876c895)
*/

/**
Expand Down Expand Up @@ -740,6 +740,7 @@ public static function &fields() {
'localizable' => 0,
'html' => [
'type' => 'Number',
'label' => ts("ID"),
],
'readonly' => TRUE,
'add' => '1.7',
Expand All @@ -761,6 +762,7 @@ public static function &fields() {
'localizable' => 1,
'html' => [
'type' => 'Text',
'label' => ts("Title"),
],
'add' => '1.7',
],
Expand All @@ -778,6 +780,7 @@ public static function &fields() {
'localizable' => 1,
'html' => [
'type' => 'TextArea',
'label' => ts("Summary"),
],
'add' => '1.7',
],
Expand All @@ -795,6 +798,7 @@ public static function &fields() {
'localizable' => 1,
'html' => [
'type' => 'RichTextEditor',
'label' => ts("Description"),
],
'add' => '1.7',
],
Expand All @@ -811,6 +815,7 @@ public static function &fields() {
'localizable' => 0,
'html' => [
'type' => 'Select',
'label' => ts("Type"),
],
'pseudoconstant' => [
'optionGroupName' => 'event_type',
Expand Down Expand Up @@ -852,6 +857,7 @@ public static function &fields() {
'localizable' => 0,
'html' => [
'type' => 'CheckBox',
'label' => ts("Public"),
],
'add' => '1.7',
],
Expand All @@ -871,6 +877,7 @@ public static function &fields() {
'html' => [
'type' => 'Select Date',
'formatType' => 'activityDateTime',
'label' => ts("Start Date"),
],
'add' => '1.7',
],
Expand All @@ -890,6 +897,7 @@ public static function &fields() {
'html' => [
'type' => 'Select Date',
'formatType' => 'activityDateTime',
'label' => ts("End Date"),
],
'add' => '1.7',
],
Expand All @@ -907,6 +915,7 @@ public static function &fields() {
'localizable' => 0,
'html' => [
'type' => 'CheckBox',
'label' => ts("Online Registration"),
],
'add' => '1.7',
],
Expand Down Expand Up @@ -991,6 +1000,7 @@ public static function &fields() {
'localizable' => 1,
'html' => [
'type' => 'TextArea',
'label' => ts("Event Full Message"),
],
'add' => '1.7',
],
Expand All @@ -1008,6 +1018,7 @@ public static function &fields() {
'localizable' => 0,
'html' => [
'type' => 'CheckBox',
'label' => ts("Paid Event"),
],
'add' => '1.7',
],
Expand Down Expand Up @@ -1087,6 +1098,7 @@ public static function &fields() {
'localizable' => 0,
'html' => [
'type' => 'CheckBox',
'label' => ts("Enabled"),
],
'add' => '1.7',
],
Expand Down
12 changes: 12 additions & 0 deletions xml/schema/Event/Event.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<required>true</required>
<comment>Event</comment>
<html>
<label>ID</label>
<type>Number</type>
</html>
<add>1.7</add>
Expand All @@ -40,6 +41,7 @@
<localizable>true</localizable>
<comment>Event Title (e.g. Fall Fundraiser Dinner)</comment>
<html>
<label>Title</label>
<type>Text</type>
</html>
<add>1.7</add>
Expand All @@ -49,6 +51,7 @@
<type>text</type>
<title>Event Summary</title>
<html>
<label>Summary</label>
<type>TextArea</type>
<rows>4</rows>
<cols>60</cols>
Expand All @@ -63,6 +66,7 @@
<uniqueName>event_description</uniqueName>
<title>Event Description</title>
<html>
<label>Description</label>
<type>RichTextEditor</type>
<rows>8</rows>
<cols>60</cols>
Expand All @@ -81,6 +85,7 @@
<optionGroupName>event_type</optionGroupName>
</pseudoconstant>
<html>
<label>Type</label>
<type>Select</type>
</html>
<comment>Event Type ID.Implicit FK to civicrm_option_value where option_group = event_type.</comment>
Expand Down Expand Up @@ -120,6 +125,7 @@
<comment>Public events will be included in the iCal feeds. Access to private event information may be limited using ACLs.</comment>
<add>1.7</add>
<html>
<label>Public</label>
<type>CheckBox</type>
</html>
</field>
Expand All @@ -133,6 +139,7 @@
<comment>Date and time that event starts.</comment>
<add>1.7</add>
<html>
<label>Start Date</label>
<type>Select Date</type>
<formatType>activityDateTime</formatType>
</html>
Expand All @@ -147,6 +154,7 @@
<comment>Date and time that event ends. May be NULL if no defined end date/time</comment>
<add>1.7</add>
<html>
<label>End Date</label>
<type>Select Date</type>
<formatType>activityDateTime</formatType>
</html>
Expand All @@ -160,6 +168,7 @@
<comment>If true, include registration link on Event Info page.</comment>
<add>1.7</add>
<html>
<label>Online Registration</label>
<type>CheckBox</type>
</html>
</field>
Expand Down Expand Up @@ -213,6 +222,7 @@
<type>text</type>
<title>Event Information</title>
<html>
<label>Event Full Message</label>
<type>TextArea</type>
<rows>4</rows>
<cols>60</cols>
Expand All @@ -230,6 +240,7 @@
<comment>If true, one or more fee amounts must be set and a Payment Processor must be configured for Online Event Registration.</comment>
<add>1.7</add>
<html>
<label>Paid Event</label>
<type>CheckBox</type>
</html>
</field>
Expand Down Expand Up @@ -287,6 +298,7 @@
<comment>Is this Event enabled or disabled/cancelled?</comment>
<add>1.7</add>
<html>
<label>Enabled</label>
<type>CheckBox</type>
</html>
</field>
Expand Down

0 comments on commit 6702425

Please sign in to comment.