1 | <div class="files level-{$level}"> |
---|
2 | <table> |
---|
3 | {if $level==0} |
---|
4 | <thead> |
---|
5 | <tr> |
---|
6 | <th class=filename></th> |
---|
7 | <th class=ignore>{'Ignore'|translate}</th> |
---|
8 | <th class=type>{'Core dependency'|translate}</th> |
---|
9 | <th class=other>{'Local dependencies'|translate}</th> |
---|
10 | </tr> |
---|
11 | </thead> |
---|
12 | {/if} |
---|
13 | |
---|
14 | <tbody> |
---|
15 | {foreach from=$files item=file key=id} |
---|
16 | {if !isset($file.ignore)} |
---|
17 | <tr class=folder> |
---|
18 | <td class=filename> |
---|
19 | <i class="icon-folder-open"></i> |
---|
20 | {$id} |
---|
21 | </td> |
---|
22 | <td class=ignore> |
---|
23 | <div class="switch-button ignore"> |
---|
24 | <span class="item ignore" data-val="ignore">×</span> |
---|
25 | </div> |
---|
26 | </td> |
---|
27 | <td class=type> |
---|
28 | <div class="switch-button type"> |
---|
29 | <span class="item common" data-val="common">{'Common'|translate}</span> |
---|
30 | <span class="item admin" data-val="admin">{'Admin'|translate}</span> |
---|
31 | </div> |
---|
32 | </td> |
---|
33 | <td class=other> |
---|
34 | <div class="switch-button other"> |
---|
35 | {foreach from=$PLA_LANG_FILES item=lang_file} |
---|
36 | <span class="item other" data-val="{$lang_file}">{$lang_file}</span> |
---|
37 | {/foreach} |
---|
38 | </div> |
---|
39 | </td> |
---|
40 | </tr> |
---|
41 | <tr class=nested> |
---|
42 | <td colspan=4> |
---|
43 | {include file=$PLA_ABS_PATH|cat:'template/config_list.inc.tpl' files=$file level=$level+1 path=$path|cat:"[`$id`]"} |
---|
44 | </td> |
---|
45 | </tr> |
---|
46 | {else} |
---|
47 | <tr> |
---|
48 | <td class=filename> |
---|
49 | <i class="iconpla-doc-text-inv"></i> |
---|
50 | {$file.filename} |
---|
51 | </td> |
---|
52 | <td class=ignore> |
---|
53 | <div class="switch-button ignore"> |
---|
54 | <span class="item ignore {if $file.ignore}active{/if}" data-val="ignore">×</span> |
---|
55 | <input type="hidden" name="files{$path}[{$file.filename}][ignore]" value="{if $file.ignore}true{else}false{/if}"> |
---|
56 | </div> |
---|
57 | </td> |
---|
58 | <td class=type> |
---|
59 | <div class="switch-button type"> |
---|
60 | <span class="item common {if not $file.is_admin}active{/if}" data-val="common">{'Common'|translate}</span> |
---|
61 | <span class="item admin {if $file.is_admin}active{/if}" data-val="admin">{'Admin'|translate}</span> |
---|
62 | <input type="hidden" name="files{$path}[{$file.filename}][is_admin]" value="{if $file.is_admin}true{else}false{/if}"> |
---|
63 | </div> |
---|
64 | </td> |
---|
65 | <td class=other> |
---|
66 | <div class="switch-button other"> |
---|
67 | {foreach from=$PLA_LANG_FILES item=lang_file} |
---|
68 | <span class="item other {if $lang_file|in_array:$file.lang_files}active{/if}" data-val="{$lang_file}">{$lang_file}</span> |
---|
69 | <input type="hidden" name="files{$path}[{$file.filename}][lang_files][{$lang_file}]" value="{if $lang_file|in_array:$file.lang_files}true{else}false{/if}"> |
---|
70 | {/foreach} |
---|
71 | </div> |
---|
72 | </td> |
---|
73 | </tr> |
---|
74 | {/if} |
---|
75 | {/foreach} |
---|
76 | </tbody> |
---|
77 | </table> |
---|
78 | </div> |
---|