small changes i registration forms; abstracts file added
[angular-mojolicious.git] / public / app / drzb2011 / registration-hr.html
index 0a42000..97e99df 100644 (file)
-       <script>
-
-       if (typeof (console) === 'undefined') console = { debug: function() {} }; // mock console.debug
-
-       function Registration($resource){
-               this.master = {
-                       person: {
-                               name: '', surname: '', inst: '', email: ''
-                       },
-                       type: 'participant',
-                       work: {
-                               title: '',
-                               abstract: '',
-                               authors:[ { name:'', surname:'', inst:'', email:'' } ],
-                               organizers: []
-                       },
-                       symposium: { 
-                               //organizers: [ {name:'', surname:'', inst:'', email:'' } ], 
-                               organizers: [],
-                               work_nr: 1
-                       }
-               };
-               this.Registration = $resource( '/data/conference/Registration/:id', { id:'' } );
-               this.Symposium = $resource( '/data/conference/Symposium/:id', { id:'' } );
-               this.reset();
-               this.$watch('$location.hashPath', this.hash_change);
-       }
-       Registration.$inject=['$resource'];
-
-       Registration.prototype = {
-               hash_change: function() {
-                       var id = this.$location.hashPath;
-       console.debug( 'hash_change', id, this.registration.$id );
-                       if ( id != this.registration.$id ) {
-                               if (id) {
-                                       var self = this;
-                                       this.registration = this.Registration.get({ id: id }, function(registration) {
-                                               self.last_saved = angular.copy(registration);
-                                               if ( registration.type == 'symposium' ) {
-                                                       var s_id = registration.symposium.$id || registration.$id;
-                                                       // first registration doesn't have symposium.$id, but we used same $id
-       console.debug( 'load symposium ', s_id );
-                                                       self.symposium = self.Symposium.get({ id: s_id });
-                                               }
-                                       });
-                               }
-                               else this.reset();
-                       }
-               },
-               reset: function() {
-                       console.debug( this.Registration );
-                       var last = this.registration;
-                       if ( last && last.type == 'symposium' ) {
-                               if ( last.$id ) last.symposium.work_nr++; // only if saved
-                       }
-                       this.registration = new this.Registration( this.master );
-                       if ( last ) {
-                               this.registration.type      = last.type;
-                               this.registration.person    = last.person;
-
-                               if ( last.type == 'symposium' )
-                               this.registration.symposium = last.symposium;
-                       }
-                       this.last_saved = angular.copy( this.registration ); // FIXME was: {};
-       console.debug( 'reset', this.registration, this.$location.hashPath, last );
-               },
-               save: function(){
-                       var self = this;
-                       this.registration.$save(function(registration){
-                               self.$location.hashPath = registration.$id;
-
-                               // save symposium to separate resource
-                               if ( registration.type == 'symposium' ) {
-                                       if ( ! self.symposium ) { 
-                                               self.registration.symposium.$id = registration.$id; // reuse $id of first work for symposium
-                                               self.symposium = new self.Symposium( registration.symposium );
-                                               self.symposium.works = [];
-                                       }
-                                       registration.work.$id = registration.$id; // preserve $id
-                                       self.symposium.works[ registration.symposium.work_nr - 1 ] = registration.work;
-       console.debug('save_symposium', self.symposium );
-                                       self.symposium.$save();
-                               }
-
-                               self.last_saved = angular.copy(registration);
-                       });
-               }
-       };
-
-       angular.validator.max_length = function(input, len) {
-               var ok = input.length <= len;
-       console.debug( 'max_length', ok, input.length, len );
-               return ok ? '' : 'must be shorter than '+len+' characters';
-       }
-
-       </script>
-
-
-       <style type="text/css">
-
-       body {
-               background: #F6F6F6;
-               margin: 40px;
-               font-family: Arial;
-               color: #374E5A;
-               font-size: 14px;
-               line-height: 16px;
-       }
-
-
-       label {
-               display: block;
-               color: #D74F25;
-               color: #374E5A;
-               color: #afafaf;
-               margin-top: 10px;
-               font-size: 14px;
-               font-family: Arial;
-       }
-       h1 {
-       /*      margin-bottom: 6px;     */
-               padding-left: 20px;
-               font: 18px arial;
-               color: #0c1426;
-               text-decoration: none;
-               display: block;
-               background: url(http://mjesec.ffzg.hr/drzb2011/images/kvadrat.gif) no-repeat left;
-               border-bottom: 1px solid #CCC;
-       }
-h2, h3 {
-       margin-top: 60px;
-       font-size: 14px;
-       padding: 2px 0;
-       border-bottom: 2px solid #D74F25;
-       border-bottom: 1px solid #46d0fe;
-}
-
-h3 {
-       margin-top: 20px;
-}
-
-a {
-       color: #D74F25;
-}
-
-label {
-       color: #374E5A;
-}
-
-.input, .inputOrg {
-       color: #afafaf;
-       float: left;
-       margin: 2px;
-       padding: 0 6px;
-}
-
-.inputOrg {
-       color:  #374E5A;
-}
-
-.input1 {
-       width: 40.8em;
-}
-
-.input2 {
-       width: 8em;
-}
-
-.input3 {
-       width: 13em;
-}
-.input4 {
-       width: 10em;
-}
-
-.input5 {
-       width: 21.4em;
-}
-.input6 {
-       width: 6.3em;
-}
-
-.clear {
-       clear: both;
-}
-
-
-.authors {
-       clear: both;
-       margin-bottom: 6px;
-}
-
-.addPerson {
-       color: #D74F25;
-       color: #EDC8BC;
-       color: #EAB3A2;
-       font-size: 90%;
-}
-
-input, textarea {
-       font: 14px arial;
-       color: #000000;
-       border: solid 1px #dedede;
-       padding: 6px;
-       background: #f6f6f6;
-}
-
-input:focus, textarea:focus
-{
-       
-       background: #ffffff;
-       font-family: arial;
-       color: #000000;
-/*     border: 1px solid #46d0fe; */
-}
-
-.ng-validation-error {
-       border: 1px solid #FF6666;
-       border: 1px solid #EDC8BC;
-       border: 1px solid #FF9966;
-       border: 1px solid #EAB3A2;
-       border: 1px solid #D74F25;
-       border: 1px solid #DC6844;
-       border: 1px solid #DE7F61;
-}
-
-
-
-#work, #submission {
-       margin-bottom: 20px;
-}
-
-.button {
-       margin-top: 20px;
-       width: 40.8em;
-}
-
-.button input {
-       margin-bottom: 10px;
-       float: left;
-       color: #ffffff;
-       display: block;
-       text-decoration: none;
-       background: #d74f25;
-}
-
-.button input:hover, .gohome:hover {
-       /* background: #dc6844; */
-}
-
-.button2 input {
-       background: #F6F6F6;
-       color: #374E5A;
-       border: 1px solid #d74f25;
-       display: inline;
-}
-
-
-.gohome  {
-       float: left;
-       color: #374E5A;
-       border: 1px solid #d74f25;
-       text-decoration: none;
-       background: #f6f6f6;
-       padding: 7px;
-       margin-top: 20px;
-       font: 14px arial;
-       border: solid 1px #dedede;
-       border: solid 1px #f6f6f6;
-}
-
-.gohome a {
-}
-
-.gohome a:hover {
-       text-decoration: none;
-}
-
-.list {
-       margin-top: 20px;
-       font-weight: bold;
-}
-
-.warrning {
-       color: #FF6666;
-}
-
-.sworks {
-       margin-top: 20px;
-}
-
-
-.newWork {
-       clear: left;
-       margin-top: 50px;
-}
-.saved {
-       margin-bottom: 20px;
-       margin-top: 20px;
-}
-.saved2 {
-       color: #374E5A;
-       color: #d74f25;
-       font-weight: bold;
-       font-style: italic;
-       display: block;
-}
-.saved3 {
-       color: #374E5A;
-       font-weight: normal;
-       margin-top: 20px;
-}
-.footer {
-       height: 10px;
-}
-hr {
-       border: 1px solid #ccc;
-}
-</style>
+<!DOCTYPE HTML>
+<html xmlns:ng="http://angularjs.org">
+<head>
+<meta charset="utf-8">
+<script src="angular.js" ng:autobind></script>
 
