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 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>
97 <div ng:repeat="registration in data" ng:show="registration.type == selection || selection == 'all'">
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>
109 <span ng:show="registration.student == thrue"> - student</span><br>
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>
117 <div>{{registration.work.abstract}}</div>
118 <div>{{registration._id}}</div>
123 <input name=debug type=checkbox style="float: right;">
124 <pre ng:show="debug">