Client management page now renders test JSON

pull/59/head
Michael Jett 2012-04-03 12:49:57 -04:00
parent 59078cc68d
commit dc42eb7789
1 changed files with 132 additions and 150 deletions

View File

@ -1,30 +1,43 @@
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="o" tagdir="/WEB-INF/tags" %>
<o:header title="welcome" />
<o:header title="welcome"/>
<script type="text/html" id="client_tmpl">
<tr>
<td><#=name#></td>
<td><#=redirectURL#></td>
<td>
<#=name#>
</td>
<td>
<#=redirectURL#>
</td>
<td>
<ul>
<# for (var i in grantType) { #>
<li><#=grantType[i]#></li>
<li>
<#=grantType[i]#>
</li>
<# } #>
</ul>
</td>
<td>
<ul>
<# for (var i in scope) { #>
<li><#=scope[i]#></li>
<li>
<#=scope[i]#>
</li>
<# } #>
</ul>
</td>
<td><#=authority#></td>
<td><#=description#>
<td>
<#=authority#>
</td>
<td>
<#=description#>
</td>
<td><input type="checkbox" "
<#=(refreshTokens == 1 ? 'checked' : '')#> value="" id="" name="" disabled>
</td>
<td><input type="checkbox" "<#=(refreshTokens == 1 ? 'checked' : '')#> value="" id="" name="" disabled></td>
<td>
<button data-controls-modal="modal-from-dom" data-backdrop="true" data-keyboard="true"
class="btn">edit
@ -36,17 +49,12 @@
</tr>
</script>
<div id="modal-from-dom" class="modal hide fade" style="width: 577px; max-height: none; top: 35%">
<div class="modal-header">
<a href="#" class="close">&times;</a>
<h3>Edit Client</h3>
</div>
<div class="modal-body">
<div style="display: none;">
<form>
<fieldset>
<!--<legend>OpenID Client</legend>-->
<legend>OpenID Client</legend>
<div class="clearfix">
<label for="xlInput">Client Name</label>
@ -148,67 +156,41 @@
</div>
</form>
</div>
<div class="modal-footer">
<a href="#" class="btn primary">Save</a>
<a href="#" class="btn secondary">Cancel</a>
</div>
</div>
<o:topbar/>
<div class="container-fluid">
<o:sidebar/>
<div class="content">
<!-- Main hero unit for a primary marketing message or call to action -->
<div class="hero-unit">
<h1>Welcome, User Name!</h1>
<o:breadcrumbs crumb="Manage Clients"/>
<p>Can't remember your passwords? Tired of filling out registration forms?
OpenID is a <strong>safe</strong>, <strong>faster</strong>, and <strong>easier</strong> way to log in to
web sites.</p>
<p><a class="btn primary large" href="http://openid.net/connect/">Learn more &raquo;</a></p>
</div>
<!-- Example row of columns -->
<div class="row">
<div class="span8">
<h2>About</h2>
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo,
tortor
mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada
magna
mollis euismod. Donec sed odio dui. </p>
<p><a class="btn" href="#">More &raquo;</a></p>
</div>
<div class="span8">
<h2>Contact</h2>
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo,
tortor
mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada
magna
mollis euismod. Donec sed odio dui. </p>
<p><a class="btn" href="#">Email &raquo;</a></p>
<div class="well">
<a class="btn small primary" href="#">New Client</a>
</div>
</div>
<hr>
<!-- Example row of columns -->
<div class="row">
<div class="span16">
<h2>Current Statistics</h2>
<p>You'll be keen to know that there have been <span class="label notice">4720</span> users of this
system who have logged in to
<span class="label notice">203</span>
total sites, for a total of <span class="label notice">6224</span> site approvals.</p>
<table id="client-table">
<thead>
<tr>
<th>Name</th>
<th>Redirect URL</th>
<th>Grant Types</th>
<th>Scope</th>
<th>Authority</th>
<th class="span8">Description</th>
<th>Refresh Tokens</th>
<th class="span1"></th>
<th class="span1"></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="well">
<a class="btn small primary" href="#">New Client</a>
</div>
</div>
<o:copyright/>
</div>
</div>