[REF] Move handling of form elements back to the Form
[civicrm-core.git] / templates / CRM / Mailing / Form / Task / Print.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
9 *}
10 <p>
11
12 {if $rows}
13 <div class="form-item crm-block crm-form-block crm-mailing-form-block">
14 <span class="element-right">{$form.buttons.html}</span>
15 </div>
16 <div class="spacer"></div>
17 <br />
18 <p>
19 <table>
20 <tr class="columnheader">
21 <th>{ts}Name{/ts}</th>
22 <th>{ts}Email{/ts}</th>
23 <th>{ts}Mailing Name{/ts}</th>
24 <th>{ts}Mailing Subject{/ts}</th>
25 <th>{ts}Mailing Status{/ts}</th>
26 <th>{ts}Completed Date{/ts}</th>
27 </tr>
28 {foreach from=$rows item=row}
29 <tr class="{cycle values="odd-row,even-row"} crm-mailing">
30 <td class='crm-mailing-sort_name'>{$row.sort_name}</td>
31 <td {if ($row.email_on_hold eq 1) or ($row.contact_opt_out eq 1)}class='font-red'{/if}>{$row.email}</td>
32 <td class='crm-mailing-mailing_name'>{$row.mailing_name}</td>
33 <td class='crm-mailing-mailing_subject'>{$row.mailing_subject}</td>
34 <td class='crm-mailing-mailing_job_status'>{$row.mailing_job_status}</td>
35 <td class="crm-mailing-end_date">{$row.mailing_job_end_date|crmDate}</td>
36 </tr>
37 {/foreach}
38 </table>
39
40 <div class="form-item">
41 <span class="element-right">{$form.buttons.html}</span>
42 </div>
43
44 {else}
45 <div class="messages status no-popup">
46 <div class="icon inform-icon"/>
47 {ts}There are no records selected for Print.{/ts}
48 </div>
49 {/if}