+<title>Conference registration</title>
 
+<script src="database.js"></script>
+<script src="registration.js"></script>
 
-<h1>Registracija i prijavljivanje izlaganja</h1>
+<link rel="stylesheet" href="registration.css" type="text/css">
+
+</head>
+<body>
+
+<div id="wrapper">
+    <div id="header">
+        <a href="http://psihologija.ffzg.hr/drzb2011"><img src="http://psihologija.ffzg.hr/drzb2011/images/header.gif" alt="Dani Ramira i Zorana Bujasa" class="float_left" /></a>
+    </div>
+
+    <div id="mainNav">
+<div id="navigation">
+<ul>
+<li class="level"><a href="http://psihologija.ffzg.hr/drzb2011">Naslovnica</a></li>
+       <li>
+       <a class="level4" href="http://psihologija.ffzg.hr/drzb2011/registracija">Registracija</a>
 
+       <ul>
 
+       <li>
+               <a class="level5" href="http://psihologija.ffzg.hr/drzb2011/registracija/vrste2">Oblici sudjelovanja</a>
+
+       <li>
+               <a class="level5" href="http://psihologija.ffzg.hr/drzb2011/registracija/kotizacija">Kotizacija</a>
+       <li>
+               <a class="level5" href="http://psihologija.ffzg.hr/drzb2011/registracija/bodovanje2">Bodovanje</a>
+
+   </ul></li>
+
+       <li>
+       <a class="level4" href="http://psihologija.ffzg.hr/drzb2011/prijava">Prijava izlaganja</a>
+       <ul>
+
+       <li>
+               <a class="level5" href="http://psihologija.ffzg.hr/drzb2011/prijava/pripremasazetaka">Priprema sažetaka</a>
+       <li>
+
+               <a class="level5" href="http://psihologija.ffzg.hr/drzb2011/prijava/obrazac">Obrazac za prijavu</a>
+
+   </ul></li>
+       <li>
+               <a class="level4" href="http://psihologija.ffzg.hr/drzb2011/program">Program</a>
+       <li>
+               <a class="level4" href="http://psihologija.ffzg.hr/drzb2011/organizacija">Organizacija</a>
+       <li>
+               <a target="_blank" class="level4" href="http://psihologija.ffzg.hr/drzb2011/smjestaj">Smještaj</a>
+</ul>
+</div>
+
+    </div>
+
+    <div id="mainNav_right">
+        <ul>
+            <li><a href="http://psihologija.ffzg.hr/drzb2011" class="active">Hrvatski</a></li>
+            <li><a href="http://psihologija.ffzg.hr/drzb2011-eng">English</a></li>
+        </ul>
+    </div>
+</div>
+
+<div class="title">
+<h1>Registracija i prijavljivanje izlaganja</h1>
+</div>
 
 
 <div class="root" ng:controller="Registration" ng:init="$window.$root = this;">
 
 
