Browse Source

initial keywords

David 9 năm trước cách đây
mục cha
commit
a5be8dd6bb
2 tập tin đã thay đổi với 54 bổ sung0 xóa
  1. 17 0
      front/js/app.js
  2. 37 0
      front/keywords.html

+ 17 - 0
front/js/app.js

@@ -9,6 +9,10 @@ app.config(function($routeProvider, $locationProvider) {
 			templateUrl: 'main.html',
 			controller: 'main'
 		})
+		.when("/keywords", {
+			templateUrl: 'keywords.html',
+			controller: 'keywords'
+		})
 		.when("/sources", {
 			templateUrl: 'sources.html',
 			controller: 'sources'
@@ -177,3 +181,16 @@ app.controller('main', function($scope,$http,$sce) {
 		);
 	};
 });
+
+
+
+app.controller('keywords', function($scope,$http,$location) {
+	$scope.keywords=[];
+	$http.get("/pymnts/keywords").then(
+		function(data){
+			$scope.keywords = data;
+        },
+		function(data){
+		}
+	);
+});

+ 37 - 0
front/keywords.html

@@ -0,0 +1,37 @@
+	<div ng-controller="main" class="wrapper">
+		<aside class="sidebar">
+		<div>
+			<form class="filter">
+				<ul>
+				<li>
+					<h3><i class="fa fa-filter"></i>Keyword panel</h3>
+				</li>
+				<li>
+					<label for="title">Keyword</label>
+					<input type="text" ng-model="keyword" class="form-control" placeholder="url">
+				</li>
+				<li>
+					<label for="title">Weight</label>
+					<input type="text" ng-model="weight" class="form-control" placeholder="name">
+				</li>
+                </ul>
+            </form>
+		</div>
+		</aside>
+		<div class="content-wrapper">
+			<div class="news-wrapper">
+                <div class="">search</div>
+				<section ng-repeat="k in keywords" ng-class-odd="'odd-news'" ng-class-even="'even-news'">
+					<div class="title">
+                        <h4>{{k.keyword}}</h4> {{k.weight}} <i class="fa fa-pencil"></i>
+					</div>
+				</section>
+			</div>
+			<div class="article-wrapper">
+			</div>
+			<div style="clear: both"></div>
+		</div>
+			
+			
+		</div>
+	</div>