Merge pull request #12639 from aniesshsethh/issue_314
[civicrm-core.git] / templates / CRM / Contact / Form / Task / Print.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2019 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
8 | |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
12 | |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
25 *}
26 {if $rows}
27 <div class="crm-submit-buttons element-right">
28 {include file="CRM/common/formButtons.tpl" location="top"}
29 </div>
30 <div class="spacer"></div>
31 <div>
32 <br />
33 <table>
34 <tr class="columnheader">
35 {if $id OR $customSearchID}
36 {foreach from=$columnHeaders item=header}
37 <th>{$header}</th>
38 {/foreach}
39 {else}
40 <td>{ts}Name{/ts}</td>
41 {if !empty($columnHeaders.street_address)}
42 <td>{ts}Address{/ts}</td>
43 {/if}
44 {if !empty($columnHeaders.city)}
45 <td>{ts}City{/ts}</td>
46 {/if}
47 {if !empty($columnHeaders.state_province)}
48 <td>{ts}State{/ts}</td>
49 {/if}
50 {if !empty($columnHeaders.postal_code)}
51 <td>{ts}Postal{/ts}</td>
52 {/if}
53 {if !empty($columnHeaders.country)}
54 <td>{ts}Country{/ts}</td>
55 {/if}
56 <td>{ts}Email{/ts}</td>
57 <td>{ts}Phone{/ts}</td>
58 <td>{ts}Do Not Email{/ts}</td>
59 <td>{ts}Do Not Phone{/ts}</td>
60 <td>{ts}Do Not mail{/ts}</td>
61 {/if}
62 </tr>
63 {foreach from=$rows item=row}
64 <tr class="{cycle values="odd-row,even-row"}">
65 {if $id}
66 <td>{$row.sort_name}</td>
67 {foreach from=$row item=value key=key}
68 {if ($key neq "checkbox") and ($key neq "action") and ($key neq "contact_type") and ($key neq "status") and ($key neq "contact_id") and ($key neq "sort_name")}
69 <td>{$value}</td>
70 {/if}
71 {/foreach}
72 {elseif $customSearchID}
73 {foreach from=$columnHeaders item=header key=name}
74 <td>{$row.$name}</td>
75 {/foreach}
76 {else}
77 <td>{$row.sort_name}</td>
78 {if !empty($columnHeaders.street_address)}
79 <td>{$row.street_address}</td>
80 {/if}
81 {if !empty($columnHeaders.city)}
82 <td>{$row.city}</td>
83 {/if}
84 {if !empty($columnHeaders.state_province)}
85 <td>{$row.state_province}</td>
86 {/if}
87 {if !empty($columnHeaders.postal_code)}
88 <td>{$row.postal_code}</td>
89 {/if}
90 {if !empty($columnHeaders.country)}
91 <td>{$row.country}</td>
92 {/if}
93 <td>{$row.email}</td>
94 <td>{$row.phone}</td>
95 {if $row.do_not_email == 1}
96 <td>{$row.do_not_email}</td>
97 {else}
98 <td>&nbsp;</td>
99 {/if}
100 {if $row.do_not_phone == 1}
101 <td>{$row.do_not_phone}</td>
102 {else}
103 <td>&nbsp;</td>
104 {/if}
105 {if $row.do_not_mail == 1}
106 <td>{$row.do_not_mail}</td>
107 {else}
108 <td>&nbsp;</td>
109 {/if}
110 {/if}
111 </tr>
112 {/foreach}
113 </table>
114 </div>
115
116 <div class="crm-submit-buttons element-right">
117 {include file="CRM/common/formButtons.tpl" location="bottom"}
118 </div>
119
120 {else}
121 <div class="messages status no-popup">
122 <div class="icon inform-icon"></div>
123 {ts}There are no records selected for Print.{/ts}
124 </div>
125 {/if}