-<div ng:show="! registration.$id && ! symposium.$id">
+<div style="clear: both; padding-top: 10px;" ng:show="! registration.$id && ! symposium.$id">
 <p>
 Svi sudionici skupa, bez obzira na to jesu li izlagači, suautori ili slušači, moraju se registrirati kroz sustav elektroničke prijave.
 </p>
 
+<p>Prijave izlaganja zatvorene su 27.01.2010.</p>
+
+<!--
 <p>
 Sažetak izlaganja/postera prijavljuje samo prvi autor, odnosno onaj autor koji će rad izložiti. Ostali suautori ne trebaju prijaviti sažetak, nego se samo registrirati.
 </p>
@@ -352,7 +104,7 @@ Duljina sažetka treba biti između 1800 i 2000 znakova (uključujući razmake).
 <p>
 Jedna osoba može biti autor u najviše tri rada, pri čemu na samo jednom može biti prvi ili jedini autor ili autor koji će izlagati.
 </p>
-
+-->
 
 
 </div>
@@ -365,7 +117,7 @@ Jedna osoba može biti autor u najviše tri rada, pri čemu na samo jednom može
 
 
 </div>
-<div ng:show="registration.$id || symposium">
+<div ng:show="registration.$id || symposium" style="padding-top: 40px">
        <h2>{{registration.person.name}} {{registration.person.surname}}</h2>
        <!--
        <label>Institution: {{registration.person.inst}}</label>
