small changes i registration forms; abstracts file added
[angular-mojolicious.git] / public / app / drzb2011 / abstracts.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 Odabir: <br/>
90
91 <label class="symposium"><input name="selection" type="radio" value="symposium">Rad unutar simpozija<br></label>
92 <label class="lecture"><input name="selection" type="radio" value="lecture">Usmeno priopćenje <br></label>
93 <label class="poster"><input name="selection" type="radio" value="poster">Poster <br></label>
94
95
96 <div>
97 <div ng:repeat="registration in data" ng:show="registration.type == selection || selection == 'all'">
98 <!--
99 <span class="{{registration.type}}">
100         <span ng:show="registration.type == 'participant'">samo registracija</span> 
101         <span ng:show="registration.type == 'sparticipant'">sudionik simpozija/okruglog stola</span> 
102         <span ng:show="registration.type == 'symposium'">organizator simpozija</span> 
103         <span ng:show="registration.type == 'round'">organizator okruglog stola</span> 
104         <span ng:show="registration.type == 'lecture'">usmeno priopćenje</span> 
105         <span ng:show="registration.type == 'poster'">poster</span> 
106         <span ng:show="registration.type == 'student'">student - samo registracija</span> 
107         <span ng:show="registration.type == 'accomp'">osoba u pratnji</span> 
108 </span>
109         <span ng:show="registration.student == thrue"> - student</span><br>
110 -->
111
112         <h1 style="font-size: 14pt; text-align: center; padding-top:48pt">{{registration.work.title | uppercase}}</h1>
113         <span ng:repeat="author in registration.work.authors" ng:show="registration.work.title">
114                 <div style="font-size: 12pt; font-weight: bold; text-align: center; margin: 0; padding: 0">{{author.name}} {{author.surname}}</div>
115                 <div style="font-size: 12pt; font-style: italic; font-weight: normal; text-align: center; padding-top: 6pt; padding-bottom: 12pt; margin: 0;">{{author.inst}}</div>
116         </span>
117         <div>{{registration.work.abstract}}</div>
118         <div>{{registration._id}}</div>
119 </div>
120 </div>
121
122 <div>
123 <input name=debug type=checkbox style="float: right;">
124 <pre ng:show="debug">
125 data={{data}}
126 </pre>
127 </div>
128
129 </div>
130
131
132 </body>
133 </html>