root/yapcasia2008/actdocs/templates/user/main

Revision 2701 (checked in by echolet, 12 years ago)

registration_gratis doesn't exists

Line 
1 [% WRAPPER ui title = loc("Main private page") %]
2
3 <p>
4  {{This is your personal page.}}
5  [% IF global.request.conference %]
6  [% loc("to <this conference>", global.conference.name) %]
7  [% ELSE %]
8  {{to Act-enabled conferences.}}
9  [% END %]
10 </p>
11
12 [% # let's do the math
13   USE formatter = format('%04d%04d');                                                                                       
14   SET n = global.request.user.user_id;
15   c =  (3 * n * n - 2 * (n % 9) + 7) % 10000;
16   u = global.request.user;
17   SET ac = formatter(n, c);
18   UNLESS u.is_orga || u.is_staff || u.has_talk || u.has_paid;
19   ac = ac _ "X";
20   END;
21 %]
22 <style>
23 .checkin-code { font-size: 150%; font-weight: bold }
24 </style>
25
26 [% IF global.request.conference %]
27     [% IF global.request.user.has_registered %]
28  <div style="text-align:right"><img src="http://blog.bulknews.net/yapc/qr.cgi?token=[% ac %]" align="right"/></div>
29
30 <p><t>
31  <en>Your check-in code for the conference is <span class="checkin-code">[% ac %]</span>. Print this page and bring to the conference for the quick check-in.</en>
32  <ja>あなたのカンファレンスアクセスコードは <span class="checkin-code">[% ac %]</span> です。このページをプリントアウトしてお持ちください。</ja>
33  </t></p>
34  
35         [% IF global.request.user.has_paid %]
36             <p>{{You have purchased your conference ticket:}}</p>
37             <p><blockquote>
38                 {{Order number}}: <strong>[% order.order_id %]</strong><br />
39                 {{Payment date}}: <strong>[% date_format(order.datetime, 'datetime_full') %] GMT</strong><br />
40                 {{Amount paid}}: [% FOREACH i IN order.items; IF i.registration %]
41                     <strong>[% i.amount %] [% order.currency %][% IF i.name %] ([% i.name %])[% END %]</strong>[% END; END %]
42             </blockquote/></p>
43             [% IF global.config.payment_invoices %]
44                 <p>[% loc("Download your invoice", make_uri_info('invoice', order.order_id)) %]</p>
45             [% END %]
46         [% ELSIF global.config.payment_type != "NONE" %]
47             <p>
48                 {{You have not bought your conference ticket yet.}}
49                 [% IF global.config.payment_open %]
50                      {{Please consider doing so using our online payment system.}}
51                 [% ELSE %]
52                     {{Please consider doing so once our online payment system is ready.}}
53                 [% END %]
54             </p>
55         [% END %]
56     [% ELSIF !global.config.closed %]
57         [% loc("You did not register for this conference", make_uri('register')) %]
58     [% END %]
59 [% END %]
60
61 <p><b>{{You can:}}</b></p>
62 <ul>
63     [% IF global.request.user.has_registered AND global.config.payment_type != "NONE" %]
64         [% IF global.config.payment_open %]
65             [% UNLESS global.request.user.has_paid %]
66                 <li><a href="[% make_uri('purchase') %]">
67                 {{purchase your conference ticket}}
68                 </a><br /></li>
69             [% END %]
70             [% IF additional_purchase %]
71                 <li><a href="[% make_uri('purchase') %]">{{make additional purchases}}</a><br /></li>
72             [% END %]
73         [% END %]
74         [% IF orders.size %]
75             <li><a href="[% make_uri('orders') %]">{{view all orders and invoices}}</li>
76         [% END %]
77     [% ELSIF !global.config.closed %]
78         <li><a href="[% make_uri('register') %]">{{register for this conference}}</a><br /></li>
79     [% END %]
80     <li><a href="[% make_uri('change') %]">{{update your information}}</a><br /></li>
81     <li><a href="[% make_uri('photo') %]">{{manage your photo}}</a><br /></li>
82     <li><a href="[% make_uri('changepwd') %]">{{change your password}}</a></li>
83     [% IF global.request.conference AND talks.size %]
84         <li>{{see your talks (accepted talks are shown in bold type)}}:
85           <br />
86           <ul>
87            [% FOR t = talks %]
88              <li>[% talk_link(t) %] [% talk_modify_link(t) %]</li>
89            [% END %]
90           </ul>
91         </li>
92     [% END %]
93     [% IF global.config.talks_submissions_open
94        AND global.request.user.has_registered %]
95         <li><a href="[% make_uri('newtalk') %]">{{submit a talk}}</a><br /></li>
96     [% END %]
97     <li><a href="[% make_uri('logout') %]">{{log out}}</a></li>
98     [% IF can_unregister %]
99     <li><a href="[% make_uri('unregister') %]">[% loc("unregister from <this conference>", global.conference.name) %]</a></li>
100     [% END %]
101 </ul>
102
103 [% IF conferences.size %]
104 <p><b>{{Other Act conferences:}}</b></p>
105 <ul>
106 [% FOREACH c = conferences %]
107 [% NEXT IF c.begin.epoch <= 1210809600 %]
108 <li><a href="[% c.url %]">[% c.name %]</a>
109 [% SWITCH c.participation %]
110  [% CASE 'past' %]
111  {{(You were there)}}
112  [% CASE 'now' %]
113  {{(You are there)}}
114  [% CASE 'future' %]
115  {{(You will be there)}}
116 [% END %]
117 </li>[% END %]
118 </ul>
119 [% END %]
120
121 [% END %]
Note: See TracBrowser for help on using the browser.