propagated field name change to UI

pull/263/head
Justin Richer 2012-12-11 12:38:55 -05:00
parent 179903b074
commit cc36851bdd
2 changed files with 13 additions and 13 deletions

View File

@ -226,7 +226,7 @@
defaults:{ defaults:{
id:null, id:null,
idTokenValiditySeconds: 600, idTokenValiditySeconds: 600,
applicationName:"", clientName:"",
clientSecret:"", clientSecret:"",
registeredRedirectUri:[], registeredRedirectUri:[],
authorizedGrantTypes:["authorization_code"], authorizedGrantTypes:["authorization_code"],
@ -563,7 +563,7 @@
} }
var valid = this.model.set({ var valid = this.model.set({
applicationName:$('#applicationName input').val(), clientName:$('#clientName input').val(),
clientId:$('#clientId input').val(), clientId:$('#clientId input').val(),
clientSecret: clientSecret, clientSecret: clientSecret,
generateClientSecret:generateClientSecret, generateClientSecret:generateClientSecret,

View File

@ -13,7 +13,7 @@
</td> </td>
<td> <td>
<%=applicationName%> <%=clientName%>
<!--expandable future information--> <!--expandable future information-->
</td> </td>
@ -33,8 +33,8 @@
<thead> <thead>
<tr> <tr>
<th></th> <th></th>
<th>Client ID</th> <th>ID</th>
<th>Application Name</th> <th>Name</th>
<th></th> <th></th>
</tr> </tr>
</thead> </thead>
@ -60,10 +60,10 @@
<button class="btn btn-small btn-primary">Save</button>&nbsp;<button class="btn btn-small btn-cancel">Cancel</button> <button class="btn btn-small btn-primary">Save</button>&nbsp;<button class="btn btn-small btn-cancel">Cancel</button>
</div> </div>
<div class="control-group" id="applicationName"> <div class="control-group" id="clientName">
<label class="control-label">Application name</label> <label class="control-label">Client name</label>
<div class="controls"> <div class="controls">
<input value="<%=applicationName%>" maxlength="100" type="text" class="" placeholder="Type something"> <input value="<%=clientName%>" maxlength="100" type="text" class="" placeholder="Type something">
<p class="help-block">Human-readable application name</p> <p class="help-block">Human-readable application name</p>
</div> </div>
</div> </div>
@ -301,7 +301,7 @@
</td> </td>
<td> <td>
<%=client.applicationName%> <%=client.clientName%>
<!--expandable future information--> <!--expandable future information-->
</td> </td>
@ -320,8 +320,8 @@
<thead> <thead>
<tr> <tr>
<th></th> <th></th>
<th>Client ID</th> <th>ID</th>
<th>Application Name</th> <th>Name</th>
<th></th> <th></th>
</tr> </tr>
</thead> </thead>
@ -350,7 +350,7 @@
<label class="control-label">Client</label> <label class="control-label">Client</label>
<div class="controls"> <div class="controls">
<input type="hidden" name="clientId" value="<%= client.clientId %>" /> <input type="hidden" name="clientId" value="<%= client.clientId %>" />
<%= client.applicationName != null ? client.applicationName : client.clientId %> <%= client.clientName != null ? client.clientName : client.clientId %>
</div> </div>
</div> </div>
@ -411,7 +411,7 @@
</td> </td>
<td> <td>
<%= client.applicationName != null ? client.applicationName : client.clientId %> <%= client.clientName != null ? client.clientName : client.clientId %>
<blockquote><small><%=client.clientDescription%></small></blockquote> <blockquote><small><%=client.clientDescription%></small></blockquote>
<!-- put scopes and other info here --> <!-- put scopes and other info here -->
</td> </td>