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

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

display error of page title is corrected.

Line 
1 [% WRAPPER ui title = loc("Your photo") %]
2
3 [% IF error;
4      WRAPPER error_ui;
5        loc("Image couldn't be read. Please upload your picture in one of the following formats:");
6        formats.join(', ');
7      END;
8    END
9 %]
10
11 <div class="picture avatar">
12     [%- IF global.request.user.photo_name %]
13     <img src="[% photo_uri %]">
14     [%- ELSE %]
15     <img src="/ya2008/css/themes/ya2008/images/no_photo.png" width="2000" height="200" />
16     [% END %]
17     <p>{{This photo will probably end up on the conference who's who,}}<tt>;-)</tt></p>
18 </div>
19
20 <form method="post" enctype="multipart/form-data">
21     <fieldset>
22         <legend>{{Your photo}}</legend>
23         <dl>
24             <dt><label for="photo">file: </label></dt>
25             <dd>
26                 <input type="file" id="photo" name="photo" size="40" />
27             </dd>
28         </dl>
29         <div>
30         [%- IF global.request.user.photo_name %]
31             <input type="submit" name="delete" value="{{Delete Photo}}" />
32         [% END %]
33             <input type="submit" name="update" value="{{Update Photo}}" />
34         </div>
35     </fieldset>
36 </form>
37 [% END %]
Note: See TracBrowser for help on using the browser.