]> source.dussan.org Git - archiva.git/blob
f66e64d7354081355956be64523786fd89f38721
[archiva.git] /
1 <script id="networkProxiesMain" type="text/x-jquery-tmpl">
2   <div class="page-header">
3     <h2>${$.i18n.prop('network-proxies.list')}</h2>
4   </div>
5
6   <ul id="network-proxies-view-tabs" class="tabs">
7     <li id="network-proxies-view-tabs-li-grid" class="active">
8       <a href="#network-proxies-view" id="network-proxies-view-tabs-a-network-proxies-grid">${$.i18n.prop('network-proxies.grid.tab.title')}</a>
9     </li>
10     <li id="network-proxies-view-tabs-li-edit">
11       <a href="#network-proxies-edit">${$.i18n.prop('add')}</a>
12     </li>
13   </ul>
14   <div id="network-proxies-view-tabs-content" class="tab-content">
15     <div id="network-proxies-view" class="active">
16         <table class="bordered-table zebra-striped" id="networkProxiesTable"
17                data-bind="simpleGrid: gridViewModel,simpleGridTemplate:'ko-network-proxies-grid',pageLinksId:'network-proxiesPagination'">
18         </table>
19         <div id="network-proxiesPagination"></div>
20     </div>
21     <div id="network-proxies-edit" data-bind='template: {name:"network-proxy-edit-tmpl"}'></div>
22   </div>
23
24 </script>
25
26 <script id='ko-network-proxies-grid' type='text/x-jquery-tmpl'>
27     <thead>
28     <tr>
29         {{each(i, columnDefinition) columns}}
30         <th>${ columnDefinition.headerText }</th>
31         {{/each}}
32         <th>${$.i18n.prop('edit')}</th>
33         <th>${$.i18n.prop('delete')}</th>
34     </tr>
35     </thead>
36     <tbody>
37     {{each(i, row) itemsOnCurrentPage()}}
38     <tr>
39         {{each(j, columnDefinition) columns}}
40         {{var val = (typeof columnDefinition.rowText == 'function' ? columnDefinition.rowText(row) :
41         row[columnDefinition.rowText])}}
42         <td>
43             ${val}
44         </td>
45         {{/each}}
46         <td>
47             <a href="#" data-bind="click: function(){ editNetworkProxy(row) }">${$.i18n.prop('edit')}</a>
48         </td>
49         <td>
50             <a href="#" data-bind="click: function(){ removeNetworkProxy(row) }">
51               <img src="images/edit-cut.png" title="${$.i18n.prop('delete')}"/>
52             </a>
53         </td>
54     </tr>
55     {{/each}}
56     </tbody>
57
58 </script>
59
60 <script id="network-proxy-edit-tmpl" type='text/x-jquery-tmpl'>
61     <form id="network-proxy-edit-form">
62       <fieldset id="network-proxy-edit-fieldset">
63         <div class="clearfix">
64           <label for="id">${$.i18n.prop('id')}</label>
65           <div class="input">
66             {{if update}}
67               <span class="uneditable-input">${$data.networkProxy.id}</span>
68             {{else}}
69               <input type="text" class="xlarge required" id="id" name="id" size="10"
70                      data-bind="value: networkProxy.id,css:{'uneditable-input': update},readonly:update"/>
71             {{/if}}
72           </div>
73         </div>
74         <div class="clearfix">
75           <label for="protocol">${$.i18n.prop('protocol')}</label>
76           <div class="input">
77             <input type="text" class="xlarge required" id="protocol" name="protocol" size="8"
78                    data-bind="value: networkProxy.protocol"/>
79           </div>
80         </div>
81         <div class="clearfix">
82           <label for="host">${$.i18n.prop('host')}</label>
83           <div class="input">
84             <input type="text" class="xlarge required" id="host" name="host" size="15"
85                    data-bind="value: networkProxy.host"/>
86           </div>
87         </div>
88         <div class="clearfix">
89           <label for="port">${$.i18n.prop('port')}</label>
90           <div class="input">
91             <input type="text" class="xlarge required digits" id="port" name="port" size="6"
92                    data-bind="value: networkProxy.port"/>
93           </div>
94         </div>
95         <div class="clearfix">
96           <label for="username">${$.i18n.prop('username')}</label>
97           <div class="input">
98             <input type="text" class="xlarge" id="username" name="username" size="50"
99                    data-bind="value: networkProxy.username"/>
100           </div>
101         </div>
102         <div class="clearfix">
103           <label for="password">${$.i18n.prop('password')}</label>
104           <div class="input">
105             <input type="text" class="xlarge" id="password" name="password" size="50"
106                    data-bind="value: networkProxy.password"/>
107           </div>
108         </div>
109
110       </fieldset>
111       <button data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
112       <button data-bind="click: displayGrid" class="btn">${$.i18n.prop('cancel')}</button>
113     </form>
114 </script>