2014-10-05 12:19:57 +08: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 10:27:13 +08:00
|
|
|
<tr class="data_table_row" ng-repeat="abbreviation in abbreviations | filterAbbreviations:query" ng-click="editAbbreviation(abbreviation)">
|
2015-06-14 13:56:45 +08:00
|
|
|
<td ng-class="{ data_table_cell: true }" style="text-align: right; padding-right: 30px;">
|
2014-10-17 10:27:13 +08:00
|
|
|
<span ng-hide="abbreviation.editable">{{ abbreviation.word }}</span>
|
2015-06-14 13:56:45 +08:00
|
|
|
<span ng-show="abbreviation.editable"><input ng-model="abbreviation.word" class="abbreviation_input" style="text-align: right; min-width: 10em;"></span>
|
2014-10-17 10:27:13 +08:00
|
|
|
</td>
|
|
|
|
<td ng-class="{ data_table_cell: true }" style="text-align: left; padding-right: 30px;">
|
|
|
|
<span ng-hide="abbreviation.editable">{{ abbreviation.phrase }}</span>
|
2015-06-14 13:56:45 +08:00
|
|
|
<span ng-show="abbreviation.editable"><input ng-model="abbreviation.phrase" class="abbreviation_input" style="text-align: left; min-width: 22em;"></span>
|
2014-10-17 10:27:13 +08:00
|
|
|
</td>
|
|
|
|
<td ng-class="{ data_table_cell: true }" class="abbreviation_actions">
|
2015-06-14 13:56:45 +08:00
|
|
|
<span ng-show="abbreviation.editable && abbreviation.word && abbreviation.phrase" ng-click="saveAbbreviation(abbreviation)"><span class="save_button" style="margin: inherit;">Save</span></span>
|
|
|
|
<a ng-show="abbreviation.word" ng-click="removeAbbreviation(abbreviation)"><img alt="Delete" src="delete.png" style="vertical-align: text-bottom"></a>
|
2014-10-17 10:27:13 +08:00
|
|
|
</td>
|
2014-10-05 12:19:57 +08:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|