@@ -374,11 +126,18 @@ Jedna osoba može biti autor u najviše tri rada, pri čemu na samo jednom može
        <label ng:show="registration.type == 'participant'">Tip registracije: Samo registracija</label>
        <label ng:show="registration.type == 'accomp'">Tip registracije: Osoba u pratnji</label>
        <label ng:show="registration.type == 'student'">Tip registracije: Student</label>
-       <label ng:show="registration.type == 'sparticipant'">Tip registracije: Sudionik simpozija/okriglog stola<span ng:show="registration.student == true">, student</span></label>
+       <label ng:show="registration.type == 'sparticipant'">Tip registracije: Sudionik simpozija/okruglog stola<span ng:show="registration.student == true">, student</span></label>
        <label ng:show="registration.type == 'round'">Tip registracije: Organizator okruglog stola<span ng:show="registration.student == true">, student</span></label>
        <label ng:show="registration.type == 'lecture'">Tip registracije: Usmeno priopćenje<span ng:show="registration.student == true">, student</span></label>
        <label ng:show="registration.type == 'poster'">Tip registracije: Prezentacija postera<span ng:show="registration.student == true">, student</span></label>
-       <label ng:show="registration.type == 'poster' || registration.type == 'lecture'"><b>Title: </b>{{registration.work.title}}</label>
+       <label ng:show="registration.type == 'poster' || registration.type == 'lecture' || registration.type == 'round'"><b>Naslov: </b><br>{{registration.work.title}}</label>
+       <label ng:show="registration.type == 'poster' || registration.type == 'lecture' || registration.type == 'round'"><b>Autori: </b><br>
+       <span ng:repeat="author in registration.work.authors">
+       {{author.name}}
+       {{author.surname}},
+       {{author.inst}} <br>
+       </span>
+        </label>
        <div ng:show="registration.type == 'symposium'">
                <p>Tip registracije: Organizator simpozija</p>
                <label><b>Tema simpozija: </b><i>{{registration.symposium.title}}</i></label>
@@ -430,14 +189,16 @@ Jedna osoba može biti autor u najviše tri rada, pri čemu na samo jednom može
 <div id="submission" ng:show="! registration.$id && ! symposium.$id">
        <div>
                <h2>Tip registracije</h2>
-               <label><input type="radio" name="registration.type" value="participant" ng:required>Samo registracija</label>
+               <label><input type="radio" name="registration.type" value="participant" ng:required>Registracija</label>
                <label><input type="radio" name="registration.type" value="sparticipant" ng:required>Sudionik simpozija/okruglog stola</label>
+<!--
                <label><input type="radio" name="registration.type" value="symposium" ng:required>Organizator simpozija</label>
                <label><input type="radio" name="registration.type" value="round" ng:required>Organizator okruglog stola</label>
                <label><input type="radio" name="registration.type" value="lecture" ng:required>Usmeno priopćenje</label>
                <label><input type="radio" name="registration.type" value="poster" ng:required>Prezentacija postera</label>
+-->
        </div>
