CRM-15906 - Related tpl cleanup
authorColeman Watts <coleman@civicrm.org>
Mon, 2 Feb 2015 22:55:16 +0000 (17:55 -0500)
committerColeman Watts <coleman@civicrm.org>
Mon, 2 Feb 2015 22:55:16 +0000 (17:55 -0500)
templates/CRM/Pledge/Form/Payment.tpl

index 913948349bc1ecaf535c4600808d901e7120df92..ca7d18a00c96af16b2a511a74548efb0223ae0b3 100644 (file)
 *}
 {* this template is used for updating pledge payment*}
 <div class="crm-block crm-form-block crm-pledge-payment-form-block">
-      <table class="form-layout-compressed">
-        <tr><td class="label">{ts}Status{/ts}</td><td class="form-layout">{$status}</td></tr>
-        <tr><td class="label">{$form.scheduled_date.label}</td>
-            <td>{include file="CRM/common/jcalendar.tpl" elementName=scheduled_date}
-            <span class="description">{ts}Scheduled Date for Pledge payment.{/ts}</span></td></tr>
-        </td></tr>
-  <tr><td class="label">{$form.scheduled_amount.label}</td><td class="form-layout">{$form.currency.html}&nbsp;{$form.scheduled_amount.html}
-      {if !$pledgePayment}
-        <a href="#" class="crm-hover-button action-item adjust-pledge-payment">
-          {ts}Adjust scheduled amount{/ts}
-        </a>
-        {help id="adjust-payment-amount"}
-      {/if}
+  <table class="form-layout-compressed">
+    <tr>
+      <td class="label">{ts}Status{/ts}</td>
+      <td class="form-layout">{$status}</td>
+    </tr>
+    <tr>
+      <td class="label">{$form.scheduled_date.label}</td>
+      <td>{include file="CRM/common/jcalendar.tpl" elementName=scheduled_date}</td>
+    </tr>
+    <tr>
+      <td class="label">{$form.scheduled_amount.label}</td>
+      <td class="form-layout">
+        {$form.currency.html}&nbsp;{$form.scheduled_amount.html}
+        {if !$pledgePayment}
+          <a href="#" class="crm-hover-button action-item adjust-pledge-payment">
+            {ts}Adjust scheduled amount{/ts}
+          </a>
+          {help id="adjust-payment-amount"}
+        {/if}
       </td>
-  </tr>
-  <tr id="adjust-option-type" class="crm-contribution-form-block-option_type">
-         <td class="label"></td> <td>{$form.option_type.html}</td>
-  </tr>
-      </table>
-       <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
-</fieldset>
+    </tr>
+    <tr id="adjust-option-type" class="crm-contribution-form-block-option_type">
+      <td class="label"></td> <td>{$form.option_type.html}</td>
+    </tr>
+  </table>
+  <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
+  </fieldset>
 </div>
 {literal}
-<script type="text/javascript">
-  CRM.$(function($) {
-    $('#adjust-option-type').hide();
+  <script type="text/javascript">
+    CRM.$(function($) {
+      $('#adjust-option-type').hide();
 
-    $('a.adjust-pledge-payment').click(function(e) {
-      e.preventDefault();
-      $(this).hide();
-      $('#adjust-option-type').show();
-      $("#scheduled_amount").prop("readonly", false);
+      $('a.adjust-pledge-payment').click(function(e) {
+        e.preventDefault();
+        $(this).hide();
+        $('#adjust-option-type').show();
+        $("#scheduled_amount").prop("readonly", false);
+      });
     });
-  });
-</script>
+  </script>
 {/literal}