Commit 878813ba authored by mukesh's avatar mukesh

Fix template structure

parent f850beb4
......@@ -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>
......
......@@ -24,9 +24,11 @@
+--------------------------------------------------------------------+
*}
{* 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>
......@@ -25,31 +25,36 @@
*}
{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}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment