CRM-13992 : QA fixes mentioned in #comment-57745
[civicrm-core.git] / templates / CRM / Profile / Page / MultipleRecordFieldsListing.tpl
index 114712168ff223776c279cc6b1786855fc8c2c0d..94eeba851dde43822117befa3aa057ec4f99f2df 100644 (file)
                 <th>{ts}{$head}{/ts}</th>
               {/foreach}
               <th></th>
+              {foreach from=$dateFields key=fieldId item=v}
+                <th class='hiddenElement'></th>
+              {/foreach}
             </tr>
             </thead>
             {foreach from=$records key=recId item=rows}
               <tr class="{cycle values="odd-row,even-row"}">
                 {foreach from=$headers key=hrecId item=head}
-                  <td>{$rows.$hrecId}</td>
+                  {if $dateFieldsVals.$hrecId.$recId}
+                    <td>{$rows.$hrecId|crmDate:"%b %d, %Y %l:%M %P"}</td>
+                  {else}
+                    <td>{$rows.$hrecId}</td>
+                  {/if}
                 {/foreach}
                 <td>{$rows.action}</td>
+                {foreach from=$dateFieldsVals key=fid item=rec}
+                  {if $rec.$recId}
+                    <td class='crm-field-{$fid}_date hiddenElement'>{$rec.$recId}</td>
+                  {/if}
+                {/foreach}
               </tr>
             {/foreach}
           </table>
             cj('#' + dialogId).show().html(content).dialog({
               title: dialogTitle,
               modal: true,
-              width: 680,
+              width: 750,
               overlay: {
                 opacity: 0.5,
                 background: "black"