added client URI bits

pull/306/merge
Justin Richer 2013-03-05 11:22:55 -05:00
parent 6a88c13675
commit e7282d53fe
2 changed files with 34 additions and 8 deletions

View File

@ -363,17 +363,17 @@ var ClientFormView = Backbone.View.extend({
idTokenValiditySeconds: idTokenValiditySeconds, idTokenValiditySeconds: idTokenValiditySeconds,
allowRefresh: $('#allowRefresh').is(':checked'), // TODO: why are these two checkboxes different? allowRefresh: $('#allowRefresh').is(':checked'), // TODO: why are these two checkboxes different?
allowIntrospection: $('#allowIntrospection input').is(':checked'), // <-- And here? --^ allowIntrospection: $('#allowIntrospection input').is(':checked'), // <-- And here? --^
scope: scopes scope: scopes,
tosUri: $('#tosUri input').val(),
policyUri: $('#policyUri input').val(),
clientUri: $('#clientUri input').val(),
,
// TODO: everything below this line isn't implemented yet // TODO: everything below this line isn't implemented yet
contacts: this.contactsCollection.pluck('item'), contacts: this.contactsCollection.pluck('item'),
tosUri: $('#tosUri input').val(),
tokenEndpointAuthMethod: $('#tokenEndpointAuthMethod input').val(), // TODO: this might need to be something different for a single-select? tokenEndpointAuthMethod: $('#tokenEndpointAuthMethod input').val(), // TODO: this might need to be something different for a single-select?
responseTypes: responseTypes, // TODO: need a preprocessor? responseTypes: responseTypes, // TODO: need a preprocessor?
policyUri: $('#policyUri input').val(),
jwksUri: $('#jwksUri input').val(), jwksUri: $('#jwksUri input').val(),
applicationType: applicationType, // TODO: need a preprocessor? applicationType: applicationType, // TODO: need a preprocessor?
sectorIdentifierUri: $('#sectorIdentifierUri input').val(), sectorIdentifierUri: $('#sectorIdentifierUri input').val(),

View File

@ -113,21 +113,47 @@
</div> </div>
<div class="control-group" id="logoUri"> <div class="control-group" id="logoUri">
<label class="control-label">Logo URL</label> <label class="control-label">Logo</label>
<div class="controls"> <div class="controls">
<input placeholder="http://" value="<%=logoUri%>" maxlength="100" type="text" class=""/> <input placeholder="http://" value="<%=logoUri%>" maxlength="1000" type="text" class=""/>
<p class="help-block">URL to use for a logo image</p> <p class="help-block">URL that points to a logo image, will be displayed on approval page</p>
</div> </div>
</div> </div>
<div class="control-group" id="logoBlock"> <div class="control-group" id="logoBlock">
<label class="control-label">Logo Preview</label>
<div class="controls"> <div class="controls">
<!-- TODO: this should be an internally-served placeholder graphic --> <!-- TODO: this should be an internally-served placeholder graphic -->
<img src="http://placehold.it/275x200&text=Enter a logo URL" alt="logo" id="logoPreview" width="275px" class="thumbnail" /> <img src="http://placehold.it/275x200&text=Enter a logo URL" alt="logo" id="logoPreview" width="275px" class="thumbnail" />
</div> </div>
</div> </div>
<div class="control-group" id="tosUri">
<label class="control-label">Terms of Service</label>
<div class="controls">
<input placeholder="http://" value="<%=tosUri%>" maxlength="1000" type="text" class=""/>
<p class="help-block">URL for the Terms of Service of this client, will be displayed to the user</p>
</div>
</div>
<div class="control-group" id="policyUri">
<label class="control-label">Policy</label>
<div class="controls">
<input placeholder="http://" value="<%=policyUri%>" maxlength="1000" type="text" class=""/>
<p class="help-block">URL for the Policy Statement of this client, will be displayed to the user</p>
</div>
</div>
<div class="control-group" id="clientUri">
<label class="control-label">Home Page</label>
<div class="controls">
<input placeholder="http://" value="<%=clientUri%>" maxlength="1000" type="text" class=""/>
<p class="help-block">URL for the client's home page, will be displayed to the user</p>
</div>
</div>
</div> </div>
<div class="tab-pane" id="client-access-tab"> <div class="tab-pane" id="client-access-tab">