Fix template structure
authorMukesh Ram <mukesh@compucorp.co.uk>
Sat, 10 Mar 2018 11:02:03 +0000 (16:32 +0530)
committerMukesh Ram <mukesh@compucorp.co.uk>
Sat, 10 Mar 2018 11:02:03 +0000 (16:32 +0530)
templates/CRM/Grant/Form/Grant.tpl
templates/CRM/Grant/Form/Task/Delete.tpl
templates/CRM/Profile/Page/Overlay.tpl

index 93be0e067c50670430d987876480f931a0588474..80c69246ca31e9c4b3b53454301b315d9277050c 100644 (file)
@@ -34,7 +34,7 @@
      </div>
   {else}
      <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
-        <table class="form-layout-compressed">
+      <table class="form-layout-compressed">
       {if $context eq 'standalone'}
         <tr class="crm-grant-form-block-contact_id">
           <td class="label">{$form.contact_id.label}</td>
index bdbf75eb3cc8774b52df508400f4f8c70e9a3568..aeba8ee708bc61eeaca7703fd8846a92a1044d10 100644 (file)
  +--------------------------------------------------------------------+
 *}
 {* Confirmation of Grant delete  *}
-<div class="messages status no-popup">
-        <p><div class="icon inform-icon"></div>&nbsp;
-        {ts}Are you sure you want to delete the selected Grants? This delete operation cannot be undone and will delete all transactions associated with these grants.{/ts}</p>
-        <p>{include file="CRM/Grant/Form/Task.tpl"}</p>
+<div class="crm-block crm-form-block crm-grant-task-delete-form-block">
+  <div class="messages status no-popup">
+          <div class="icon inform-icon"></div>&nbsp;
+          {ts}Are you sure you want to delete the selected Grants? This delete operation cannot be undone and will delete all transactions associated with these grants.{/ts}
+          <p>{include file="CRM/Grant/Form/Task.tpl"}</p>
+  </div>
+  <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div>
 </div>
-<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div>
index db93e34abc73252beb0b2eaa56b3dfdddd243a70..ab5718ff07a4e9ba9aead20bfcf70e8dcdb4b656 100644 (file)
 *}
 {if $overlayProfile }
 <table class="crm-table-group-summary">
-<tr><td>{$displayName}</td></tr>
-<tr><td>
-{assign var="count" value="0"}
-{assign var="totalRows" value=$row|@count}
-<div class="crm-summary-col-0">
-{foreach from=$profileFields item=field key=rowName}
-  {if $count gt $totalRows/2}
-    </div>
-    </td><td>
-    <div class="crm-summary-col-1">
-    {assign var="count" value="1"}
-  {/if}
-  <div class="crm-section {$rowName}-section">
-    <div class="label">
-        {$field.label}
-    </div>
-     <div class="content">
-        {$field.value}
-     </div>
-     <div class="clear"></div>
-  </div>
-  {assign var="count" value=`$count+1`}
-{/foreach}
-</div>
-</td></tr>
+  <tr>
+    <td colspan="2">{$displayName}</td>
+  </tr>
+  <tr>
+    <td>
+      {assign var="count" value="0"}
+      {assign var="totalRows" value=$row|@count}
+      <div class="crm-summary-col-0">
+    {foreach from=$profileFields item=field key=rowName}
+        {if $count gt $totalRows/2}
+      </div>
+    </td>
+    <td>
+      <div class="crm-summary-col-1">
+        {assign var="count" value="1"}
+        {/if}
+      <div class="crm-section {$rowName}-section">
+        <div class="label">
+            {$field.label}
+        </div>
+        <div class="content">
+          {$field.value}
+        </div>
+        <div class="clear"></div>
+      </div>
+      {assign var="count" value=`$count+1`}
+    {/foreach}
+      </div>
+    </td>
+  </tr>
 </table>
 {* fields array is not empty *}
 {/if}