visual error indicators for redirect uri and scope
parent
15359a236a
commit
4fcbbe639f
|
@ -89,6 +89,9 @@
|
|||
// if it's valid and doesn't already exist
|
||||
if (model.isValid() && this.collection.where({item: input_value}).length < 1) {
|
||||
this.collection.add(model);
|
||||
} else {
|
||||
// add a visual error indicator
|
||||
$(".control-group", this.el).addClass('error')
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -225,7 +225,8 @@
|
|||
<script type="text/html" id="tmpl-list-widget">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><input type="text" value="" placeholder="<%=(placeholder) ? placeholder : ''%>"></td>
|
||||
<td class="control-group">
|
||||
<input type="text" value="" placeholder="<%=(placeholder) ? placeholder : ''%>"></td>
|
||||
<td><button class="btn btn-small" type="button">Add</button></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
Loading…
Reference in New Issue