split database name in own file and variable
[angular-mojolicious.git] / public / app / conference / symposiums.html
index 33cf1e7..ff5f18c 100644 (file)
@@ -1,29 +1,23 @@
-<script type="text/javascript"> 
-       TestCntl.$inject = ['$xhr', '$route']; 
+<!DOCTYPE HTML>
+<html xmlns:ng="http://angularjs.org">
+<head>
+<meta charset="utf-8">
+<script src="angular.js" ng:autobind></script>
 
-       function TestCntl(xhr, route){ 
+<script type="text/javascript" src="database.js"></script> 
+<script type="text/javascript" src="symposiums.js"></script> 
 
-               this.route = route; 
-               this.xhr = xhr; 
+<title>Conference registration</title>
 
-               var data = {}
-               this.data = data;
+</head>
+<body>
 
-               this.xhr("JSON"
-                       , "http://localhost:5984/conference/_design/symposium/_view/work_nr%2Ctitle?callback=JSON_CALLBACK"
-                       , function(code, response){ 
-                               console.log(code, response, data);
-                               data.response = response;
-                       }
-               ); 
+<div ng:controller="Symposiums"> 
 
-       } 
-</script> 
-
-<div ng:controller="TestCntl"> 
+<h1>Submitted symposiums</h1>
 
 <div ng:repeat="s in data.response.rows">
-<h1 ng:show="s.key[1] == 1">{{s.key[0]}}</h1>
+<h2 ng:show="s.key[1] == 1">{{s.key[0]}}</h2>
 {{s.key[1]}}. {{s.value}}
 </div>
 
@@ -33,3 +27,8 @@ data={{data}}
 </pre>
 
 </div> 
+
+<a href="registration.html">registration</a>
+
+</body>
+</html>