added icons and tooltips to approved site table
parent
20b73ea0c4
commit
2beff07d4b
|
@ -35,7 +35,7 @@
|
||||||
events:{
|
events:{
|
||||||
"click .btn":function (e) {
|
"click .btn":function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
this.$el.tooltip('destroy');
|
this.$el.tooltip('delete');
|
||||||
this.model.destroy();
|
this.model.destroy();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -687,6 +687,10 @@
|
||||||
var json = {grant: this.model.toJSON(), client: this.options.client.toJSON()};
|
var json = {grant: this.model.toJSON(), client: this.options.client.toJSON()};
|
||||||
|
|
||||||
this.$el.html(this.template(json));
|
this.$el.html(this.template(json));
|
||||||
|
|
||||||
|
this.$('.dynamically-registered').tooltip({title: 'This client was dynamically registered'});
|
||||||
|
this.$('.whitelisted-site').tooltip({title: 'This site was whitelisted by an adminstrator'});
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -358,6 +358,7 @@
|
||||||
<table id="grant-table" class="table">
|
<table id="grant-table" class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
<th></th>
|
||||||
<th>Application</th>
|
<th>Application</th>
|
||||||
<th>Created</th>
|
<th>Created</th>
|
||||||
<th>Last Accessed</th>
|
<th>Last Accessed</th>
|
||||||
|
@ -376,6 +377,15 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/html" id="tmpl-grant">
|
<script type="text/html" id="tmpl-grant">
|
||||||
|
<td>
|
||||||
|
<% if (dynamicallyRegistered) { %>
|
||||||
|
<span class="dynamically-registered"><i class="icon-cog"></i></span>
|
||||||
|
<% } %>
|
||||||
|
<% if (whitelistedSite != null) { %>
|
||||||
|
<span class="whitelisted-site"><i class="icon-certificate"></i></span>
|
||||||
|
<% } %>
|
||||||
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<%= client.applicationName != null ? client.applicationName : client.clientId %>
|
<%= client.applicationName != null ? client.applicationName : client.clientId %>
|
||||||
<blockquote><small><%=client.clientDescription%></small></blockquote>
|
<blockquote><small><%=client.clientDescription%></small></blockquote>
|
||||||
|
|
Loading…
Reference in New Issue