WebAdmin update PkgConfList to apt system
[enigma2-plugins.git] / webadmin / src / web-data / tpl / tplPkgSettings.htm
1
2 <!-- tplPkgSettings -->
3                                                 <table id="contentTable">
4                                                         ${CSS=""}
5                                                         {for file in files}
6                                                         <tr>
7                                                                 <td class="{if CSS == '' | CSS == 'even'}${CSS='odd'}{else}${CSS='even'}{/if}" >
8                                                                         <table class="sPkgConfItem">
9                                                                                 <tr>
10                                                                                         <td style="width: 750px;">
11                                                                                                 <a class="sPkgConfsLinkExt" href="#" title="Click to show/hide content of ${file.name}">
12                                                                                                         <img class="sPkgConfBulletToggle" src="/web-data/img/toggle_expand.png" alt="+"></img>
13                                                                                                                 ${file.name}
14                                                                                                 </a>
15                                                                                         </td >
16                                                                                         <td align="right">
17                                                                                         {if file.name != "opkg.conf" & file.name != "arch.conf"}
18                                                                                                 {if file.state == "1"}
19                                                                                                 <a class="sPkgConfFeedsLink" data-name="${file.name}" href="#" title="disable ${file.name}" >
20                                                                                                         <img id="${file.name}-pic" src="/web-data/img/minus.png" alt="disable" border="0"></img>
21                                                                                                 </a>
22                                                                                                 {else}
23                                                                                                 <a class="sPkgConfFeedsLink" data-name="${file.name}" href="#" title="enable ${file.name}" >
24                                                                                                         <img id="${file.name}-pic" src="/web-data/img/plus.png" alt="enable" border="0"></img>
25                                                                                                 </a>
26                                                                                                 {/if}
27                                                                                         {/if}
28                                                                                         </td>
29                                                                                 </tr>
30                                                                                 <tr class="trExtPkgConf" style="display : none;">
31                                                                                         <td colspan=0>
32                                                                                                 <table>
33                                                                                                         <tr >
34                                                                                                                 <td>
35                                                                                                                         <form target="_blank" action="uploadtext?path=/etc/apt/sources.list.d/&filename=${file.name}" method="post"  enctype="multipart/form-data">
36                                                                                                                                 <P>
37                                                                                                                                         <textarea name="text" rows=16 cols=100>${file.text}</textarea><br/>
38                                                                                                                                         <input target="_blank" type="submit" value="Save" onClick="return confirm('save file to dreambox?')" >
39                                                                                                                                         {if file.state == "1"}
40                                                                                                                                         <input type="hidden" name="filename" id="${file.name}-name" value="${file.name}" >
41                                                                                                                                         {else}
42                                                                                                                                         <input type="hidden" name="filename" id="${file.name}-name" value="${file.name}.off" >
43                                                                                                                                         {/if}
44                                                                                                                                         <input type="reset">
45                                                                                                                                 </P>
46                                                                                                                         </form>
47                                                                                                                 </td>
48                                                                                                         </tr>
49                                                                                                 </table>
50                                                                                         </td>
51                                                                                 </tr>
52                                                                         </table>
53                                                                 </td>
54                                                         </tr>
55                                                         {forelse}
56                                                         <tr>
57                                                                 <td>
58                                                                         <table>
59                                                                                 <tr>
60                                                                                         <td>No Packages to Display</td>
61                                                                                 </tr>
62                                                                         </table>
63                                                                 </td>
64                                                         </tr>
65                                                         {/for}
66                                                         <tr>
67                                                                 <td>
68                                                                         <form target="new feed Upload" action="uploadtext?path=/etc/opkg/" method="post" enctype="multipart/form-data">
69                                                                                 <table>
70                                                                                 <hr/>
71                                                                                         <tr>
72                                                                                                 <td>
73                                                                                                         <tr>
74                                                                                                                 <td>Upload new *-feed.list</td>
75                                                                                                                 <td><input id="finput" name="text" type="file" onChange="confirm_suffix('.list');"></td>
76                                                                                                                 <input type="hidden" name="filename" id="fname" >
77                                                                                                         </tr>
78                                                                                                         <tr>
79                                                                                                                 <td colspan="2"><input type="submit" ></td>
80                                                                                                         </tr>
81                                                                                                 </td>
82                                                                                         </tr>
83                                                                                 </table>
84                                                                         </form>
85                                                                 </td>
86                                                         </tr>
87                                                 </table>
88 <!-- /tplPkgSettings -->