minor bugfixes
parent
d1968f624a
commit
e5171a196a
|
@ -207,6 +207,9 @@
|
||||||
|
|
||||||
defaults:{
|
defaults:{
|
||||||
id:null,
|
id:null,
|
||||||
|
description:null,
|
||||||
|
icon:null,
|
||||||
|
value:null,
|
||||||
defaultScope:false,
|
defaultScope:false,
|
||||||
allowDynReg:false
|
allowDynReg:false
|
||||||
},
|
},
|
||||||
|
@ -1147,12 +1150,12 @@
|
||||||
|
|
||||||
initialize:function() {
|
initialize:function() {
|
||||||
if (!this.template) {
|
if (!this.template) {
|
||||||
this.template = _.template($('#tmpl-system-scope-form').html());
|
this.template = _.template($('#tmpl-system-scope-form').html());
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
events:{
|
events:{
|
||||||
'click .btn-save':'saveSope',
|
'click .btn-save':'saveScope',
|
||||||
'click .btn-cancel': function() {window.history.back(); return false; }
|
'click .btn-cancel': function() {window.history.back(); return false; }
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -1179,7 +1182,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
render: function(eventName) {
|
render: function(eventName) {
|
||||||
$(this.el).html(this.template(this.model.toJSON()));
|
this.$el.html(this.template(this.model.toJSON()));
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
|
@ -538,7 +538,7 @@
|
||||||
|
|
||||||
<div class="well well-small">
|
<div class="well well-small">
|
||||||
<button class="btn btn-small refresh-table"><i class="icon-refresh"></i> Refresh</button>
|
<button class="btn btn-small refresh-table"><i class="icon-refresh"></i> Refresh</button>
|
||||||
<button class="btn btn-small btn-primary new-client"><i class="icon-plus icon-white"></i> New Scope</button>
|
<button class="btn btn-small btn-primary new-scope"><i class="icon-plus icon-white"></i> New Scope</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table id="scope-table" class="table table-hover table-striped">
|
<table id="scope-table" class="table table-hover table-striped">
|
||||||
|
@ -555,7 +555,7 @@
|
||||||
|
|
||||||
<div class="well well-small">
|
<div class="well well-small">
|
||||||
<button class="btn btn-small refresh-table"><i class="icon-refresh"></i> Refresh</button>
|
<button class="btn btn-small refresh-table"><i class="icon-refresh"></i> Refresh</button>
|
||||||
<button class="btn btn-small btn-primary new-client"><i class="icon-plus icon-white"></i> New Scope</button>
|
<button class="btn btn-small btn-primary new-scope"><i class="icon-plus icon-white"></i> New Scope</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -580,7 +580,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/html" id="tmpl-system-scope-form">
|
<script type="text/html" id="tmpl-system-scope-form">
|
||||||
<h1><%= id == null ? 'New' : 'Edit')%> Scope</h1>
|
<h1><%= id == null ? 'New' : 'Edit'%> Scope</h1>
|
||||||
|
|
||||||
<form class="form-horizontal">
|
<form class="form-horizontal">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
@ -593,7 +593,7 @@
|
||||||
<div class="control-group" id="value">
|
<div class="control-group" id="value">
|
||||||
<label class="control-label">Scope value</label>
|
<label class="control-label">Scope value</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input value="<%=value%>" type="text" class="" placeholder="scope">
|
<input value="<%=value != null ? value : ''%>" type="text" class="" placeholder="scope">
|
||||||
<p class="help-block">Single string with no spaces</p>
|
<p class="help-block">Single string with no spaces</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -601,7 +601,7 @@
|
||||||
<div class="control-group" id="description">
|
<div class="control-group" id="description">
|
||||||
<label class="control-label">Description</label>
|
<label class="control-label">Description</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<textarea class="input-xlarge" placeholder="Type a description" maxlength="200" rows="3"><%=description%></textarea>
|
<textarea class="input-xlarge" placeholder="Type a description" maxlength="200" rows="3"><%=description != null ? description : ''%></textarea>
|
||||||
<p class="help-block">Human-readable text description</p>
|
<p class="help-block">Human-readable text description</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -609,7 +609,7 @@
|
||||||
<div class="control-group" id="defaultScope">
|
<div class="control-group" id="defaultScope">
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<label class="checkbox">
|
<label class="checkbox">
|
||||||
<input type="checkbox" <%=defaultScope ? 'checked' : ''%>> default scope
|
<input type="checkbox" <%=defaultScope ? 'checked' : '' %>> default scope
|
||||||
</label>
|
</label>
|
||||||
<p class="help-block">Newly-created clients get this scope by default?</p>
|
<p class="help-block">Newly-created clients get this scope by default?</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -618,7 +618,7 @@
|
||||||
<div class="control-group" id="allowDynReg">
|
<div class="control-group" id="allowDynReg">
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<label class="checkbox">
|
<label class="checkbox">
|
||||||
<input type="checkbox" <%=allowDynReg ? 'checked' : ''%>> allow dynamic registration
|
<input type="checkbox" <%=allowDynReg ? 'checked' : '' %>> allow dynamic registration
|
||||||
</label>
|
</label>
|
||||||
<p class="help-block">Allow dynamically registered clients to request this scope?</p>
|
<p class="help-block">Allow dynamically registered clients to request this scope?</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue