Approval page updates. Approval and denial buttons are now in one form. Generic checkboxes are in place.

pull/105/merge
Michael Jett 2012-05-31 12:12:56 -04:00
parent 998fc7f98b
commit 68483536a6
1 changed files with 22 additions and 13 deletions

View File

@ -26,22 +26,31 @@
<p>I hereby authorize "<c:out value="${client.clientId}"/>" to access my protected resources.</p>
<p>
<form name="confirmationForm" style="display:inline"
action="<%=request.getContextPath()%>/oauth/authorize" method="post">
<input name="user_oauth_approval" value="true" type="hidden"/>
<input name="authorize" value="Authorize" type="submit" class="btn btn-success btn-large"/>
</form>
<form name="confirmationForm" style="display:inline" action="<%=request.getContextPath()%>/oauth/authorize" method="post">
<div class="row">
<input id="user_oauth_approval" name="user_oauth_approval" value="true" type="hidden"/>
<input name="authorize" value="Authorize" type="submit"
onclick="$('#user_oauth_approval').attr('value',true)" class="btn btn-success btn-large"/>
&nbsp;
<form name="denialForm" style="display:inline" action="<%=request.getContextPath()%>/oauth/authorize"
method="post">
<input name="user_oauth_approval" value="false" type="hidden"/>
<input name="deny" value="Deny" type="submit" class="btn btn-secondary btn-large"/>
</form>
</p>
<a href="#" class="small">learn more</a>
<input name="deny" value="Deny" type="submit" onclick="$('#user_oauth_approval').attr('value',false)"
class="btn btn-secondary btn-large"/>
</div>
<div class="row control-group">
<label for="option1"></label>
<input name="option1" id="option1" type="checkbox"> Check me out
<label for="option2"></label>
<input name="option1" id="option2" type="checkbox"> Check me out
</div>
</form>
<div>
<a href="#" class="small">learn more</a>
</div>
</authz:authorize>