2 en => 'Registration and proposal submission',
3 hr => 'Registracija i prijavljivanje izlaganja'
7 %= include( "drzb2013/intro.$lang" );
10 <form ng-controller="RegistrationCtrl" name="RegistrationForm">
12 <fieldset class="controls">
15 en => 'Registration type',
16 hr => 'Odaberite tip registracije'
19 <label class="radio"><input type="radio" ng-model="user.registration_type" value="lecture" ><%= locale
20 en => 'Oral presentation',
21 hr => 'Prijava usmenog izlaganja',
23 <label class="radio"><input type="radio" ng-model="user.registration_type" value="poster" ><%= locale
24 en => 'Poster prezentation',
25 hr => 'Prijava poster prezentacije'
27 <label class="radio"><input type="radio" ng-model="user.registration_type" value="symposium" ><%= locale
29 hr => 'Prijava simpozija'
31 <label class="radio"><input type="radio" ng-model="user.registration_type" value="round" ><%= locale
33 hr => 'Prijava okruglog stola',
36 <label class="radio"><input type="radio" ng-model="user.registration_type" value="participant" ><%= locale
40 <label class="radio"><input type="radio" ng-model="user.registration_type" value="accomp" ><%= locale
41 en => 'Registration for accompanying persons',
42 hr => 'Registracija za osobe u pratnji' %>
46 <fieldset ng-show="user.registration_type">
49 en => 'Registration - contact information',
50 hr => 'Registracija - kontakt podaci'
53 % my $Name = locale( en => 'Name', hr => 'Ime' );
54 % my $Surname = locale( en => 'Surname', hr => 'Prezime' );
55 % my $Organization = locale( en => 'Organization', hr => 'Organizacija' );
56 % my $Email = locale( en => 'E-mail', hr => 'E-pošta' );
58 <div class="controls controls-row">
59 <input class="my-input span5" ng-model="user.firstname" placeholder="<%= $Name %>" ng-required="true" />
60 <input class="my-input span5" ng-model="user.surname" placeholder="<%= $Surname %>" ng-required="true" />
63 <div class="controls controls-row">
64 <input class="my-input span10" ng-model="user.organization" placeholder="<%= $Organization %>" bs-typeahead="organizations" data-items="10" >
67 % my $Address = locale en => 'Address', hr => 'Adresa';
68 <div class="controls controls-row">
69 <input class="my-input span10" ng-model="user.address" placeholder="<%= $Address %>" >
72 <div class="controls controls-row">
73 <input class="my-input span3" ng-model="user.city" placeholder="<%= locale en => 'City', hr => 'Grad' %>" ng-required="true" >
74 <input class="my-input span3" ng-model="user.zip_code" placeholder="<%= locale en => 'ZIP', hr => 'Poštanski br.' %>" >
75 <input class="my-input span4" ng-model="user.country" placeholder="<%= locale en => 'Country', hr => 'Zemlja' %>" >
78 <div class="controls controls-row">
79 <input class="my-input span5" ng-model="user.email" type="email" placeholder="<%= $Email %>" ng-required="true" />
80 <input class="my-input span5" ng-model="user.phone" placeholder="<%= locale en => 'Phone number', hr => 'Tel. broj' %>" />
85 <label class="checkbox">
86 <input ng-model="user.student" type="checkbox" ng-change="change_student()">
88 en => 'Check this box if you are student',
89 hr => 'Označite ako ste student' %>
92 <div ng-show="! user.student">
96 <label class="checkbox">
97 <input ng-model="user.hpd_member" type="checkbox">
99 en => 'Check this box if you are HPD member',
100 hr => 'Označite ako ste član HPD-a' %>
103 <label class="checkbox">
104 <input type="checkbox" ng-model="user.r1.required">
106 en => 'Check this box if you need invoice',
107 hr => 'Trebam R-1 račun' %>
110 <div ng-show="user.r1.required">
112 en => 'Organization contact details',
113 hr => 'Organizacija koja uplaćuje R-1 račun' %>
116 <input class="my-input span10" ng-model="user.r1.organization" ng-required="user.r1.required" placeholder="<%= $Organization %>" bs-typeahead="organizations" >
117 <input class="my-input span10" ng-model="user.r1.address" ng-required="user.r1.required" placeholder="<%= $Address %>">
118 <input class="my-input span5" ng-model="user.r1.OIB" ng-required="user.r1.required" placeholder="OIB">
120 </div><!-- r1.required -->
121 </div><!-- ! user.student -->
123 % my $Yes = locale( en => 'Yes', hr => 'Da' );
124 % my $No = locale( en => 'No', hr => 'Ne' );
130 en => 'Will you join us for the welcome reception?',
131 hr => 'Hoćete li biti na domjenku dobrodošlice?' %>
133 <label class="radio"><input type="radio" name="user.reception" ng-model="user.reception" value="yes" ng-required="true"><%= $Yes %></label>
134 <label class="radio"><input type="radio" name="user.reception" ng-model="user.reception" value="no" ng-required="true"><%= $No %></label>
136 <div ng-show="! user.student">
142 en => 'Will you join us for the conference dinner?',
143 hr => 'Hoćete li biti na zajedničkoj večeri?' %>
146 en => 'Dinner is included in the regostration fee.',
147 hr => 'Večera je uključena u kotizaciju.' %>
148 <label class="radio"><input type="radio" name="user.dinner" ng-model="user.dinner" value="yes" ng-required="! user.student && ! user.dinner"><%= $Yes %></label>
149 <label class="radio"><input type="radio" name="user.dinner" ng-model="user.dinner" value="no" ng-required="! user.student && ! user.dinner"><%= $No %></label>
152 </div><!-- not student -->
155 </fieldset><!-- selected registration_type -->
158 <div ng-show="has_work">
160 <div ng-switch on="work.type">
161 <h2 ng-switch-when="lecture"><%= locale en=>'Oral presentation submission', hr=>'Prijava usmenog izlaganja' %></h2>
162 <h2 ng-switch-when="poster"><%= locale en=>'Poster presentation submission', hr=>'Prijava poster prezentacije' %></h2>
163 <h2 ng-switch-when="symposium"><%= locale en=>'Symposium', hr=>'Prijava teme simpozija' %></h2>
164 <h2 ng-switch-when="round"><%= locale en=>'Round table', hr=>'Prijava teme okruglog stola' %></h2>
165 <b ng-switch-default>Has unknown work type {{work.type}} to submit</b>
168 % my $Title = locale( en => 'Title', hr => 'Naslov' );
170 % my $WorkTemplate = begin
171 % my $has_h3_note = shift;
172 <div class="controls controls-row">
173 <input class="span10 my-input" ng-model="work.title" placeholder="<%= $Title %>" ng-required="has_work" >
176 % if ( $has_h3_note ) {
177 <h3 ng-show="user.registration_type == 'symposium'">
179 en => 'Symposium organizer',
180 hr => 'Organizator simpozija' %>
185 <div ng-repeat="person in work.persons" class="controls controls-row">
186 <input class="span2 my-input" ng-model="person.firstname" placeholder="<%= $Name %>" ng-required="has_work" />
187 <input class="span2 my-input" ng-model="person.surname" placeholder="<%= $Surname %>" ng-required="has_work" />
188 <input class="span2 my-input" ng-model="person.organization" placeholder="<%= $Organization %>" bs-typeahead="organizations" >
189 <input class="span2 my-input" ng-model="person.email" type="email" placeholder="<%= $Email %>" ng-required="has_work" />
190 <a class="controls span1 btn btn-danger" href="" ng-click="removePerson(work.persons,person)"><%= locale en => 'delete', hr => 'obriši' %></a>
192 <a class="btn" href="" ng-click="addPerson(work.persons)"><%= locale en=>'add person',hr=>'dodaj osobu' %></a>
193 <div class="controls">
196 en => 'Abstract ({{work.abstract.length || 0}} from max. 2000 characters with spaces)',
197 hr => 'Sažetak ({{work.abstract.length || 0}} od maks. 2000 znakova s razmacima)'
200 <textarea class="span10" ng-model="work.abstract" ng-maxlength="2000" rows="10" cols="80" ng-required="has_work" ></textarea>
204 <%= $WorkTemplate->(1) %>
206 </div><!-- has_work -->
208 <div ng-show="user.registration_type == 'symposium'">
211 en=>'Submission of works for the symposium {{work.title}}',
212 hr=>'Prijava radova unutar simpozija {{work.title}}' %>
215 <div ng-repeat="work in work.symposium_works">
218 en=>'{{$index + 1}}. symposium work',
219 hr=>'{{$index + 1}}. rad na simpoziju' %>
222 <%= $WorkTemplate->(0) %>
224 </div><!-- ng-repeat symposium_works -->
226 <a class="btn" href="" ng-click="add_symposium_work(work.symposium_works)"><%= locale
227 en => 'Add one more work to the symposium',
228 hr => 'Dodaj još jedan rad na simpoziju' %>
231 </div><!-- user.registration_type == 'symposium' -->
233 <div class="form-actions">
234 <button class="btn btn-primary" ng-click="update(registration)" ng-show="RegistrationForm.$valid"><%= locale en=>'Submit',hr=>'Pošalji' %></button>
236 <p class="left" style="color: red" ng-show="! RegistrationForm.$valid">
238 en => 'Please fill all required fields correctly. Fields with red border call for your attention.',
239 hr => 'Molimo ispunite sva obavezna polja označena crvenim okvirom.'
244 % if ( $lang =~ m/-dev/ ) {
246 {{RegistrationForm.$valid}}
247 {{RegistrationForm.$error}}
249 location={{$location.path()}}