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="repositoriesMain" type="text/x-jquery-tmpl">
20 <div class="page-header">
21 <h2>${$.i18n.prop('administration.repositories')}</h2>
24 <ul id="repositories-tabs" class="tabs">
26 <a href="#managed-repositories-content">${$.i18n.prop('managedrepositories.grid.head')}</a>
29 <a href="#remote-repositories-content">${$.i18n.prop('remoterepositories.grid.head')}</a>
32 <div class="tab-content">
33 <div id="managed-repositories-content" class="active">
34 <ul id="managed-repositories-pills" class="pills">
35 <li class="active" id="managed-repositories-view-li">
36 <a href="#managed-repositories-view">${$.i18n.prop('managedrepositories.grid.tab.title')}</a>
38 <li id="managed-repository-edit-li">
39 <a href="#managed-repository-edit">${$.i18n.prop('add')}</a>
42 <div id="managed-repositories-tabs-content" class="pill-content">
43 <div id="managed-repositories-view" class="active">
44 <table class="bordered-table zebra-striped" id="managed-repositories-table"
45 data-bind="simpleGrid: gridViewModel,simpleGridTemplate:'ko_managed-repositoriesGrid',pageLinksId:'managed-repositoriesPagination'">
47 <div id="managed-repositoriesPagination"></div>
49 <div id="managed-repository-edit" data-bind='template: {name:"managed-repository-edit-tmpl"}'>
56 <div id="remote-repositories-content">
57 grid to view edit remote repositories
62 <script id='ko_managed-repositoriesGrid' type='text/x-jquery-tmpl'>
65 {{each(i, columnDefinition) columns}}
66 <th title="${ columnDefinition.title }">${ columnDefinition.headerText }</th>
68 <th>${$.i18n.prop('release.included')}</th>
69 <th>${$.i18n.prop('snapshots.included')}</th>
70 <th>${$.i18n.prop('edit')}</th>
75 {{each(i, row) itemsOnCurrentPage()}}
77 {{each(j, columnDefinition) columns}}
78 <td>${ typeof columnDefinition.rowText == 'function' ? columnDefinition.rowText(row) : row[columnDefinition.rowText] }</td>
81 {{if row.releases() == true}}
82 <img src="images/weather-clear.png"/>
84 <img src="images/dialog-error.png"/>
89 {{if row.snapshots() == true}}
90 <img src="images/weather-clear.png"/>
92 <img src="images/dialog-error.png"/>
95 <td><a href="#" data-bind="click: function(){ editManagedRepository(row) }">Edit</a></td>
102 <script id="managed-repository-edit-tmpl" type='text/x-jquery-tmpl'>
103 <form id="managed-repository-edit-form">
104 <fieldset id="managed-repository-edit-fieldset">
105 <div class="clearfix">
106 <label for="name">${$.i18n.prop('id')}</label>
109 <span class="uneditable-input">${$data.managedRepository().id}</span>
111 <input type="text" class="xlarge required" id="id" name="id" size="50"
112 data-bind="value: managedRepository().id,css:{'uneditable-input': update},readonly:update"/>
116 <div class="clearfix">
117 <label for="name">${$.i18n.prop('name')}</label>
119 <input type="text" class="xlarge required" id="name" name="name" size="50"
120 data-bind="value: managedRepository().name"/>
123 <div class="clearfix">
124 <label for="location">${$.i18n.prop('directory')}</label>
126 <input type="text" class="xlarge required" id="location" name="location" size="50" data-bind="value: managedRepository().location"/>
129 <div class="clearfix">
130 <label for="indexDirectory">${$.i18n.prop('index.directory')}</label>
132 <input type="text" class="xlarge" id="indexDirectory" name="indexDirectory" size="50" data-bind="value: managedRepository().indexDirectory"/>
135 <div class="clearfix">
136 <label for="cronExpression">${$.i18n.prop('cronExpression')}</label>
138 <input type="text" id="cronExpression" class="required" name="cronExpression" size="40" data-bind="value: managedRepository().cronExpression"/>
141 <div class="clearfix">
142 <label for="daysOlder">${$.i18n.prop('daysOlder')}</label>
144 <input type="text" id="daysOlder" class="digits" name="daysOlder" size="5" data-bind="value: managedRepository().daysOlder"/>
147 <div class="clearfix">
148 <label for="retentionCount">${$.i18n.prop('retentionCount')}</label>
150 <input type="text" id="retentionCount" name="retentionCount" size="5" data-bind="value: managedRepository().retentionCount"/>
153 <div class="clearfix">
154 <label for="releases">${$.i18n.prop('releases')}</label>
156 <input type="checkbox" id="releases" name="releases" size="5" data-bind="checked: managedRepository().releases"/>
159 <div class="clearfix">
160 <label for="snapshots">${$.i18n.prop('snapshots')}</label>
162 <input type="checkbox" id="snapshots" name="snapshots" size="5" data-bind="checked: managedRepository().snapshots"/>
165 <div class="clearfix">
166 <label for="blockRedeployments">${$.i18n.prop('blockRedeployments')}</label>
168 <input type="checkbox" id="blockRedeployments" name="blockRedeployments" size="5" data-bind="checked: managedRepository().blockRedeployments"/>
171 <div class="clearfix">
172 <label for="scanned">${$.i18n.prop('scanned')}</label>
174 <input type="checkbox" id="scanned" name="scanned" size="5" data-bind="checked: managedRepository().scanned"/>
177 <div class="clearfix">
178 <label for="deleteReleasedSnapshots">${$.i18n.prop('deleteReleasedSnapshots')}</label>
180 <input type="checkbox" id="deleteReleasedSnapshots" name="deleteReleasedSnapshots" size="5" data-bind="checked: managedRepository().deleteReleasedSnapshots"/>
183 <div class="clearfix">
184 <label for="stageRepoNeeded">${$.i18n.prop('stageRepoNeeded')}</label>
186 <input type="checkbox" id="stageRepoNeeded" name="stageRepoNeeded" size="5" data-bind="checked: managedRepository().stageRepoNeeded"/>
190 <button data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
191 <button data-bind="click: displayGrid" class="btn">${$.i18n.prop('cancel')}</button>