![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.
35 lines
1.0 KiB
HTML
35 lines
1.0 KiB
HTML
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr ng-repeat="(tmname,tmval) in mapping.analysis.token_maps">
|
|
<td>{{tmname}}</td>
|
|
<td>
|
|
<div class="btn-group btn-group-xs" role="group">
|
|
<button ng-click="editWordList(tmname, tmval)" type="button" class="btn btn-default btn-xs">
|
|
<span class="glyphicon glyphicon-edit" aria-hidden="true"></span> Edit
|
|
</button>
|
|
<button ng-click="deleteWordList(tmname)" type="button" class="btn btn-default btn-xs">
|
|
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span> Delete
|
|
</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr ng-show="Utils.keys(mapping.analysis.token_maps).length < 1">
|
|
<td colspan="2">None</td>
|
|
</tr>
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="2">
|
|
<button ng-click="newWordList()" type="button" class="btn btn-sm btn-default pull-right">New Word List</button>
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
|