93 lines
2.8 KiB
HTML
93 lines
2.8 KiB
HTML
<!-- whitelist -->
|
|
|
|
<script type="text/html" id="tmpl-whitelist">
|
|
<td>
|
|
<% if (client.dynamicallyRegistered) { %>
|
|
<span class="dynamically-registered"><i class="icon-globe"></i></span>
|
|
<% } %>
|
|
</td>
|
|
|
|
<td>
|
|
<%=whiteList.clientId%>
|
|
<% if (client.clientDescription) { %>
|
|
<blockquote><small><%=client.clientDescription%></small></blockquote>
|
|
<% } %>
|
|
<div class="scope-list"></div>
|
|
</td>
|
|
|
|
<td>
|
|
<%=client.clientName%>
|
|
<!--expandable future information-->
|
|
</td>
|
|
|
|
<td>
|
|
<button class="btn btn-edit"><i class="icon-edit"></i> Edit</button>
|
|
<button class="btn btn-danger btn-delete pull-right"><i class="icon-trash icon-white"></i> Delete</button>
|
|
</td>
|
|
|
|
</script>
|
|
|
|
<script type="text/html" id="tmpl-whitelist-table">
|
|
<div class="well well-small">
|
|
<button class="btn btn-small refresh-table"><i class="icon-refresh"></i> Refresh</button>
|
|
</div>
|
|
|
|
<div id="whitelist-table-empty" class="alert alert-info">
|
|
There are no whitelisted sites. Use the <strong>whitelist</strong> button on the client management page to create one.
|
|
</div>
|
|
|
|
<table id="whitelist-table" class="table table-hover table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th>ID</th>
|
|
<th>Name</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="well well-small">
|
|
<button class="btn btn-small refresh-table"><i class="icon-refresh"></i> Refresh</button>
|
|
</div>
|
|
|
|
</script>
|
|
|
|
<script type="text/html" id="tmpl-whitelist-form">
|
|
|
|
<h1><%=(whiteList.id == null ? 'New' : 'Edit')%> Whitelisted Site</h1>
|
|
|
|
|
|
<form class="form-horizontal">
|
|
<fieldset>
|
|
<div class="well well-small">
|
|
<button class="btn btn-small btn-save btn-success"><i class="icon-ok-circle icon-white"></i> Save</button>
|
|
<button class="btn btn-small btn-cancel"><i class="icon-ban-circle"></i> Cancel</button>
|
|
</div>
|
|
|
|
<div class="control-group" id="clientId">
|
|
<label class="control-label">Client</label>
|
|
<div class="controls">
|
|
<input type="hidden" name="clientId" value="<%= client.clientId %>" />
|
|
<%= client.clientName != null ? client.clientName : client.clientId %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group" id="scope">
|
|
<label class="control-label">Allowed Scopes</label>
|
|
<div class="controls">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="well well-small">
|
|
<button class="btn btn-small btn-save btn-success"><i class="icon-ok-circle icon-white"></i> Save</button>
|
|
<button class="btn btn-small btn-cancel"><i class="icon-ban-circle"></i> Cancel</button>
|
|
</div>
|
|
|
|
</fieldset>
|
|
</form>
|
|
|
|
</script>
|