-               <label><input type="radio" name="registration.type" value="student" ng:required ng:change="registration.dinner = 'no'">Student - samo registracija</label>
+               <label><input type="radio" name="registration.type" value="student" ng:required ng:change="registration.dinner = 'no'">Registracija za studente</label>
                <label><input type="radio" name="registration.type" value="accomp" ng:required>Osoba u pratnji</label>
 </div>
 
@@ -496,6 +257,31 @@ Jedna osoba može biti autor u najviše tri rada, pri čemu na samo jednom može
                <input type="radio" name="registration.dinner" value="yes">Da
                <input type="radio" name="registration.dinner" value="no">Ne
        </div>
+       <div ng:show="registration.type != 'student'" style="clear: both; margin-top: 20px;">
+               Trebate li R-1 račun?<br/>
+               <input type="radio" name="registration.r1" value="yes">Da
+               <input type="radio" name="registration.r1" value="no">Ne
+       </div>
+       <div ng:show="registration.r1 == 'yes'">
+               <div class="labelTop">
+                       <div class="input input5">Naziv organizacije koja uplaćuje</div>
+               </div>  
+               <div style="clear: both">
+                       <input class="input5" name="registration.r1inst" ng:required>
+               </div>
+               <div class="labelTop">
+                       <div class="input input5">Adresa organizacije</div>
+               </div>  
+               <div style="clear: both">
+                       <input class="input5" name="registration.r1address" ng:required>
+               </div>
+               <div class="labelTop">
+                       <div class="input input5">OIB organizacije</div>
+               </div>  
+               <div style="clear: both">
+                       <input class="input5" name="registration.r1oib" ng:required>
+               </div>
+       </div>
        
 </div>
 
@@ -508,7 +294,7 @@ Jedna osoba može biti autor u najviše tri rada, pri čemu na samo jednom može
 
 
 <div id="work" ng:show="registration.type != 'participant' && registration.type != 'sparticipant' && registration.type != 'student' && registration.type != 'accomp'">
-<div ng:show="registration.type == 'symposium' && registration.symposium.work_nr < 4 && ! symposium.$id">
+<div ng:show="registration.type == 'symposium' && registration.symposium.work_nr < 5 && ! symposium.$id">
 
        <h2>Simpozij</h2>
        <label for="registration.symposium.title">Tema:</label>
@@ -526,7 +312,7 @@ Jedna osoba može biti autor u najviše tri rada, pri čemu na samo jednom može
                <a href="" ng:click="registration.symposium.organizers.$remove(organizer)">X</a>
                </div>
                <div class="clear"><a class="addPerson" href="" ng:click="registration.symposium.organizers.$add()">Dodaj drugog organizatora</a></div>
-       <label>Sažetak (maksimalno 2000 znakova)</label>
+       <label>Sažetak (<span class="lengthCount">{{registration.symposium.abstract.length}}</span> / maks. 2000 znakova)</label>
                <textarea class="input1" name="registration.symposium.abstract" rows="10" ng:validate="max_length:2000" ng:required></textarea>
                
                <div ng:show="symposium">
@@ -600,7 +386,7 @@ Jedna osoba može biti autor u najviše tri rada, pri čemu na samo jednom može
        <div class="clear"><a class="addPerson" href="" ng:click="registration.work.organizers.$add()">Add another organizer</a></div>
 </div>
 
-<label>Sažetak (maksimalno 2000 znakova):</label>
+<label>Sažetak (<span class="lengthCount">{{registration.work.abstract.length}}</span> / maks. 2000 znakova)</label>
        <textarea class="input1" name="registration.work.abstract" rows="10" ng:validate="max_length:2000" ng:required></textarea>
 
 
@@ -626,11 +412,11 @@ Odlučite o dolasku na domjenak.</span>
                <span class="saved2">Hvala! Vaša registracija je uspješno predana!</span>
                <div class="gohome"><a href="http://psihologija.ffzg.hr/drzb2011/registracija/kotizacija">Molimo pročitajte upute za plaćanje kotizacije</a></div>
                <div class="gohome" ng:show="registration.type == 'student' || registration.student == true">
