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
10 ~ http://www.apache.org/licenses/LICENSE-2.0
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
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>
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>
29 <li id="legacy-artifact-paths-view-tabs-li-edit">
30 <a data-toggle="tab" href="#legacy-artifact-paths-edit">${$.i18n.prop('add')}</a>
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'">
38 <div id="legacy-artifact-pathsPagination"></div>
40 <div id="legacy-artifact-paths-edit" class="tab-pane" data-bind='template: {name:"legacy-artifact-paths-edit-tmpl"}'></div>
45 <script id='ko-legacy-artifact-paths-grid' type='text/x-jquery-tmpl'>
48 {{each(i, columnDefinition) columns}}
49 <th>${ columnDefinition.headerText }</th>
51 <th>${$.i18n.prop('delete')}</th>
55 {{each(i, row) itemsOnCurrentPage()}}
56 <tr data-bind="css:{ 'modified': row.modified()}">
57 {{each(j, columnDefinition) columns}}
58 {{var val = (typeof columnDefinition.rowText == 'function' ? columnDefinition.rowText(row) : row[columnDefinition.rowText])}}
64 <a href="#" data-bind="click: function(){ removeLegacyArtifactPath(row) }">
65 <img src="images/edit-cut.png" title="${$.i18n.prop('delete')}"/>
74 <script id="legacy-artifact-paths-edit-tmpl" type="text/html">
75 <form id="legacy-artifact-paths-edit-form" class="well form-horizontal">
76 <fieldset id="legacy-artifact-paths-edit-fieldset">
77 <div class="control-group">
78 <label class="control-label" for="groupId">${$.i18n.prop('legacy-artifact-paths.groupId')}</label>
79 <div class="controls">
80 <input type="text" class="xlarge required" id="groupId" name="groupId" size="8"
81 data-bind="value: legacyArtifactPath.groupId"/>
84 <div class="control-group">
85 <label class="control-label" for="artifactId">${$.i18n.prop('legacy-artifact-paths.artifactId')}</label>
86 <div class="controls">
87 <input type="text" class="xlarge required" id="artifactId" name="artifactId" size="8"
88 data-bind="value: legacyArtifactPath.artifactId"/>
91 <div class="control-group">
92 <label class="control-label" for="version">${$.i18n.prop('legacy-artifact-paths.version')}</label>
93 <div class="controls">
94 <input type="text" class="xlarge required" id="version" name="version" size="8"
95 data-bind="value: legacyArtifactPath.version"/>
98 <div class="control-group">
99 <label class="control-label" for="classifier">${$.i18n.prop('legacy-artifact-paths.classifier')}</label>
100 <div class="controls">
101 <input type="text" class="xlarge" id="classifier" name="classifier" size="8"
102 data-bind="value: legacyArtifactPath.classifier"/>
105 <div class="control-group">
106 <label class="control-label" for="type">${$.i18n.prop('legacy-artifact-paths.type')}</label>
107 <div class="controls">
108 <input type="text" class="xlarge required" id="type" name="type" size="8"
109 data-bind="value: legacyArtifactPath.type"/>
112 <div class="control-group">
113 <label class="control-label" for="path">${$.i18n.prop('legacy-artifact-paths.path')}</label>
114 <div class="controls">
115 <input type="text" class="xlarge required" id="path" name="path" size="8"
116 data-bind="value: legacyArtifactPath.path"/>
119 <div class="control-group">
120 <label class="control-label" for="artifact">${$.i18n.prop('legacy-artifact-paths.artifact')}</label>
121 <div class="controls">
122 <span title="calculated from values" class="uneditable-input"
123 id="artifact" data-bind="text: legacyArtifactPath.artifact"></span>
128 <button id="network-proxy-btn-save" data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
129 <button id="network-proxy-btn-cancel" data-bind="click: displayGrid" class="btn">${$.i18n.prop('cancel')}</button>
130 <button id="network-proxy-btn-calculate-path" data-bind="click: calculatePath" class="btn btn-success">${$.i18n.prop('legacy-artifact-paths.calculatePath')}</button>
134 <script id="legacy-artifact-path-delete-warning-tmpl" type="text/html">
136 <span class="label label-warning">${$.i18n.prop('warning.not.undone.operation')}</span>
140 <script id="repository-scanning-main" type="text/html">
141 <div id="repository-scanning-screen">
142 <div class="page-header">
143 <h2>${$.i18n.prop('repository-scanning.head')}</h2>
147 <ul id="repositories-tabs" class="nav nav-tabs">
149 <a data-toggle="tab" href="#file-types-content">${$.i18n.prop('repository-scanning.file-types.head')}</a>
152 <a data-toggle="tab" href="#consumers-content">${$.i18n.prop('repository-scanning.consumers.head')}</a>
156 <div class="tab-content">
157 <div id="file-types-content" class="tab-pane active" data-bind='template: {name:"file-types-tmpl"}'>
160 <div id="consumers-content" class="tab-pane">
167 <script id="file-types-tmpl" type="text/html">
168 <!-- accordion ?? -->
170 {{each(i, fileType) fileTypes}}
171 <div class="page-header">
172 <h4>${fileType.id}</h4>
174 <table class="table table-condensed">
175 {{each(j,pattern) fileType.patterns}}
179 <a href="#" data-bind="click: function(){ removeFileTypePattern(fileType.id(),pattern) }">
180 <img src="images/edit-cut-22-22.png" title="${$.i18n.prop('delete')}"/>
186 <td><input type="text" id="pattern-${fileType.id}"/></td>
187 <td><a href="#" data-bind="click: function(){addFileTypePattern(fileType.id())}">add</a></td>