root/yapcasia2008/actdocs/templates/user/main

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

new payment config

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                 [% IF !global.config.registration_gratis -%]
49                 {{You have not bought your conference ticket yet.}}
50                 [%- ELSE -%]
51                 {{You have not confirmed your participation to this conference yet.}}
52                 [%- END %]
53                 [% IF global.config.payment_open %]
54                      {{Please consider doing so using our online payment system.}}
55                 [% ELSE %]
56                     {{Please consider doing so once our online payment system is ready.}}
57                 [% END %]
58             </p>
59         [% END %]
60     [% ELSIF !global.config.closed %]
61         [% loc("You did not register for this conference", make_uri('register')) %]
62     [% END %]
63 [% END %]
64
65 <p><b>{{You can:}}</b></p>
66 <ul>
67     [% IF global.request.user.has_registered AND global.config.payment_type != "NONE" %]
68         [% IF global.config.payment_open %]
69             [% UNLESS global.request.user.has_paid %]
70                 <li><a href="[% make_uri('purchase') %]">
71                 [%- IF !global.config.registration_gratis -%]
72                 {{purchase your conference ticket}}
73                 [%- ELSE -%]
74                 {{confirm your participation}}
75                 [%- END -%]
76                 </a><br /></li>
77             [% END %]
78             [% IF additional_purchase %]
79                 <li><a href="[% make_uri('purchase') %]">{{make additional purchases}}</a><br /></li>
80             [% END %]
81         [% END %]
82         [% IF orders.size %]
83             <li><a href="[% make_uri('orders') %]">{{view all orders and invoices}}</li>
84         [% END %]
85     [% ELSIF !global.config.closed %]
86         <li><a href="[% make_uri('register') %]">{{register for this conference}}</a><br /></li>
87     [% END %]
88     <li><a href="[% make_uri('change') %]">{{update your information}}</a><br /></li>
89     <li><a href="[% make_uri('photo') %]">{{manage your photo}}</a><br /></li>
90     <li><a href="[% make_uri('changepwd') %]">{{change your password}}</a></li>
91     [% IF global.request.conference AND talks.size %]
92         <li>{{see your talks (accepted talks are shown in bold type)}}:
93           <br />
94           <ul>
95            [% FOR t = talks %]
96              <li>[% talk_link(t) %] [% talk_modify_link(t) %]</li>
97            [% END %]
98           </ul>
99         </li>
100     [% END %]
101     [% IF global.config.talks_submissions_open
102        AND global.request.user.has_registered %]
103         <li><a href="[% make_uri('newtalk') %]">{{submit a talk}}</a><br /></li>
104     [% END %]
105     <li><a href="[% make_uri('logout') %]">{{log out}}</a></li>
106     [% IF can_unregister %]
107     <li><a href="[% make_uri('unregister') %]">[% loc("unregister from <this conference>", global.conference.name) %]</a></li>
108     [% END %]
109 </ul>
110
111 [% IF conferences.size %]
112 <p><b>{{Other Act conferences:}}</b></p>
113 <ul>
114 [% FOREACH c = conferences %]
115 [% NEXT IF c.begin.epoch <= 1210809600 %]
116 <li><a href="[% c.url %]">[% c.name %]</a>
117 [% SWITCH c.participation %]
118  [% CASE 'past' %]
119  {{(You were there)}}
120  [% CASE 'now' %]
121  {{(You are there)}}
122  [% CASE 'future' %]
123  {{(You will be there)}}
124 [% END %]
125 </li>[% END %]
126 </ul>
127 [% END %]
128
129 [% END %]
Note: See TracBrowser for help on using the browser.