Merge pull request #5403 from eileenmcnaughton/CRM-16055-task-fixes
[civicrm-core.git] / templates / CRM / Admin / Page / Persistent.tpl
1 {foreach from=$rows item=template_row key=type}
2 {if $type eq 'configTemplates'}
3 <table class="report-layout">
4 <div class="action-link">
5 {crmButton p='civicrm/admin/tplstrings/add' q='reset=1&action=add' icon="circle-plus"}{ts}Add New String{/ts}{/crmButton}
6 </div>
7 {if !empty( $template_row) }
8 <tr>
9 <th>Context</th>
10 <th>Name</th>
11 <th>Data</th>
12 {if $editClass}
13 <th style="width: 10%"></th>
14 {/if}
15 </tr>
16 {foreach from=$template_row item=values}
17 <tr class="{cycle values="odd-row,even-row"}">
18 <td>{$values.context}</td>
19 <td>{$values.name}</td>
20 <td>{$values.data}</td>
21 {if $editClass}
22 <td>{$values.action}</td>
23 {/if}
24 </tr>
25 {/foreach}
26 {/if}
27 </table>
28 {/if}
29 {if $type eq 'customizeTemplates'}
30 <table class="report-layout">
31 <head>
32 <h1>Config String</h1>
33 </head>
34 <br/>
35 <div class="action-link">
36 {crmButton p='civicrm/admin/tplstrings/add' q='reset=1&action=add&config=1' icon="circle-plus"}{ts}Add New Config{/ts}{/crmButton}
37 </div>
38 <br/>
39 {if !empty( $template_row) }
40 <tr>
41 <th>Context</th>
42 <th>Name</th>
43 <th>Data</th>
44 {if $editClass}
45 <th style="width: 10%"></th>
46 {/if}
47 </tr>
48 {foreach from=$template_row item=values}
49 <tr class="{cycle values="odd-row,even-row"}">
50 <td>{$values.context}</td>
51 <td>{$values.name}</td>
52 <td>{$values.data}</td>
53 {if $editClass}
54 <td>{$values.action}</td>
55 {/if}
56 </tr>
57 {/foreach}
58 {/if}
59 </table>
60 {/if}
61 {/foreach}