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>
95 <label class="symposium"><input name="selection" type="radio" value="symposium">simpozij <br></label>
97 <label class="round"><input name="selection" type="radio" value="round">Organizator okruglog stola<br></label>
99 <label class="lecture"><input name="selection" type="radio" value="lecture">Usmeno priopćenje <br></label>
100 <label class="poster"><input name="selection" type="radio" value="poster">Poster <br></label>
102 <label class="student"><input name="selection" type="radio" value="student">Student - samo registracija<br></label>
103 <label class="accomp"><input name="selection" type="radio" value="accomp">Osoba u pratnji<br></label>
108 <li ng:repeat="registration in data" ng:show="registration.type == selection || selection == 'all'">
110 <span class="{{registration.type}}">
111 <span ng:show="registration.type == 'participant'">samo registracija</span>
112 <span ng:show="registration.type == 'sparticipant'">sudionik simpozija/okruglog stola</span>
113 <span ng:show="registration.type == 'symposium'">organizator simpozija</span>
114 <span ng:show="registration.type == 'round'">organizator okruglog stola</span>
115 <span ng:show="registration.type == 'lecture'">usmeno priopćenje</span>
116 <span ng:show="registration.type == 'poster'">poster</span>
117 <span ng:show="registration.type == 'student'">student - samo registracija</span>
118 <span ng:show="registration.type == 'accomp'">osoba u pratnji</span>
120 <span ng:show="registration.student == thrue"> - student</span><br>
123 <span ng:repeat="author in registration.work.authors" ng:show="registration.work.title">
131 {{registration.work.authors[0].name}}
132 {{registration.work.authors[0].surname}},
133 {{registration.work.authors[0].inst}}
135 <div class=address>{{registration.person.zip}} {{registration.person.city}}</div>
141 <input name=debug type=checkbox style="float: right;">
142 <pre ng:show="debug">