From: Coleman Watts Date: Wed, 21 Jan 2015 01:55:03 +0000 (-0500) Subject: WordReplacement.tpl cleanup X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7323e0eba8805c23854a76b8ca9728fec679d15d;p=civicrm-core.git WordReplacement.tpl cleanup --- diff --git a/templates/CRM/Admin/Form/WordReplacements.tpl b/templates/CRM/Admin/Form/WordReplacements.tpl index 3b22366e73..214f3a5c78 100644 --- a/templates/CRM/Admin/Form/WordReplacements.tpl +++ b/templates/CRM/Admin/Form/WordReplacements.tpl @@ -24,100 +24,92 @@ +--------------------------------------------------------------------+ *} -{* add single row *} +{* template for a single row *} {if $soInstance} - - {$form.enabled.$soInstance.html} - {$form.old.$soInstance.html} - {$form.new.$soInstance.html} - {$form.cb.$soInstance.html} - + + {$form.enabled.$soInstance.html} + {$form.old.$soInstance.html} + {$form.new.$soInstance.html} + {$form.cb.$soInstance.html} + {else} -{* this template is used for adding/editing string overrides *} -
-
- {ts}Use Word Replacements to change all occurrences of a word or phrase in CiviCRM screens (e.g. replace all occurences of 'Contribution' with 'Donation').{/ts} {help id="id-word_replace"} -
-
- {include file="CRM/common/formButtons.tpl" location='top'} -
- - - + +
- - - - - - - - - {section name="numStrings" start=1 step=1 loop=$numStrings+1} - {assign var='soInstance' value=$smarty.section.numStrings.index} + {* this template is used for adding/editing string overrides *} +
+
+ {ts}Use Word Replacements to change all occurrences of a word or phrase in CiviCRM screens (e.g. replace all occurences of 'Contribution' with 'Donation').{/ts} {help id="id-word_replace"} +
+
+ {include file="CRM/common/formButtons.tpl" location='top'} +
+
{ts}Enabled{/ts}{ts}Original{/ts}{ts}Replacement{/ts}{ts}Exact Match{/ts}
+ + - -
+ + + + + + + - - - - - - - - {/section} + {section name="numStrings" start=1 step=1 loop=$numStrings+1} + {include file="CRM/Admin/Form/WordReplacements.tpl" soInstance=$smarty.section.numStrings.index} + {/section}
{ts}Enabled{/ts}{ts}Original{/ts}{ts}Replacement{/ts}{ts}Exact Match{/ts}
{$form.enabled.$soInstance.html}{$form.old.$soInstance.html}{$form.new.$soInstance.html}{$form.cb.$soInstance.html}
-     {ts}Add row{/ts} -
-
- {include file="CRM/common/formButtons.tpl" location='bottom'} -
- - -{/if} +     {ts}Add row{/ts} +
+
+ {include file="CRM/common/formButtons.tpl" location='bottom'} +
+
{literal} - + {/literal} +{/if}