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="networkProxiesMain" type="text/html">
20 <div class="page-header">
21 <h2><img src="images/internet-web-browser-32-32.png"/>${$.i18n.prop('network-proxies.list')}</h2>
24 <ul id="network-proxies-view-tabs" class="nav nav-tabs">
25 <li id="network-proxies-view-tabs-li-grid">
26 <a data-toggle="tab" href="#network-proxies-view" id="network-proxies-view-tabs-a-network-proxies-grid">${$.i18n.prop('network-proxies.grid.tab.title')}</a>
28 <li id="network-proxies-view-tabs-li-edit">
29 <a data-toggle="tab" href="#network-proxies-edit">${$.i18n.prop('add')}</a>
32 <div id="network-proxies-view-tabs-content" class="tab-content">
33 <div id="network-proxies-view" class="tab-pane">
34 <div id="network-proxies-bulk-save-btn" data-bind='template:{name:"network-proxies-bulk-save-tmpl"}'></div>
35 <table class="table table-striped table-bordered" id="networkProxiesTable"
36 data-bind="simpleGrid: gridViewModel,simpleGridTemplate:'ko-network-proxies-grid',pageLinksId:'network-proxiesPagination'">
38 <div id="network-proxiesPagination"></div>
40 <div id="network-proxies-edit" class="tab-pane" data-bind='template: {name:"network-proxy-edit-tmpl"}'></div>
45 <script id='ko-network-proxies-grid' type='text/html'>
48 {{each(i, columnDefinition) columns}}
49 <th>${ columnDefinition.headerText }</th>
51 <th>${$.i18n.prop('password')}</th>
52 <th>${$.i18n.prop('network.proxy.useNtlm')}</th>
53 <th>${$.i18n.prop('edit')}</th>
54 <th>${$.i18n.prop('delete')}</th>
55 <th>${$.i18n.prop('modified')}</th>
59 {{each(i, row) itemsOnCurrentPage()}}
60 <tr data-bind="css:{ 'modified': row.modified()}">
61 {{each(j, columnDefinition) columns}}
62 {{var val = (typeof columnDefinition.rowText == 'function' ? columnDefinition.rowText(row) : row[columnDefinition.rowText])}}
72 <td>${row.useNtlm()}</td>
74 <a href="#" data-bind="click: function(){ editNetworkProxy(row) }">
75 <span class="btn btn-primary">
76 <i class="icon-pencil icon-white"/>
81 <a href="#" data-bind="click: function(){ removeNetworkProxy(row) }">
82 <span class="btn btn-danger">
83 <i class="icon-trash icon-white"/>
89 <a href="#" data-bind="click: function(){ updateNetworkProxy(row) }" class="btn btn-warning">${$.i18n.prop('save')}</a>
101 <script id="network-proxy-edit-tmpl" type='text/html'>
102 <form id="network-proxy-edit-form" class="well form-horizontal">
103 <fieldset id="network-proxy-edit-fieldset">
104 <div class="control-group">
105 <label class="control-label" for="id">${$.i18n.prop('id')}</label>
106 <div class="controls">
108 <span class="uneditable-input">${$data.networkProxy.id}</span>
110 <input type="text" class="xlarge" id="id" name="id" size="10"
111 data-bind="value: networkProxy.id,css:{'uneditable-input': update},readonly:update"/>
115 <div class="control-group">
116 <label class="control-label" for="protocol">${$.i18n.prop('protocol')}</label>
117 <div class="controls">
118 <input type="text" class="xlarge required" id="protocol" name="protocol" size="8"
119 data-bind="value: networkProxy.protocol"/>
122 <div class="control-group">
123 <label class="control-label" for="host">${$.i18n.prop('host')}</label>
124 <div class="controls">
125 <input type="text" class="xlarge required" id="host" name="host" size="15"
126 data-bind="value: networkProxy.host"/>
129 <div class="control-group">
130 <label class="control-label" for="port">${$.i18n.prop('port')}</label>
131 <div class="controls">
132 <input type="text" class="xlarge required digits" id="port" name="port" size="6"
133 data-bind="value: networkProxy.port"/>
136 <div class="control-group">
137 <label class="control-label" for="username">${$.i18n.prop('username')}</label>
138 <div class="controls">
139 <input type="text" class="xlarge" id="username" name="username" size="50"
140 data-bind="value: networkProxy.username"/>
143 <div class="control-group">
144 <label class="control-label" for="password">${$.i18n.prop('password')}</label>
145 <div class="controls">
146 <input type="password" class="xlarge" id="password" name="password" size="50"
147 data-bind="value: networkProxy.password"/>
150 <div class="control-group">
151 <label class="control-label" for="useNtlm">${$.i18n.prop('network.proxy.useNtlm')}</label>
152 <div class="controls">
153 <input type="checkbox" id="useNtlm" name="useNtlm" data-bind="checked: networkProxy.useNtlm"/>
158 <button id="network-proxy-btn-save" data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
159 {{if networkProxy.modified()}}
160 ${("#network-proxy-btn-save").button('reset')}
162 <button data-bind="click: displayGrid" class="btn">${$.i18n.prop('cancel')}</button>
166 <script id="network-proxies-bulk-save-tmpl" type='text/html'>
168 <a data-bind="click: updateModifiedNetworkProxies" class="btn btn-danger" href="#">${$.i18n.prop('save.all')}</a>
171 <script id="network-proxy-delete-warning-tmpl" type='text/html'>
173 <span class="label label-warning">${$.i18n.prop('warning.not.undone.operation')}</span>