-Subproject commit 5f0af2cd0e76e641927e06b5a2a80fdc6cfdf365
+Subproject commit 9b53b25f15d8c1e28b7bda6331d4a26b54025ccd
--- /dev/null
+var database='conference';
<title>Conference registration</title>
+<script src="database.js"></script>
<script src="registration.js"></script>
<style type="text/css">
},
symposium: { organizers: [ {name:'', surname:'', inst:'', email:'' } ], work_nr: 1 }
};
- this.Registration = $resource( '/data/conference/Registration/:id', { id:'' } );
+ this.Registration = $resource( '/data/:database/Registration/:id', { id:'', database: database } );
this.reset();
this.$watch('$location.hashPath', this.hash_change);
this.$xhr = $xhr;
+ console.debug( 'database', database );
}
Registration.$inject=['$resource','$xhr'];
<meta charset="utf-8">
<script src="angular.js" ng:autobind></script>
-<title>Conference registration</title>
+<script type="text/javascript" src="database.js"></script>
<script type="text/javascript" src="symposiums.js"></script>
+<title>Conference registration</title>
+
+</head>
+<body>
+
<div ng:controller="Symposiums">
+<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>
</div>
+<a href="registration.html">registration</a>
</body>
</html>
this.data = data;
this.xhr("JSON"
- , "/conference/_design/symposium/_view/work_nr%2Ctitle?callback=JSON_CALLBACK"
+ , "/"+database+"/_design/symposium/_view/work_nr%2Ctitle?callback=JSON_CALLBACK"
, function(code, response){
console.log(code, response, data);
data.response = response;