]> source.dussan.org Git - archiva.git/blob
7b6288fbdd01d80c7ef390163e8ddba7179bd599
[archiva.git] /
1 <!--
2   ~ Licensed to the Apache Software Foundation (ASF) under one
3   ~ or more contributor license agreements.  See the NOTICE file
4   ~ distributed with this work for additional information
5   ~ regarding copyright ownership.  The ASF licenses this file
6   ~ to you under the Apache License, Version 2.0 (the
7   ~ "License"); you may not use this file except in compliance
8   ~ with the License.  You may obtain a copy of the License at
9   ~
10   ~   http://www.apache.org/licenses/LICENSE-2.0
11   ~
12   ~ Unless required by applicable law or agreed to in writing,
13   ~ software distributed under the License is distributed on an
14   ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   ~ KIND, either express or implied.  See the License for the
16   ~ specific language governing permissions and limitations
17   ~ under the License.
18 -->
19 <script id="repositoryGroupsMain" type="text/x-jquery-tmpl">
20   <div class="page-header">
21     <h2>${$.i18n.prop('repository.groups.list')}</h2>
22   </div>
23   <ul id="repository-groups-view-tabs" class="nav nav-tabs">
24     <li id="repository-groups-view-tabs-li-grid" class="active">
25       <a data-toggle="tab" href="#repository-groups-view" id="repository-groups-view-tabs-a-network-proxies-grid">${$.i18n.prop('repository-groups.grid.tab.title')}</a>
26     </li>
27     <li id="repository-groups-view-tabs-li-edit">
28       <a data-toggle="tab" href="#repository-groups-edit" id="repository-groups-view-tabs-a-edit">${$.i18n.prop('add')}</a>
29     </li>
30
31   </ul>
32   <div id="repository-groups-view-tabs-content" class="tab-content">
33     <div id="repository-groups-view" class="tab-pane active">    
34       <div id="repository-groups-table" data-bind='template:{name:"repository-groups-table-tmpl"}'>
35       </div>
36     </div>
37     <div id="repository-groups-edit" class="tab-pane active">
38         <div id="repository-groups-edit-div" data-bind='template:{name:"repository-group-edit-tmpl"}'></div>
39         <div id="repository-groups-edit-order-div"
40              data-bind="sortable: { template: 'repository-group-edit-order-tmpl',data:repositoryGroup.repositories,afterMove: repositoryMoved}">
41         </div>
42     </div>
43   </div>  
44 </script>
45
46 <script id="repository-groups-table-tmpl" type="text/html">
47   <table class="table table-striped table-bordered">
48     <thead>
49       <th>${$.i18n.prop('repository.groups.groups.grid.header')}</th>
50       <th>${$.i18n.prop('repository.groups.repositories.grid.header')}</th>
51       <th>${$.i18n.prop('edit')}</th>
52       <th>${$.i18n.prop('delete')}</th>
53     </thead>
54     <tbody>
55     {{each(i, repositoryGroup) repositoryGroups}}
56       <tr>
57         <td>${repositoryGroup.id}</td>
58         <td>
59           <ul>
60           {{each(j,id) repositoryGroup.repositories()}}
61             <li>${id}</li>
62           {{/each}}
63           </ul>
64         </td>
65         <td>
66           <a href="#" data-bind="click: function(){editRepositoryGroup(repositoryGroup)}">
67             <img src="images/edit-find-22-22.png" title="${$.i18n.prop('edit')}">
68           </a>
69         </td>
70         <td>
71           <a href="#" data-bind="click: function(){deleteRepositoryGroup(repositoryGroup)}">
72             <img src="images/edit-cut-22-22.png" title="${$.i18n.prop('delete')}"/>
73           </a>
74         </td>
75       </tr>
76     {{/each}}
77     </tbody>
78   </table>
79 </script>
80
81 <script id="repository-group-edit-tmpl" type="text/html">
82   <form id="repository-group-edit-form" class="form-horizontal">
83     <fieldset id="repository-group-edit-fieldset">
84       <div class="control-group">
85         <label class="control-label" for="id">${$.i18n.prop('id')}</label>
86         <div class="controls">
87           {{if update}}
88             <span class="uneditable-input">${repositoryGroup.id}</span>
89           {{else}}
90             <input type="text" class="xlarge required" id="id" name="id" size="50"
91                    data-bind="value: repositoryGroup.id,css:{'uneditable-input': update},readonly:update"/>
92           {{/if}}
93         </div>
94       </div>
95     </fieldset>
96   </form>
97 </script>
98
99 <script id="repository-group-edit-order-tmpl" type="text/html">
100   <div class="well draggable-item">
101     ${$data}-${managedRepository.name()}
102   </div>
103 </script>