added display flag for default scopes
parent
5f116d522d
commit
6a41e98474
|
@ -296,7 +296,8 @@
|
||||||
"confirm": "Are you sure sure you would like to delete this scope? Clients that have this scope will still be able to ask for it.",
|
"confirm": "Are you sure sure you would like to delete this scope? Clients that have this scope will still be able to ask for it.",
|
||||||
"new": "New Scope",
|
"new": "New Scope",
|
||||||
"text": "There are no system scopes defined. Clients may still have custom scopes.",
|
"text": "There are no system scopes defined. Clients may still have custom scopes.",
|
||||||
"tooltip-restricted": "This scope can be used only by adminisrtators. It is not available for dynamic registration."
|
"tooltip-restricted": "This scope can be used only by adminisrtators. It is not available for dynamic registration.",
|
||||||
|
"tooltip-default": "This scope is automatically assigned to newly registered clients."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"token": {
|
"token": {
|
||||||
|
|
|
@ -99,7 +99,8 @@ var SystemScopeView = Backbone.View.extend({
|
||||||
render:function (eventName) {
|
render:function (eventName) {
|
||||||
this.$el.html(this.template(this.model.toJSON()));
|
this.$el.html(this.template(this.model.toJSON()));
|
||||||
|
|
||||||
this.$('.restricted').tooltip({title: $.t('scope.system-scope-table.tooltip-restricted')});
|
$('.restricted', this.el).tooltip({title: $.t('scope.system-scope-table.tooltip-restricted')});
|
||||||
|
$('.default', this.el).tooltip({title: $.t('scope.system-scope-table.tooltip-default')});
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
$(this.el).i18n();
|
$(this.el).i18n();
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
<% if (!opt.toggle) { %>
|
<% if (!opt.toggle) { %>
|
||||||
<a class="btn btn-small btn-delete-list-item" href="#"><i class="icon-minus-sign"></i></a>
|
<a class="btn btn-small btn-delete-list-item" href="#"><i class="icon-minus-sign"></i></a>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<input class="checkbox-list-item" type="checkbox" <%- opt.checked ? 'checked="checked"' : '' %> />
|
<input class="checkbox checkbox-list-item" type="checkbox" <%- opt.checked ? 'checked="checked"' : '' %> />
|
||||||
<% } %>
|
<% } %>
|
||||||
</td>
|
</td>
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -47,6 +47,9 @@
|
||||||
|
|
||||||
<script type="text/html" id="tmpl-system-scope">
|
<script type="text/html" id="tmpl-system-scope">
|
||||||
<td>
|
<td>
|
||||||
|
<% if (defaultScope) { %>
|
||||||
|
<span class="label label-success default"><i class="icon-flag icon-white"></i></span>
|
||||||
|
<% } %>
|
||||||
<% if (restricted) { %>
|
<% if (restricted) { %>
|
||||||
<span class="label label-warning restricted"><i class="icon-ban-circle icon-white"></i></span>
|
<span class="label label-warning restricted"><i class="icon-ban-circle icon-white"></i></span>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
Loading…
Reference in New Issue