diff options
author | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2014-10-05 12:19:57 +0800 |
---|---|---|
committer | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2014-10-05 12:23:31 +0800 |
commit | 7764a1a6f8effff01f7f3b5599fe1b48362a1372 (patch) | |
tree | c26f8ddfb125325c223d0429e4fc70e6d1f3eb3d /share/tools/web_config/partials/abbreviations.html | |
parent | 980bf6e2f4f1d5b705f27a2fe1c902764c8177fe (diff) |
web_config: add support for viewing abbreviations
Add a new tab which lists the current abbreviations defined, by wrapping
the `abbr` command.
Work on #731.
Diffstat (limited to 'share/tools/web_config/partials/abbreviations.html')
-rw-r--r-- | share/tools/web_config/partials/abbreviations.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/share/tools/web_config/partials/abbreviations.html b/share/tools/web_config/partials/abbreviations.html new file mode 100644 index 00000000..563865a8 --- /dev/null +++ b/share/tools/web_config/partials/abbreviations.html @@ -0,0 +1,12 @@ +<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> + <tr class="data_table_row" ng-repeat="abbreviation in abbreviations | filterAbbreviations:query"> + <td ng-class="{ data_table_cell: true}" style="text-align: right; padding-right: 30px;" ng-click="abbreviation._is_selected = !abbreviation._is_selected">{{ abbreviation.word }}</td> + <td ng-class="{ data_table_cell: true}" style="text-align: left; padding-right: 30px;" ng-click="abbreviation._is_selected = !abbreviation._is_selected">{{ abbreviation.phrase }}</td> + </tr> + </tbody> +</table> |