2013 iteration
[angular-mojolicious.git] / public / app / drzb2013 / autori-prezime.ime.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 .abstract {
31         font-style: italic;
32         font-size: 90%;
33         color: #3f3f3f;
34 }
35
36 li {
37         margin-top: 40px;
38 }
39
40 .participant {
41         background-color: #ffcccc;
42         font-weight: bold;
43 }
44 .sparticipant {
45         background-color: #ccffe6;
46         font-weight: bold;
47
48 }
49 .symposium {
50         background-color: #ccccff;
51         font-weight: bold;
52
53 }
54 .round {
55         background-color: #e6ccff;
56         background-color:  #99ffcc;
57         font-weight: bold;
58
59 }
60 .lecture {
61         background-color: #ffccff;
62         font-weight: bold;
63
64 }
65 .poster {
66         background-color: #ffcce6;
67         background-color: #ffcc99;
68         font-weight: bold;
69
70 }
71 .student {
72         background-color: #ffff99;
73         font-weight: bold;
74
75 }
76 .accomp {
77         background-color: #ccff99;
78         font-weight: bold;
79
80 }
81
82 </style>
83
84 </head>
85 <body>
86
87 <div ng:controller="Registrations"> 
88
89
90 <div ng:repeat="registration in data" ng:show="registration.type == 'symposium' || registration.type == 'lecture' || registration.type == 'poster'">
91 <!--
92 <span class="{{registration.type}}">
93         <span ng:show="registration.type == 'participant'">samo registracija</span> 
94         <span ng:show="registration.type == 'sparticipant'">sudionik simpozija/okruglog stola</span> 
95         <span ng:show="registration.type == 'symposium'">organizator simpozija</span> 
96         <span ng:show="registration.type == 'round'">organizator okruglog stola</span> 
97         <span ng:show="registration.type == 'lecture'">usmeno priopćenje</span> 
98         <span ng:show="registration.type == 'poster'">poster</span> 
99         <span ng:show="registration.type == 'student'">student - samo registracija</span> 
100         <span ng:show="registration.type == 'accomp'">osoba u pratnji</span> 
101 </span>
102         <span ng:show="registration.student == thrue"> - student</span><br>
103 -->
104 <p ng:repeat="author in registration.work.authors" ng:show="registration.work.title">
105
106 {{author.surname}},
107 {{author.name}}
108 </p>
109 <!--
110 {{registration.work.authors[0].name}}
111 {{registration.work.authors[0].surname}}, 
112 {{registration.work.authors[0].inst}}
113
114 -->
115 <!--
116 <div class=address>{{registration.person.zip}} {{registration.person.city}}</div>
117 -->
118 </div>
119
120
121 <div>
122 <input name=debug type=checkbox style="float: right;">
123 <pre ng:show="debug">
124 data={{data}}
125 </pre>
126 </div>
127
128 </div>
129
130
131 </body>
132 </html>