trasnalted rest of form to Croatian
[angular-drzb] / app / partials / registration.html
1 <h1>Registracija i prijavljivanje izlaganja</h1>
2
3 <p>
4 Svi sudionici skupa, bez obzira na to jesu li izlagači, suautori ili slušači, moraju se registrirati kroz sustav elektroničke prijave.
5 </p>
6
7 <form ng-controller="RegistrationCtrl" name="RegistrationForm">
8
9 <h2>Odaberite tip registracije</h2>
10
11 <label class="left"><input type="radio" ng-model="user.registration_type" value="lecture" >Prijava usmenog izlaganja - <i>popunjava prvi autor, odnosno osoba koja će izložiti rad. Ostali autori trebaju se samo registrirati.</i></label>
12 <label class="left"><input type="radio" ng-model="user.registration_type" value="poster" >Prijava poster prezentacije - <i>popunjava prvi autor, ondnosno osoba koja će izložiti rad. Ostali autori trebaju se samo registrirati.</i></label>
13 <label class="left"><input type="radio" ng-model="user.registration_type" value="symposium" >Prijava simpozija - <i>popunjava organizator simpozija, upisuje sažetke svih radova. Autori radova na simpoziju trebaju se samo registrirati.</i></label>
14 <label class="left"><input type="radio" ng-model="user.registration_type" value="round" >Prijava okruglog stola - <i>popunjava organizator okruglog stola. Sudionici se trebaju registrirati.</i></label>
15 <hr />
16 <label class="left"><input type="radio" ng-model="user.registration_type" value="participant" >Registracija - <i>popunjavaju slušači i suatori, te autori i suatori radova na simpoziju i sudionici okruglog stola.</i></label>
17 <label class="left"><input type="radio" ng-model="user.registration_type" value="accomp" >Registracija za osobe u pratnji.</label>
18
19 <div ng-show="user.registration_type">
20
21 <h2>Registracija - podaci za kontakt</h2>
22
23 <input ng-model="user.firstname" placeholder="Ime" ng-required="true" />
24 <input ng-model="user.surname"   placeholder="Prezime" ng-required="true" />
25 <input ng-model="user.organization" placeholder="Ustanova" >
26 <br>
27 <input ng-model="user.address" placeholder="Adresa" >
28 <input ng-model="user.town" placeholder="Grad" ng-required="true" >
29 <input ng-model="user.zip_code" placeholder="Poštanski br." >
30 <input ng-model="user.country" placeholder="Zemlja" >
31 <br>
32 <input ng-model="user.email" type="email" placeholder="e-mail@example.com" ng-required="true" />
33 <input ng-model="user.phone" placeholder="+385-1-555-1234" />
34
35 <label class="left">
36 <input ng-model="user.student" type="checkbox" ng-change="change_student()">
37 Označite ako ste student.
38 </label>
39
40 <div ng-show="! user.student">
41
42 <label class="left">
43 <input ng-model="user.hpd_member" type="checkbox">
44 Označite ako ste član HPD-a
45 </label>
46
47 <label class="left">
48 <input type="checkbox" ng-model="user.reception">
49 Označite ako ćete biti na domjenku dobrodošlice
50 </label>
51
52 <label class="left">
53 <input type="checkbox" ng-model="user.dinner">
54 Označite ako ćete biti na zajedničkoj večeri? (Večera je uključena u kotizaciju.)
55 </label>
56
57 <label class="left">
58 <input type="checkbox" ng-model="user.r1.required">
59 Trebam R-1 račun
60 </label>
61
62 <div ng-show="user.r1.required">
63 Organizacija koja uplaćuje račun
64
65 <input class="left" ng-model="user.r1.organization" ng-required="user.r1.required" placeholder="Naziv">
66 <input class="left" ng-model="user.r1.address" ng-required="user.r1.required" placeholder="Adresa">
67 <input class="left" ng-model="user.r1.OIB" ng-required="user.r1.required" placeholder="OIB">
68
69 </div><!-- r1.required -->
70
71
72 </div><!-- not student -->
73
74 </div><!-- selected registration_type -->
75
76
77 <div ng-show="has_work">
78
79 <div ng-switch on="work.type">
80 <h2 ng-switch-when="lecture">Prijava predavanja</h2>
81 <h2 ng-switch-when="poster">Prijava postera</h2>
82 <h2 ng-switch-when="symposium">Simpozij</h2>
83 <h2 ng-switch-when="round">Prijava teme okruglog stola</h2>
84 <b ng-switch-default>Has unknown work type {{work.type}} to submit</b>
85 </div>
86
87 <input ng-model="work.title" placeholder="title" ng-required="has_work" >
88 <div ng-show="is_symposium">Organizator simpozija</div>
89 <div ng-repeat="person in work.persons">
90         <input ng-model="person.firstname" placeholder="Ime" ng-required="has_work" />
91         <input ng-model="person.surname"   placeholder="Prezime" ng-required="has_work" />
92         <input ng-model="person.organization" placeholder="Ustanova" >
93         <input ng-model="person.email" type="email" placeholder="e-mail@example.com" ng-required="has_work" />
94         <a href="" ng-click="removePerson(work.persons,person)">obriši</a>
95 </div>
96 <a href="" ng-click="addPerson(work.persons)">dodaj osobu</a>
97 <br>
98
99 Sažetak ({{work.abstract.length || 0}}  od maks. 2000 znakova)
100 <br>
101 <textarea ng-model="work.abstract" ng-maxlength="2000" rows="10" cols="80" ng-required="has_work" ></textarea>
102
103 </div><!-- has_work -->
104
105 <div ng-show="is_symposium">
106
107 <h2>Prijava radova unutar simpozija {{work.title}}</h2>
108
109 <div ng-repeat="work in work.symposium_works">
110
111 <h3>{{$index + 1}}. rad na simpoziju</h3>
112
113 <input ng-model="work.title" placeholder="Naslov" ng-required="has_work" >
114 <div ng-repeat="person in work.persons">
115         <input ng-model="person.firstname" placeholder="first name" ng-required="has_work" />
116         <input ng-model="person.surname"   placeholder="surname" ng-required="has_work" />
117         <input ng-model="person.organization" placeholder="organizacija" >
118         <input ng-model="person.email" type="email" placeholder="e-mail@example.com" ng-required="has_work" />
119         <a href="" ng-click="removePerson(work.persons,person)">obriši</a>
120 </div>
121 <a href="" ng-click="addPerson(work.persons)">dodaj osobu</a>
122 <br>
123
124 Sažetak ({{work.abstract.length || 0}}  od maks. 2000 znakova)
125 <br>
126 <textarea ng-model="work.abstract" ng-maxlength="2000" rows="10" cols="80" ng-required="has_work" ></textarea>
127
128 </div><!-- ng-repeat symposium_works  -->
129
130 <a href="" ng-click="add_symposium_work(work.symposium_works)">Dodaj još jedan rad na simpoziju</a>
131
132 </div><!-- is_symposium -->
133
134 <button ng-click="update(registration)" ng-show="RegistrationForm.$valid">Registriraj se za konferenciju</button>
135
136 <div style="color: red" ng-show="! RegistrationForm.$valid">
137 Molimo ispunite sva obavezna polja. Obratite pažnju na polja s narančastim okvirom. Odlučite o dolasku na domjenak i večeru.
138 </div>
139
140 <pre>
141 user={{user}}
142
143 work={{work}}
144
145 registration={{registration}}
146
147 $routeParams={{$routeParams}}
148
149 {{RegistrationForm.$valid}}
150 {{RegistrationForm.$error}}
151
152 location={{$location.path()}}
153
154 </pre>
155
156 </form>
157