edc51caa |
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 | <a href="{crmURL p='civicrm/admin/tplstrings/add' q='reset=1&action=add'}" class="button"> |
6 | <span> |
7 | <div class="icon add-icon"></div>{ts}Add New String{/ts} |
8 | </span> |
9 | </a> |
10 | </div> |
11 | {if !empty( $template_row) } |
12 | <tr> |
13 | <th>Context</th> |
14 | <th>Name</th> |
15 | <th>Data</th> |
16 | {if $editClass} |
17 | <th style="width: 10%"></th> |
18 | {/if} |
19 | </tr> |
20 | {foreach from=$template_row item=values} |
21 | <tr class="{cycle values="odd-row,even-row"}"> |
22 | <td>{$values.context}</td> |
23 | <td>{$values.name}</td> |
24 | <td>{$values.data}</td> |
25 | {if $editClass} |
26 | <td>{$values.action}</td> |
27 | {/if} |
28 | </tr> |
29 | {/foreach} |
30 | {/if} |
31 | </table> |
32 | {/if} |
33 | {if $type eq 'customizeTemplates'} |
34 | <table class="report-layout"> |
35 | <head> |
36 | <h1>Config String</h1> |
37 | </head> |
38 | <br/> |
39 | <div class="action-link"> |
40 | <a href="{crmURL p='civicrm/admin/tplstrings/add' q='reset=1&action=add&config=1'}" class="button"> |
41 | <span> |
42 | <div class="icon add-icon"></div>{ts}Add New Config{/ts} |
43 | </span> |
44 | </a> |
45 | </div> |
46 | <br/> |
47 | {if !empty( $template_row) } |
48 | <tr> |
49 | <th>Context</th> |
50 | <th>Name</th> |
51 | <th>Data</th> |
52 | {if $editClass} |
53 | <th style="width: 10%"></th> |
54 | {/if} |
55 | </tr> |
56 | {foreach from=$template_row item=values} |
57 | <tr class="{cycle values="odd-row,even-row"}"> |
58 | <td>{$values.context}</td> |
59 | <td>{$values.name}</td> |
60 | <td>{$values.data}</td> |
61 | {if $editClass} |
62 | <td>{$values.action}</td> |
63 | {/if} |
64 | </tr> |
65 | {/foreach} |
66 | {/if} |
67 | </table> |
68 | {/if} |
69 | {/foreach} |