root/yapcasia2008-test/actdocs/templates/user/main

Revision 2476 (checked in by kaminogoya, 12 years ago)

added user templates

Line 
1 [% WRAPPER ui title = loc("Main private page") %]
2 <p>
3  {{This is your personal page.}}
4  [% IF global.request.conference %]
5  [% loc("to <this conference>", global.conference.name) %]
6  [% ELSE %]
7  {{to Act-enabled conferences.}}
8  [% END %]
9 </p>
10
11 [% IF global.request.conference %]
12  [% IF global.request.user.has_registered %]
13   [% IF global.request.user.has_paid %] <p>
14   {{You have purchased your conference ticket:}}
15  </p>
16  <p>
17   <blockquote>
18     {{Order number}}: <strong>[% order.order_id %]</strong><br />
19     {{Payment date}}: <strong>[% date_format(order.datetime, 'datetime_full') %] GMT</strong><br />
20     {{Amount paid}}: <strong>[% order.amount %] [% order.currency %][% IF order.price %] ([% order.price %])[% END %]</strong>
21   </blockquote/>
22  </p>
23  [% IF global.config.payment_invoices %]
24  <p>[% loc("Download your invoice", make_uri_info('invoice', order.order_id)) %]
25  </p>
26  [% END %]
27   [% ELSIF global.config.payment_type != "NONE" %]
28  <p>
29   {{You have not bought your conference ticket yet.}}
30   [% IF global.config.payment_open %]
31    {{Please consider doing so using our online payment system.}}
32    [% ELSE %]
33    {{Please consider doing so once our online payment system is ready.}}
34   [% END %]
35  </p>
36  [% END %]
37  [% ELSIF !global.config.closed %]
38   [% loc("You did not register for this conference", make_uri('register')) %]
39  [% END %]
40 [% ELSE %]
41 <!-- no conference at all -->
42 [% END %]
43
44 <p><b>{{You can:}}</b></p>
45    <ul>
46    [% IF global.request.user.has_registered %]
47     [% IF global.request.conference
48        AND global.config.payment_type != "NONE"
49        AND global.config.payment_open
50        AND NOT global.request.user.has_paid %]
51     <li><a href="[% make_uri('purchase') %]">{{purchase your conference ticket}}</a><br />
52     </li>
53     [% END %]
54    [% ELSIF !global.config.closed %]
55     <li><a href="[% make_uri('register') %]">{{register for this conference}}</a><br />
56     </li>
57    [% END %]
58     <li><a href="[% make_uri('change') %]">{{update your information}}</a><br />
59     </li>
60     <li><a href="[% make_uri('photo') %]">{{manage your photo}}</a><br />
61     </li>
62     <li><a href="[% make_uri('changepwd') %]">{{change your password}}</a>
63     </li>
64     [% IF global.request.conference
65        AND talks.size %]
66         <li>{{see your talks (accepted talks are shown in bold type)}}:
67           <br />
68           <ul>
69            [% FOR t = talks %]
70              <li>[% talk_link(t) %] [% talk_modify_link(t) %]</li>
71            [% END %]
72           </ul>
73         </li>
74       [% END %]
75     [% IF global.config.talks_submissions_open
76        AND global.request.user.has_registered %]
77       <li><a href="[% make_uri('newtalk') %]">{{submit a talk}}</a><br />
78       </li>
79     [% END %]
80    <li><a href="[% make_uri('logout') %]">{{log out}}</a></li>
81    [% IF can_unregister %]
82    <li><a href="[% make_uri('unregister') %]">[% loc("unregister from <this conference>", global.conference.name) %]</a></li>
83    [% END %]
84    </ul>
85
86 [% IF conferences.size %]
87 <p><b>{{Other Act conferences:}}</b></p>
88 <ul>
89 [% FOREACH c = conferences %]<li><a href="[% c.url %]">[% c.name %]</a>
90 [% SWITCH c.participation %]
91  [% CASE 'past' %]
92  {{(You were there)}}
93  [% CASE 'now' %]
94  {{(You are there)}}
95  [% CASE 'future' %]
96  {{(You will be there)}}
97 [% END %]
98 </li>[% END %]
99 </ul>
100 [% END %]
101
102 [% END %]
Note: See TracBrowser for help on using the browser.