[REF] Add in I18n front end translation support and update widget to be a RichTextEdi...
authorSeamus Lee <seamuslee001@gmail.com>
Mon, 1 May 2023 07:11:50 +0000 (17:11 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Mon, 1 May 2023 07:11:50 +0000 (17:11 +1000)
CRM/Campaign/DAO/Survey.php
CRM/Core/I18n/SchemaStructure.php
templates/CRM/Campaign/Form/Petition.tpl
templates/CRM/Campaign/Form/Survey/Main.tpl
xml/schema/Campaign/Survey.xml

index dd319d57726e4139e4ea6b49ff60d9d62dc633b5..7acaf692e8468910b7a7ed96f8bb7401186483c0 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Campaign/Survey.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:4b2846e419f4a7d5dcc44b80df895caf)
+ * (GenCodeChecksum:79c05054f18c94059ec35314ea6bbef6)
  */
 
 /**
@@ -417,7 +417,7 @@ class CRM_Campaign_DAO_Survey extends CRM_Core_DAO {
           'bao' => 'CRM_Campaign_BAO_Survey',
           'localizable' => 1,
           'html' => [
-            'type' => 'TextArea',
+            'type' => 'RichTextEditor',
           ],
           'add' => '3.3',
         ],
index f8bd1e27dd07f5bf49fc671a9309f1e110c09ead..765a8efd8351dd254bd0b4651cd33d8dd9b0fc17 100644 (file)
@@ -330,7 +330,7 @@ class CRM_Core_I18n_SchemaStructure {
             'required' => "true",
           ],
           'instructions' => [
-            'type' => "TextArea",
+            'type' => "RichTextEditor",
             'rows' => "20",
             'cols' => "80",
           ],
index 431e4cbe05d3a063ff42b0b591e6bc9d28eda372..100cf4ef7a9f7411c41c26b5bb29771161a9448e 100644 (file)
@@ -32,7 +32,7 @@
         <td>{$form.title.html}
       </tr>
       <tr class="crm-campaign-survey-form-block-instructions">
-        <td class="label">{$form.instructions.label}</td>
+        <td class="label">{$form.instructions.label}{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_survey' field='instructions' id=$surveyId}{/if}</td>
         <td class="view-value">{$form.instructions.html}
       </tr>
       <tr class="crm-campaign-survey-form-block-campaign_id">
index b861552d1f4e71539b9354480d8521416a98a194..6d16494f817665fbf62b61cf4db6b82275fac149 100644 (file)
@@ -33,7 +33,7 @@
          <div class="description">{ts}Select the Activity Type.{/ts}</div></td>
    </tr>
    <tr class="crm-campaign-survey-main-form-block-instructions">
-       <td class="label">{$form.instructions.label}</td>
+       <td class="label">{$form.instructions.label}{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_survey' field='instructions' id=$surveyId}{/if}</td>
        <td class="view-value">{$form.instructions.html}
    </tr>
    <tr class="crm-campaign-survey-main-form-block-default_number_of_contacts">
index 52990e58780e36b9924eda8c7d3a39858bb3722b..4ec988168e71e4ba3526ded7f8c947113d91a124 100644 (file)
     <localizable>true</localizable>
     <comment>Script instructions for volunteers to use for the survey.</comment>
     <html>
-      <type>TextArea</type>
+      <type>RichTextEditor</type>
       <rows>20</rows>
       <cols>80</cols>
     </html>