c00c9beace5c987d00e6f23363e6e5c6181042bd
[angular-drzb] / app / partials / registration.html
1
2 <form ng-controller="RegistrationCtrl" name="RegistrationForm">
3
4 <h2>Odaberite tip registracije</h2>
5
6 <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>
7 <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>
8 <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>
9 <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>
10 <hr />
11 <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>
12 <label class="left"><input type="radio" ng-model="user.registration_type" value="accomp" >Registracija za osobe u pratnji.</label>
13
14 <div ng-show="user.registration_type">
15
16 <h2>Registration - contact details</h2>
17
18 <input ng-model="user.firstname" placeholder="first name" ng-required="true" />
19 <input ng-model="user.surname"   placeholder="surname" ng-required="true" />
20 <input ng-model="user.organization" placeholder="organizacija" >
21 <br>
22 <input ng-model="user.address" placeholder="address" >
23 <input ng-model="user.town" placeholder="town" ng-required="true" >
24 <input ng-model="user.zip_code" placeholder="zip code" >
25 <input ng-model="user.country" placeholder="country" >
26 <br>
27 <input ng-model="user.email" type="email" placeholder="e-mail@example.com" ng-required="true" />
28 <input ng-model="user.phone" placeholder="+385-1-555-1234" />
29
30 <label class="left">
31 <input ng-model="user.student" type="checkbox" ng-change="change_student()">
32 Označite ako ste student.
33 </label>
34
35 <div ng-show="! user.student">
36
37 <label class="left">
38 <input ng-model="user.hpd_member" type="checkbox">
39 Označite ako ste član HPD-a
40 </label>
41
42 <label class="left">
43 <input type="checkbox" ng-model="user.reception">
44 Označite ako ćete biti na domjenku dobrodošlice
45 </label>
46
47 <label class="left">
48 <input type="checkbox" ng-model="user.dinner">
49 Označite ako ćete biti na zajedničkoj večeri? (Večera je uključena u kotizaciju.)
50 </label>
51
52 <label class="left">
53 <input type="checkbox" ng-model="user.r1.required">
54 Trebam R-1 račun
55 </label>
56
57 <div ng-show="user.r1.required">
58 Organizacija koja uplaćuje račun
59
60 <input class="left" ng-model="user.r1.organization" ng-required="user.r1.required" placeholder="naziv">
61 <input class="left" ng-model="user.r1.address" ng-required="user.r1.required" placeholder="adresa">
62 <input class="left" ng-model="user.r1.OIB" ng-required="user.r1.required" placeholder="OIB">
63
64 </div><!-- r1.required -->
65
66
67 </div><!-- not student -->
68
69 </div><!-- selected registration_type -->
70
71
72 <div ng-show="has_work">
73
74 <div ng-switch on="work.type">
75 <h2 ng-switch-when="lecture">Prijava predavanja</h2>
76 <h2 ng-switch-when="symposium">Prijava simpozija</h2>
77 <h2 ng-switch-when="poster">Prijava postera</h2>
78 <h2 ng-switch-when="symposium">Simpozij</h2>
79 <h2 ng-switch-when="round">Prijava teme okruglog stola</h2>
80 <b ng-switch-default>Has unknown work type {{work.type}} to submit</b>
81 </div>
82
83 <input ng-model="work.title" placeholder="title" ng-required="has_work" >
84 <div ng-repeat="person in work.persons">
85         <input ng-model="person.firstname" placeholder="first name" ng-required="has_work" />
86         <input ng-model="person.surname"   placeholder="surname" ng-required="has_work" />
87         <input ng-model="person.organization" placeholder="organizacija" >
88         <input ng-model="person.email" type="email" placeholder="e-mail@example.com" ng-required="has_work" />
89         <a href="" ng-click="removePerson(person)">remove</a>
90 </div>
91 <a href="" ng-click="addPerson()">add another</a>
92 <br>
93
94 Sažetak ({{work.abstract.length || 0}}  od maks. 2000 znakova)
95 <br>
96 <textarea ng-model="work.abstract" ng-maxlength="2000" rows="10" cols="80" ng-required="has_work" ></textarea>
97
98
99 </div><!-- has_work -->
100
101 <button ng-click="update(registration)" ng-show="RegistrationForm.$valid">Register for conference</button>
102
103 <pre>
104 user={{user}}
105
106 work={{work}}
107
108 registration={{registration}}
109
110 $routeParams={{$routeParams}}
111
112 {{RegistrationForm.$valid}}
113 {{RegistrationForm.$error}}
114
115 location={{$location.path()}}
116
117 </pre>
118
119 </form>
120