Merge branch 'master' of github.com:dpavlin/angular-mojolicious
[angular-mojolicious.git] / public / app / drzb2011 / registrations.html
1 <!DOCTYPE HTML>
2 <html xmlns:ng="http://angularjs.org">
3 <head>
4 <meta charset="utf-8">
5 <script src="angular.js" ng:autobind></script>
6
7 <script>
8 Registrations.$inject = ['$xhr']; 
9
10 function Registrations(xhr){ 
11         this.xhr = xhr; 
12         var self = this;
13         this.xhr("JSON"
14                 , "/data/drzb2011/Registration?callback=JSON_CALLBACK"
15                 , function(code, response){ 
16                         console.log('xhr JSON', code, response);
17                         self.data = response;
18                 }
19         ); 
20
21
22
23 </script>
24
25 <title>DRZB2011 Registrations</title>
26
27 <style>
28 .address {
29 }
30
31 </style>
32
33 </head>
34 <body>
35
36 <div ng:controller="Registrations"> 
37
38 <input name="selection" type="radio" value="all">SVI <br>
39 <input name="selection" type="radio" value="participant">Samo registracija <br>
40 <input name="selection" type="radio" value="sparticipant">Sudionik simpozija/okruglog stola <br>
41 <input name="selection" type="radio" value="symposium">Organizator simpozija <br>
42 <input name="selection" type="radio" value="round">Organizator okruglog stola<br>
43 <input name="selection" type="radio" value="lecture">Usmeno priopćenje <br>
44 <input name="selection" type="radio" value="poster">Poster <br>
45 <input name="selection" type="radio" value="student">Student - samo registracija<br>
46 <input name="selection" type="radio" value="accomp">Osoba u pratnji<br>
47
48
49 <ol>
50 <li ng:repeat="registration in data" ng:show="registration.type == selection || selection == 'all'">
51 {{registration.type}} <span ng:show="registration.student == thrue"> - student</span><br>
52 {{registration.person.name}}
53 {{registration.person.surname}}
54 &lt;{{registration.person.email}}&gt;
55 <div class=address>{{registration.person.inst}}</div>
56 <div><b>{{registration.work.title}}</b></div>
57 <span ng:show="work" ng:repeat="author in registration.work.authors">
58 {{author.name}}
59 {{author.surname}} ;
60 </span>
61 <!--
62 <div class=address>{{registration.person.zip}} {{registration.person.city}}</div>
63 -->
64 </li>
65 </ol>
66
67 <div style="float: right">
68 <input name=debug type=checkbox>
69 <pre ng:show="debug">
70 data={{data}}
71 </pre>
72 </div>
73
74 </div>
75
76
77 </body>
78 </html>