]> source.dussan.org Git - archiva.git/blob
9a39acc8d571bb0b6e3c180c794802f05acc5644
[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="legacy-artifact-path-main" type="text/html">
20  <div id="legacy-artifact-path-screen">
21      <div class="page-header">
22        <h2>${$.i18n.prop('legacy-artifact-paths.list')}</h2>
23      </div>
24
25      <ul id="legacy-artifact-paths-view-tabs" class="nav nav-tabs">
26        <li id="legacy-artifact-paths-view-tabs-li-grid">
27          <a data-toggle="tab" href="#legacy-artifact-paths-view" id="legacy-artifact-paths-view-tabs-a-grid">${$.i18n.prop('legacy-artifact-paths.grid.tab.title')}</a>
28        </li>
29        <li id="legacy-artifact-paths-view-tabs-li-edit">
30          <a data-toggle="tab" href="#legacy-artifact-paths-edit">${$.i18n.prop('add')}</a>
31        </li>
32      </ul>
33      <div id="legacy-artifact-paths-view-tabs-content" class="tab-content">
34        <div id="legacy-artifact-paths-view" class="tab-pane">
35            <table class="table table-striped table-bordered" id="legacy-artifact-paths-table"
36                   data-bind="simpleGrid: gridViewModel,simpleGridTemplate:'ko-legacy-artifact-paths-grid',pageLinksId:'legacy-artifact-pathsPagination'">
37            </table>
38            <div id="legacy-artifact-pathsPagination"></div>
39        </div>
40        <div id="legacy-artifact-paths-edit" class="tab-pane" data-bind='template: {name:"legacy-artifact-paths-edit-tmpl"}'></div>
41      </div>
42  </div>
43 </script>
44
45 <script id='ko-legacy-artifact-paths-grid' type='text/x-jquery-tmpl'>
46     <thead>
47     <tr>
48         {{each(i, columnDefinition) columns}}
49         <th>${ columnDefinition.headerText }</th>
50         {{/each}}
51         <th>${$.i18n.prop('edit')}</th>
52         <th>${$.i18n.prop('delete')}</th>
53         <th>${$.i18n.prop('modified')}</th>
54     </tr>
55     </thead>
56     <tbody>
57     {{each(i, row) itemsOnCurrentPage()}}
58       <tr data-bind="css:{ 'modified': row.modified()}">
59         {{each(j, columnDefinition) columns}}
60         {{var val = (typeof columnDefinition.rowText == 'function' ? columnDefinition.rowText(row) : row[columnDefinition.rowText])}}
61           <td>
62               ${val}
63           </td>
64         {{/each}}
65           <td>
66             <a href="#" data-bind="click: function(){ editLegacyArtifactPath(row) }">
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(){ removeLegacyArtifactPath(row) }">
72               <img src="images/edit-cut.png" title="${$.i18n.prop('delete')}"/>
73             </a>
74           </td>
75         {{if row.modified()}}
76           <td>
77             <a href="#" data-bind="click: function(){ updateLegacyArtifactPath(row) }" class="btn btn-warning">${$.i18n.prop('save')}</a>
78           </td>
79         {{else}}
80           <td></td>
81         {{/if}}
82
83     </tr>
84     {{/each}}
85     </tbody>
86
87 </script>
88
89 <script id="legacy-artifact-paths-edit-tmpl" type="text/html">
90     <form id="legacy-artifact-paths-edit-form" class="well form-horizontal">
91       <fieldset id="legacy-artifact-paths-edit-fieldset">
92         <div class="control-group">
93           <label class="control-label" for="groupId">${$.i18n.prop('legacy-artifact-paths.groupId')}</label>
94           <div class="controls">
95             <input type="text" class="xlarge required" id="groupId" name="groupId" size="8"
96                    data-bind="value: legacyArtifactPath.groupId"/>
97           </div>
98         </div>
99         <div class="control-group">
100           <label class="control-label" for="artifactId">${$.i18n.prop('legacy-artifact-paths.artifactId')}</label>
101           <div class="controls">
102             <input type="text" class="xlarge required" id="artifactId" name="artifactId" size="8"
103                    data-bind="value: legacyArtifactPath.artifactId"/>
104           </div>
105         </div>
106         <div class="control-group">
107           <label class="control-label" for="version">${$.i18n.prop('legacy-artifact-paths.version')}</label>
108           <div class="controls">
109             <input type="text" class="xlarge required" id="version" name="version" size="8"
110                    data-bind="value: legacyArtifactPath.version"/>
111           </div>
112         </div>
113         <div class="control-group">
114           <label class="control-label" for="classifier">${$.i18n.prop('legacy-artifact-paths.classifier')}</label>
115           <div class="controls">
116             <input type="text" class="xlarge" id="classifier" name="classifier" size="8"
117                    data-bind="value: legacyArtifactPath.classifier"/>
118           </div>
119         </div>
120         <div class="control-group">
121           <label class="control-label" for="type">${$.i18n.prop('legacy-artifact-paths.type')}</label>
122           <div class="controls">
123             <input type="text" class="xlarge required" id="type" name="type" size="8"
124                    data-bind="value: legacyArtifactPath.type"/>
125           </div>
126         </div>
127         <div class="control-group">
128           <label class="control-label" for="path">${$.i18n.prop('legacy-artifact-paths.path')}</label>
129           <div class="controls">
130             <input type="text" class="xlarge required" id="path" name="path" size="8"
131                    data-bind="value: legacyArtifactPath.path"/>
132           </div>
133         </div>
134         <div class="control-group">
135           <label class="control-label" for="artifact">${$.i18n.prop('legacy-artifact-paths.artifact')}</label>
136           <div class="controls">
137             <span title="calculated from values" class="uneditable-input"
138                   id="artifact" data-bind="text: legacyArtifactPath.artifact"></span>
139           </div>
140         </div>
141
142       </fieldset>
143       <button id="network-proxy-btn-save" data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
144       <button id="network-proxy-btn-cancel" data-bind="click: displayGrid" class="btn">${$.i18n.prop('cancel')}</button>
145       <button id="network-proxy-btn-calculate-path" data-bind="click: calculatePath" class="btn btn-success">${$.i18n.prop('legacy-artifact-paths.calculatePath')}</button>
146     </form>
147 </script>
148