-                       Dokaz o studentskom statusu treba poslati na adresu<a href="mailto:drzb@ffzg.hr">drzb@ffzg.hr</a>.
+                       Dokaz o studentskom statusu treba poslati na adresu <a href="mailto:drzb@ffzg.hr">drzb@ffzg.hr</a>.
                </div>
                <br><br>
        </div>
-       <div class="saved" ng:show="registration.type != 'participant' && registration.type != 'sparticipant' && registration.type != 'student' && registration.type != 'accomp' && registration.symposium.work_nr == 4 && last_saved.$id">
+       <div class="saved" ng:show="registration.type != 'participant' && registration.type != 'sparticipant' && registration.type != 'student' && registration.type != 'accomp' && (registration.symposium.work_nr == 5 || registration.symposium.work_last == true) && last_saved.$id">
                <span class="saved2">Hvala! Vaš prijedlog je uspješno predan. <br></span>
                <span class="gohome"><a href="http://psihologija.ffzg.hr/drzb2011/registracija/kotizacija">Molimo pročitajte upute za plaćanje kotizacije.</a></span>
                
@@ -639,12 +425,15 @@ Odlučite o dolasku na domjenak.</span>
                <span class="saved2">Hvala! Vaš prijedlog je uspješno predan. <br></span>
                <div class="gohome"><a href="http://psihologija.ffzg.hr/drzb2011/registracija/kotizacija">Molimo pročitajte upute za plaćanje kotizacije.</a></div>
                <div class="gohome" ng:show="registration.type == 'student' || registration.student == true">
-                       Dokaz o studentskom statusu treba poslati na adresu<a href="mailto:drzb@ffzg.hr">drzb@ffzg.hr</a>.
+                       Dokaz o studentskom statusu treba poslati na adresu <a href="mailto:drzb@ffzg.hr">drzb@ffzg.hr</a>.
                <br>
        </div>
        
 </div>
-       <div class="button button2" ng:show="last_saved.$id && symposium && registration.symposium.work_nr < 4">
+       <div style="clear: both" ng:show="last_saved.$id && symposium.$id && registration.symposium.work_nr == 4 && registration.symposium.work_last == false">
+               <input type="checkbox" name="registration.symposium.work_last">Ovo je bio zadnji rad unutar ovog simpozija
+       </div>
+       <div class="button button2" ng:show="last_saved.$id && symposium.$id && registration.symposium.work_nr < 5 && registration.symposium.work_last == false">
                <input type="reset" value="Dodavanje sljedećeg rada" ng:click="reset()"> 
        </div>
 <!--
@@ -653,16 +442,22 @@ Odlučite o dolasku na domjenak.</span>
        <div class="gohome"><a href="http://psihologija.ffzg.hr/drzb2011/">Go to conference home page</a></div>
 </div>
 -->
-
-<div class="footer"></div>
+</div>
+<div id="footer">
+        Odsjek za psihologiju, Filozofski fakultet Sveučilišta u Zagrebu, Ivana Lučića 3, 10000 Zagreb ; tel. 01/6120 215 ; fax. 01/6120 037
+        <div id="go_to_top"><a href="#"></a></div>
+   <p id="foot">
+        <a href="http://psihologija.ffzg.hr" target="_blank">http://psihologija.ffzg.hr</a>
+    </p> 
+</div>
 
 <!--
 <div ng:show="registration.$id">
 Permalink to <a href="#{{registration.$id}}">DRZB2011 registration</a> which you can bookmark
 </div>
 -->
-
-<input type=checkbox name=debug style="float: right; clear: both">
+<div style="clear: both">
+<input type=checkbox name=debug style="float: left; clear: both">
 <pre ng:show="debug">
 
 dirty={{! last_saved.$equals(registration)}} invalid={{$invalidWidgets.visible()}}
@@ -678,3 +473,7 @@ symposium = {{symposium}}
 $id={{$id}}
 registration.$id={{registration.$id}}
 </pre>
+</div>
+
+</body>
+</html>