Remove hardcoded settings from form and use SettingForm.tpl for Case settings
authorMatthew Wire <mjw@mjwconsult.co.uk>
Thu, 20 Feb 2020 13:36:52 +0000 (13:36 +0000)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Thu, 20 Feb 2020 13:36:52 +0000 (13:36 +0000)
templates/CRM/Admin/Form/Setting/Case.tpl

index 825826c6aadfc82ce1e11a451aa93fb3857a8153..0a674a12aff296ca3a2267f135ffa7d16646db66 100644 (file)
@@ -8,41 +8,5 @@
  +--------------------------------------------------------------------+
 *}
 <div class="crm-block crm-form-block crm-case-form-block">
-  {*<div class="help">*}
-      {*{ts}...{/ts} {docURL page="Debugging for developers" resource="wiki"}*}
-  {*</div>*}
-  <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
-  <table class="form-layout">
-    <tr class="crm-case-form-block-civicaseRedactActivityEmail">
-      <td class="label">{$form.civicaseRedactActivityEmail.label}</td>
-      <td>{$form.civicaseRedactActivityEmail.html}<br />
-        <span class="description">{ts}Should activity emails be redacted?{/ts} {ts}(Set "Default" to load setting from the legacy "Settings.xml" file.){/ts}</span>
-      </td>
-    </tr>
-    <tr class="crm-case-form-block-civicaseAllowMultipleClients">
-      <td class="label">{$form.civicaseAllowMultipleClients.label}</td>
-      <td>{$form.civicaseAllowMultipleClients.html}<br />
-        <span class="description">{ts}How many clients may be associated with a given case?{/ts} {ts}(Set "Default" to load setting from the legacy "Settings.xml" file.){/ts}</span>
-      </td>
-    </tr>
-    <tr class="crm-case-form-block-civicaseNaturalActivityTypeSort">
-      <td class="label">{$form.civicaseNaturalActivityTypeSort.label}</td>
-      <td>{$form.civicaseNaturalActivityTypeSort.html}<br />
-        <span class="description">{ts}How to sort activity-types on the "Manage Case" screen? {/ts} {ts}(Set "Default" to load setting from the legacy "Settings.xml" file.){/ts}</span>
-      </td>
-    </tr>
-    <tr class="crm-case-form-block-civicaseActivityRevisions">
-      <td class="label">{$form.civicaseActivityRevisions.label}</td>
-      <td>{$form.civicaseActivityRevisions.html}<br />
-        <span class="description">{ts}Enable embedded tracking to activity revisions within the "civicrm_activity" table. Alternatively, see "Administer => System Settings => Misc => Logging".{/ts}</span>
-      </td>
-    </tr>
-    <tr class="crm-case-form-block-civicaseShowCaseActivities">
-      <td class="label">{$form.civicaseShowCaseActivities.label}</td>
-      <td>{$form.civicaseShowCaseActivities.html}<br />
-        <span class="description">{$civicaseShowCaseActivities_description}</span>
-      </td>
-    </tr>
-  </table>
-  <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
+  {include file='CRM/Admin/Form/Setting/SettingForm.tpl'}
 </div>