![Steve Yen](/assets/img/avatar_default.png)
All this work comes from Marty Schoch's bleve-explorer UI, but was moved here for increased reusability.
39 lines
1.3 KiB
HTML
39 lines
1.3 KiB
HTML
<div class="modal-header">
|
|
<h3 class="modal-title">Custom Word List</h3>
|
|
</div>
|
|
<div class="modal-body">
|
|
|
|
<div ng-show="errorMessage" class="alert alert-danger ng-cloak" role="alert"> {{errorMessage}}
|
|
</div>
|
|
|
|
<form class="form" role="form">
|
|
<div class="form-group">
|
|
<label for="tname">Name</label>
|
|
<input ng-model="name" type="text" class="form-control" id="tname" placeholder="Name">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="words">Words</label>
|
|
<select ng-model="selectedWords" multiple ng-multiple="true" id="words" size="5" class="form-control" ng-options="idx as word for (idx, word) in words">
|
|
</select>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="what"></label>
|
|
<div class="col-sm-8">
|
|
<input ng-model="newWord" type="text" class="form-control" id="newWord" placeholder="word">
|
|
</div>
|
|
<div class="col-sm-4">
|
|
<button ng-click="addWord()" type="button" class="btn btn-sm btn-default">Add</button>
|
|
<button ng-click="removeWord()" ng-disabled="selectedWords.length < 1" type="button" class="btn btn-sm btn-default pull-right">Remove</button>
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button class="btn btn-default" ng-click="cancel()">Cancel</button>
|
|
<button ng-click="build()" type="button" class="btn btn-primary pull-right">Save</button>
|
|
</div> |