From 4c951557172ee22ecba7de6748822a2017d0815b Mon Sep 17 00:00:00 2001 From: Zoe Snow Date: Thu, 9 Nov 2017 11:28:28 -0500 Subject: [PATCH] Started adding Lemmas to the Web UI --- .idea/workspace.xml | 470 ++++++++++++++++++++++++---------------- www/index.html | 7 + www/vezeyko/lemmas.html | 29 +++ www/vezeyko/lemmas.js | 8 + www/vezeyko/vezeyko.js | 5 + 5 files changed, 327 insertions(+), 192 deletions(-) create mode 100644 www/vezeyko/lemmas.html create mode 100644 www/vezeyko/lemmas.js diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 98d9561..990f1d8 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,7 +2,12 @@ + + + + + @@ -28,54 +33,88 @@ - + - - - + - + - - - + - - + + - - - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + + + + + + + + + + + @@ -95,66 +134,82 @@ - - + + - - + + - - + + - + - - + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - + + - - + + - - - - - + + + @@ -163,7 +218,7 @@ - + @@ -174,10 +229,7 @@ - - - - + @@ -275,8 +327,6 @@ @@ -411,8 +463,9 @@ - + + @@ -451,6 +504,16 @@ + + + + + + + + + + @@ -462,6 +525,23 @@ + + + + + + + + + + + + + + + + + @@ -77,6 +83,7 @@ + diff --git a/www/vezeyko/lemmas.html b/www/vezeyko/lemmas.html new file mode 100644 index 0000000..c221ce9 --- /dev/null +++ b/www/vezeyko/lemmas.html @@ -0,0 +1,29 @@ + +
+ + + + + + + + + + + + + + + + + + + + + + + +
IDPubIDLemmaIPAAudioRejectedLegacy
{{ row.id }}{{ row.pubId }}{{ row.lemma }}{{ row.ipa }}{{ row.audio }}
+
\ No newline at end of file diff --git a/www/vezeyko/lemmas.js b/www/vezeyko/lemmas.js new file mode 100644 index 0000000..68aec5b --- /dev/null +++ b/www/vezeyko/lemmas.js @@ -0,0 +1,8 @@ +'use strict'; + +angular.module('naranawm.vezeyko') + .controller('LemmasCtrl', ["$scope", "Models", function($scope, Models) { + $scope.lemmas = Models.query({model: "Lemma"}, function() { + + }); //query() returns all the entries + }]); diff --git a/www/vezeyko/vezeyko.js b/www/vezeyko/vezeyko.js index 30c9912..46856c8 100644 --- a/www/vezeyko/vezeyko.js +++ b/www/vezeyko/vezeyko.js @@ -19,6 +19,11 @@ angular.module('naranawm.vezeyko', ['ngRoute']) controller: 'LanguagesCtrl' }); + $routeProvider.when('/vezeyko/:language/lemmas', { + templateUrl: 'vezeyko/lemmas.html', + controller: 'LemmasCtrl' + }); + $routeProvider.when('/vezeyko/:language/sources', { templateUrl: 'vezeyko/sources.html', controller: 'SourcesCtrl'