From a378d8fdf4ef3704ac09226df868c4d6073ea39c Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Tue, 8 Jan 2013 21:15:13 +0100 Subject: [PATCH] server-side templates using localization --- app/drzb2013.html.ep | 70 +++++++++ app/partials/registration.html.ep | 246 ++++++++++++++++++++++++++++++ 2 files changed, 316 insertions(+) create mode 100644 app/drzb2013.html.ep create mode 100644 app/partials/registration.html.ep diff --git a/app/drzb2013.html.ep b/app/drzb2013.html.ep new file mode 100644 index 0000000..712c77d --- /dev/null +++ b/app/drzb2013.html.ep @@ -0,0 +1,70 @@ + + + + + <%= locale + en => 'Conference registration', + hr => 'Registracija za konferenciju' + %> + + + + + + + + + + + + + +% if ( param('admin') ) { + +% } + + + +%= include( "drzb2013/header.$lang" ); + +
+ + + + + + + + + + + diff --git a/app/partials/registration.html.ep b/app/partials/registration.html.ep new file mode 100644 index 0000000..0282179 --- /dev/null +++ b/app/partials/registration.html.ep @@ -0,0 +1,246 @@ +

<%= locale + en => 'Registration and proposal submission', + hr => 'Registracija i prijavljivanje izlaganja' +%>

+ +
+%= include( "drzb2013/intro.$lang" ); +
+ +
+ +
+ +<%= locale + en => 'Registration type', + hr => 'Odaberite tip registracije' +%> + + + + + +
+ + +
+ +
+ +<%= locale +en => 'Registration - contact information', +hr => 'Registracija - kontakt podaci' +%> + +% my $Name = locale( en => 'Name', hr => 'Ime' ); +% my $Surname = locale( en => 'Surname', hr => 'Prezime' ); +% my $Organization = locale( en => 'Organization', hr => 'Organizacija' ); +% my $Email = locale( en => 'E-mail', hr => 'E-pošta' ); + +
+ + +
+ +
+ +
+ +% my $Address = locale en => 'Address', hr => 'Adresa'; +
+ +
+ +
+ + + +
+ +
+ + +
+ + +%= locale( en => 'Options', hr => '' ); + + + +
+ +%# FIXME: skip for en + + + + + +
+<%= locale +en => 'Organization contact details', +hr => 'Organizacija koja uplaćuje R-1 račun' %> + + + + + + +
+
+ +% my $Yes = locale( en => 'Yes', hr => 'Da' ); +% my $No = locale( en => 'No', hr => 'Ne' ); + + + + +<%= locale +en => 'Will you join us for the welcome reception?', +hr => 'Hoćete li biti na domjenku dobrodošlice?' %> + + + + +
+ + + + +<%= locale +en => 'Will you join us for the conference dinner?', +hr => 'Hoćete li biti na zajedničkoj večeri?' %> + +<%= locale +en => 'Dinner is included in the regostration fee.', +hr => 'Večera je uključena u kotizaciju.' %> + + + + +
+ + +
+ + +
+ +
+

<%= locale en=>'Oral presentation submission', hr=>'Prijava usmenog izlaganja' %>

+

<%= locale en=>'Poster presentation submission', hr=>'Prijava poster prezentacije' %>

+

<%= locale en=>'Symposium', hr=>'Prijava teme simpozija' %>

+

<%= locale en=>'Round table', hr=>'Prijava teme okruglog stola' %>

+Has unknown work type {{work.type}} to submit +
+ +% my $Title = locale( en => 'Title', hr => 'Naslov' ); + +% my $WorkTemplate = begin + % my $has_h3_note = shift; +
+ +
+ +% if ( $has_h3_note ) { +

+<%= locale +en => 'Symposium organizer', +hr => 'Organizator simpozija' %> +

+% } + + + +<%= locale en=>'add person',hr=>'dodaj osobu' %> +
+ + +
+% end + +<%= $WorkTemplate->(1) %> + +
+ +
+ +

<%= locale hr=>'Prijava radova unutar simpozija {{work.title}}' %>

+ +
+ +

<%= locale hr=>'{{$index + 1}}. rad na simpoziju' %>

+ +<%= $WorkTemplate->(0) %> + +
+ +Add one more work to the symposium + +
+ +
+ + +

+<%= locale +en => 'Please fill all required fields correctly. Fields with red border call for your attention.', +hr => 'Molimo ispunite sva obavezna polja označena crvenim okvirom.' +%> +

+
+ + +
+ -- 2.20.1