2014-10-05 04:19:57 +00:00
|
|
|
<div id="table_filter_container" style="display: block;">
|
|
|
|
<input id="table_filter_text_box" class="filter_text_box text_box_transient" placeholder="Filter" ng-model="query">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<table class="data_table">
|
|
|
|
<tbody>
|
2014-10-17 02:27:13 +00:00
|
|
|
<tr class="data_table_row" ng-repeat="abbreviation in abbreviations | filterAbbreviations:query" ng-click="editAbbreviation(abbreviation)">
|
|
|
|
<td ng-class="{ data_table_cell: true }" style="text-align: right; padding-right: 30px;">
|
|
|
|
<span ng-hide="abbreviation.editable">{{ abbreviation.word }}</span>
|
|
|
|
<span ng-show="abbreviation.editable"><input ng-model="abbreviation.word"></span>
|
|
|
|
</td>
|
|
|
|
<td ng-class="{ data_table_cell: true }" style="text-align: left; padding-right: 30px;">
|
|
|
|
<span ng-hide="abbreviation.editable">{{ abbreviation.phrase }}</span>
|
|
|
|
<span ng-show="abbreviation.editable"><input ng-model="abbreviation.phrase"></span>
|
|
|
|
</td>
|
|
|
|
<td ng-class="{ data_table_cell: true }" class="abbreviation_actions">
|
|
|
|
<span ng-show="abbreviation.editable && abbreviation.word && abbreviation.phrase" ng-click="saveAbbreviation(abbreviation)">Save</span>
|
|
|
|
<a ng-show="abbreviation.word" ng-click="removeAbbreviation(abbreviation)"><img alt="Delete" src="delete.png"></a>
|
|
|
|
</td>
|
2014-10-05 04:19:57 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|