small changes i registration forms; abstracts file added
[angular-mojolicious.git] / public / app / drzb2011 / registrations.html
index cf7c36d..8a2d62b 100644 (file)
@@ -13,7 +13,7 @@ function Registrations(xhr){
        this.xhr("JSON"
                , "/data/drzb2011/Registration?callback=JSON_CALLBACK"
                , function(code, response){ 
-                       console.log('xhr JSON', code, response);
+//                     console.log('xhr JSON', code, response);
                        self.data = response;
                }
        ); 
@@ -26,8 +26,59 @@ function Registrations(xhr){
 
 <style>
 .address {
-       font-size: 80%;
 }
+.abstract {
+       font-style: italic;
+       font-size: 90%;
+       color: #3f3f3f;
+}
+
+li {
+       margin-top: 40px;
+}
+
+.participant {
+       background-color: #ffcccc;
+       font-weight: bold;
+}
+.sparticipant {
+       background-color: #ccffe6;
+       font-weight: bold;
+
+}
+.symposium {
+       background-color: #ccccff;
+       font-weight: bold;
+
+}
+.round {
+       background-color: #e6ccff;
+       background-color:  #99ffcc;
+       font-weight: bold;
+
+}
+.lecture {
+       background-color: #ffccff;
+       font-weight: bold;
+
+}
+.poster {
+       background-color: #ffcce6;
+       background-color: #ffcc99;
+       font-weight: bold;
+
+}
+.student {
+       background-color: #ffff99;
+       font-weight: bold;
+
+}
+.accomp {
+       background-color: #ccff99;
+       font-weight: bold;
+
+}
+
 </style>
 
 </head>
@@ -35,20 +86,56 @@ function Registrations(xhr){
 
 <div ng:controller="Registrations"> 
 
-<ul>
-<li ng:repeat="registration in data">
+Odabir: <br/>
+
+<label><input name="selection" type="radio" value="all">SVI <br></label>
+<label class="participant"><input name="selection" type="radio" value="participant">Samo registracija <br></label>
+<label class="sparticipant"><input name="selection" type="radio" value="sparticipant">Sudionik simpozija/okruglog stola <br></label>
+<label class="symposium"><input name="selection" type="radio" value="symposium">Organizator simpozija <br></label>
+<label class="round"><input name="selection" type="radio" value="round">Organizator okruglog stola<br></label>
+<label class="lecture"><input name="selection" type="radio" value="lecture">Usmeno priopćenje <br></label>
+<label class="poster"><input name="selection" type="radio" value="poster">Poster <br></label>
+<label class="student"><input name="selection" type="radio" value="student">Student - samo registracija<br></label>
+<label class="accomp"><input name="selection" type="radio" value="accomp">Osoba u pratnji<br></label>
+
+
+<ol>
+<li ng:repeat="registration in data" ng:show="registration.type == selection || selection == 'all'">
+<span class="{{registration.type}}">
+       <span ng:show="registration.type == 'participant'">samo registracija</span> 
+       <span ng:show="registration.type == 'sparticipant'">sudionik simpozija/okruglog stola</span> 
+       <span ng:show="registration.type == 'symposium'">organizator simpozija</span> 
+       <span ng:show="registration.type == 'round'">organizator okruglog stola</span> 
+       <span ng:show="registration.type == 'lecture'">usmeno priopćenje</span> 
+       <span ng:show="registration.type == 'poster'">poster</span> 
+       <span ng:show="registration.type == 'student'">student - samo registracija</span> 
+       <span ng:show="registration.type == 'accomp'">osoba u pratnji</span> 
+</span>
+       <span ng:show="registration.student == thrue"> - student</span><br>
 {{registration.person.name}}
 {{registration.person.surname}}
-&lt;{{registration.person.email}}&gt;
-<div class=address>{{registration.person.inst}}</div>
+&lt;{{registration.person.email}}&gt; {{registration.person.inst}}, {{registration.person.city}}, {{registration.person.country}}
+
+<div><b>{{registration.work.title}}</b></div>
+<span ng:repeat="author in registration.work.authors" ng:show="registration.work.title">
+{{author.name}}
+{{author.surname}},
+{{author.inst}} <br>
+</span>
+<div class="abstract">{{registration.work.abstract}}</div>
+<div>{{registration._id}}</div>
+<!--
 <div class=address>{{registration.person.zip}} {{registration.person.city}}</div>
+-->
 </li>
-</ul>
+</ol>
 
-<input name=debug type=checkbox>
+<div>
+<input name=debug type=checkbox style="float: right;">
 <pre ng:show="debug">
 data={{data}}
 </pre>
+</div>
 
 </div>