2 <html xmlns:ng="http://angularjs.org">
5 <script src="angular.js" ng:autobind></script>
8 Registrations.$inject = ['$xhr'];
10 function Registrations(xhr){
14 , "/data/drzb2011/Registration?callback=JSON_CALLBACK"
15 , function(code, response){
16 // console.log('xhr JSON', code, response);
25 <title>DRZB2011 Registrations</title>
41 background-color: #ffcccc;
45 background-color: #ccffe6;
50 background-color: #ccccff;
55 background-color: #e6ccff;
56 background-color: #99ffcc;
61 background-color: #ffccff;
66 background-color: #ffcce6;
67 background-color: #ffcc99;
72 background-color: #ffff99;
77 background-color: #ccff99;
87 <div ng:controller="Registrations">
91 <label><input name="selection" type="radio" value="all">SVI <br></label>
92 <label class="participant"><input name="selection" type="radio" value="participant">Samo registracija <br></label>
93 <label class="sparticipant"><input name="selection" type="radio" value="sparticipant">Sudionik simpozija/okruglog stola <br></label>
94 <label class="symposium"><input name="selection" type="radio" value="symposium">Organizator simpozija <br></label>
95 <label class="round"><input name="selection" type="radio" value="round">Organizator okruglog stola<br></label>
96 <label class="lecture"><input name="selection" type="radio" value="lecture">Usmeno priopćenje <br></label>
97 <label class="poster"><input name="selection" type="radio" value="poster">Poster <br></label>
98 <label class="student"><input name="selection" type="radio" value="student">Student - samo registracija<br></label>
99 <label class="accomp"><input name="selection" type="radio" value="accomp">Osoba u pratnji<br></label>
103 <li ng:repeat="registration in data" ng:show="registration.type == selection || selection == 'all'">
104 <span class="{{registration.type}}">
105 <span ng:show="registration.type == 'participant'">samo registracija</span>
106 <span ng:show="registration.type == 'sparticipant'">sudionik simpozija/okruglog stola</span>
107 <span ng:show="registration.type == 'symposium'">organizator simpozija</span>
108 <span ng:show="registration.type == 'round'">organizator okruglog stola</span>
109 <span ng:show="registration.type == 'lecture'">usmeno priopćenje</span>
110 <span ng:show="registration.type == 'poster'">poster</span>
111 <span ng:show="registration.type == 'student'">student - samo registracija</span>
112 <span ng:show="registration.type == 'accomp'">osoba u pratnji</span>
114 <span ng:show="registration.student == thrue"> - student</span><br>
115 {{registration.person.name}}
116 {{registration.person.surname}}
117 <{{registration.person.email}}> {{registration.person.inst}}, {{registration.person.city}}, {{registration.person.country}}
119 <div><b>{{registration.work.title}}</b></div>
120 <span ng:repeat="author in registration.work.authors" ng:show="registration.work.title">
125 <div class="abstract">{{registration.work.abstract}}</div>
126 <div>{{registration._id}}</div>
128 <div class=address>{{registration.person.zip}} {{registration.person.city}}</div>
134 <input name=debug type=checkbox style="float: right;">
135 <pre ng:show="debug">