this.update=update;
this.modified=ko.observable(false);
+ isUpdate=function(){
+ return self.update;
+ }
+
getSelectedPolicyOption=function(id){
$.log("getSelectedPolicyOption:"+id);
mainContent.find("#proxy-connectors-edit").html($("#proxy-connector-edit-form-tmpl").tmpl());
ko.applyBindings(proxyConnectorViewModel,mainContent.find("#proxy-connectors-edit").get(0));
activateProxyConnectorsEditTab();
+ mainContent.find("#proxy-connectors-view-tabs-li-edit a").html($.i18n.prop("edit"));
}
deleteProxyConnector=function(proxyConnector){
clearUserMessages();
}
if ($(e.target).attr("href")=="#proxy-connectors-view") {
$("#proxy-connectors-view-tabs-a-network-proxies-grid").html($.i18n.prop("proxy-connectors.grid.tab.title"));
-
+ mainContent.find("#proxy-connectors-view-tabs-li-edit a").html($.i18n.prop("add"));
}
});
</thead>
<tbody>
{{each(i, row) itemsOnCurrentPage()}}
- <tr>
+ <tr data-bind="css:{ 'modified': row.modified()}">
<td>${row.sourceRepoId()}</td>
<td>${row.targetRepoId()}-${row.order()}</td>
<td><img src="images/utilities-system-monitor.png" id="proxy-connectors-grid-remoterepo-settings-edit-${row.sourceRepoId()}-${row.targetRepoId()}"
<div class="control-group">
<label class="control-label" for="proxyId">${$.i18n.prop('proxy-connector.managed.repository.id')}</label>
<div class="controls">
- <select id="sourceRepoId"
- data-bind="options: proxyConnectorsViewModel.managedRepositories, optionsText: 'id',optionsValue:'id',
- value: proxyConnector.sourceRepoId"></select>
+ <select id="sourceRepoId"
+ data-bind="options: proxyConnectorsViewModel.managedRepositories, optionsText: 'id',optionsValue:'id',
+ value: proxyConnector.sourceRepoId,attr: {disabled: isUpdate() }"></select>
</div>
</div>
<div class="control-group">
<div class="controls">
<select id="targetRepoId"
data-bind="options: proxyConnectorsViewModel.remoteRepositories, optionsText: 'id',optionsValue:'id',
- value: proxyConnector.targetRepoId"></select>
+ value: proxyConnector.targetRepoId,attr: {disabled: isUpdate() }"></select>
</div>
</div>
<div class="control-group span6">