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);
23 angular.filter('lf2p', function(input) {
24 if ( input && input.length )
25 return input.replace(/\n/g,"<p>");
30 <title>DRZB2011 Registrations</title>
46 background-color: #ffcccc;
50 background-color: #ccffe6;
55 background-color: #ccccff;
60 background-color: #e6ccff;
61 background-color: #99ffcc;
66 background-color: #ffccff;
71 background-color: #ffcce6;
72 background-color: #ffcc99;
77 background-color: #ffff99;
82 background-color: #ccff99;
92 <div ng:controller="Registrations">
96 <label class="symposium"><input name="selection" type="radio" value="symposium">Rad unutar simpozija<br></label>
97 <label class="lecture"><input name="selection" type="radio" value="lecture">Usmeno priopćenje <br></label>
98 <label class="poster"><input name="selection" type="radio" value="poster">Poster <br></label>
102 <div 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>
117 <span ng:repeat="author in registration.work.authors" ng:show="registration.work.title">
118 <span style="font-size: 12pt; font-weight: bold; margin: 0; padding-top: 46pt; display: inline;">{{author.name}} {{author.surname}}</span>,
119 <span style="font-size: 12pt; font-style: italic; font-weight: normal; margin: 0; display: inline;">{{author.inst}}</span>,</span>
120 <h1 style="font-size: 14pt; text-align: center; padding-bottom: 14pt">{{registration.work.title}}</h1>
122 <div>{{registration.work.abstract | lf2p | html}}</div>
124 <div>{{registration.work.abstract}}</div>
125 <div>{{symposium.abstract}}</div>
130 <div>{{registration._id}}</div>
136 <input name=debug type=checkbox style="float: right;">
137 <pre ng:show="debug">